Private GIT

Skip to content
Snippets Groups Projects
Commit 5e713a10 authored by sarakha63's avatar sarakha63
Browse files

corrected thinkgeek

parent fd9e4369
Branches
Tags
No related merge requests found
...@@ -139,7 +139,7 @@ class THINKGEEKProvider(generic.TorrentProvider): ...@@ -139,7 +139,7 @@ class THINKGEEKProvider(generic.TorrentProvider):
r = self.opener.open( searchUrl ) r = self.opener.open( searchUrl )
soup = BeautifulSoup( r, "html.parser" ) soup = BeautifulSoup( r)
resultsTable = soup.find("div", { "id" : "content" }) resultsTable = soup.find("div", { "id" : "content" })
if resultsTable: if resultsTable:
...@@ -158,6 +158,8 @@ class THINKGEEKProvider(generic.TorrentProvider): ...@@ -158,6 +158,8 @@ class THINKGEEKProvider(generic.TorrentProvider):
logger.log(u"THINKGEEK CHECK MATCH : " + recherched, logger.DEBUG) logger.log(u"THINKGEEK CHECK MATCH : " + recherched, logger.DEBUG)
if re.match(recherched,title , re.IGNORECASE): if re.match(recherched,title , re.IGNORECASE):
downloadURL = row.find("a",href=re.compile("action=download"))['href'] downloadURL = row.find("a",href=re.compile("action=download"))['href']
else:
continue
logger.log(u"THINKGEEK DOWNLOAD URL : " + title, logger.DEBUG) logger.log(u"THINKGEEK DOWNLOAD URL : " + title, logger.DEBUG)
quality = Quality.nameQuality( title ) quality = Quality.nameQuality( title )
if quality==Quality.UNKNOWN and title: if quality==Quality.UNKNOWN and title:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment