Private GIT

Skip to content
Snippets Groups Projects
Commit 6f573302 authored by sarakha63's avatar sarakha63
Browse files

Merge pull request #315 from sarakha63/development

Update
parents fd9f5431 2a40d044
No related branches found
No related tags found
No related merge requests found
......@@ -98,9 +98,9 @@ class CpasbienProvider(generic.TorrentProvider):
torrentSoup = BeautifulSoup( torrentPage )
#downloadTorrentLink = torrentSoup.find("a", title.startswith('Cliquer'))
tmp = pageURL.split('/')[6].replace('.html','.torrent')
tmp = pageURL.split('/')[-1].replace('.html','.torrent')
downloadTorrentLink = ('http://www.cpasbien.pe/_torrents/%s' % tmp)
downloadTorrentLink = ('http://www.cpasbien.pe/telecharge/%s' % tmp)
if downloadTorrentLink:
......
......@@ -139,7 +139,7 @@ class FNTProvider(generic.TorrentProvider):
for row in rows:
link = row.findAll('td')[1].find("a" )
link = row.findAll('td')[1].find("a" , href=re.compile("fiche_film") )
if link:
title = link.text
......
......@@ -154,7 +154,7 @@ class LIBERTALIAProvider(generic.TorrentProvider):
if link:
title = link.text
recherched=searchUrl.split("&[PARAMSTR]=")[1]
recherched=recherched.replace(" ","(.*)")
recherched=recherched.replace(" ","(.*)").replace(".","(.*)").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']
......
......@@ -153,7 +153,7 @@ class THINKGEEKProvider(generic.TorrentProvider):
if link:
title = link.text
recherched=searchUrl.split("&[PARAMSTR]=")[1]
recherched=recherched.replace(" ","(.*)")
recherched=recherched.replace(" ","(.*)").replace(".","(.*)").replace("'","(.*)")
logger.log(u"THINKGEEK TITLE : " + title, logger.DEBUG)
logger.log(u"THINKGEEK CHECK MATCH : " + recherched, logger.DEBUG)
if re.match(recherched,title , re.IGNORECASE):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment