Private GIT

Skip to content
Snippets Groups Projects
Commit b5943da1 authored by raver2046's avatar raver2046
Browse files

maj du filtre de recherches libertalia

parent 3283d8df
No related branches found
No related tags found
No related merge requests found
# -*- coding: latin-1 -*- # -*- coding: latin-1 -*-
# Author: Raver2046 <raver2046@gmail.com> # Author: Raver2046
# based on tpi.py # based on tpi.py
# URL: http://code.google.com/p/sickbeard/ # URL: http://code.google.com/p/sickbeard/
# #
...@@ -53,15 +53,15 @@ class LIBERTALIAProvider(generic.TorrentProvider): ...@@ -53,15 +53,15 @@ class LIBERTALIAProvider(generic.TorrentProvider):
if audio_lang == "en" and french==None: if audio_lang == "en" and french==None:
results.append( urllib.urlencode( { results.append( urllib.urlencode( {
'name': searchString 'name': searchString
} ) + "*VO*&cat%5B%5D=9" ) } ) + "*VO*&cat%5B%5D=9&[PARAMSTR]=" + searchString +" VO" )
elif audio_lang == "fr" or french: elif audio_lang == "fr" or french:
results.append( urllib.urlencode( { results.append( urllib.urlencode( {
'name': searchString 'name': searchString
} ) + "*FRENCH*&cat%5B%5D=9") } ) + "*FRENCH*&cat%5B%5D=9&[PARAMSTR]=" + searchString +" FRENCH")
else: else:
results.append( urllib.urlencode( { results.append( urllib.urlencode( {
'name': searchString 'name': searchString
} ) + "&cat%5B%5D=9") } ) + "&cat%5B%5D=9&[PARAMSTR]=" + searchString )
return results return results
def _get_season_search_strings(self, show, season): def _get_season_search_strings(self, show, season):
...@@ -153,10 +153,13 @@ class LIBERTALIAProvider(generic.TorrentProvider): ...@@ -153,10 +153,13 @@ class LIBERTALIAProvider(generic.TorrentProvider):
link = columns.find("a", href=re.compile("torrents")) link = columns.find("a", href=re.compile("torrents"))
if link: if link:
title = link.text title = link.text
logger.log(u"LIBERTALIA TITLE TEMP: " + title, logger.DEBUG) recherched=searchUrl.split("&[PARAMSTR]=")[1]
recherched=recherched.replace(" ","(.*)")
logger.log(u"LIBERTALIA TITLE : " + title, logger.DEBUG)
logger.log(u"LIBERTALIA CHECK MATCH : " + recherched, logger.DEBUG)
#downloadURL = self.url + "/" + row.find("a",href=re.compile("torrent_pass"))['href'] #downloadURL = self.url + "/" + row.find("a",href=re.compile("torrent_pass"))['href']
if re.match(recherched,title , re.IGNORECASE):
downloadURL = row.find("a",href=re.compile("torrent_pass"))['href'] downloadURL = row.find("a",href=re.compile("torrent_pass"))['href']
quality = Quality.nameQuality( title ) quality = Quality.nameQuality( title )
if quality==Quality.UNKNOWN and title: if quality==Quality.UNKNOWN and title:
if '720p' not in title.lower() and '1080p' not in title.lower(): if '720p' not in title.lower() and '1080p' not in title.lower():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment