Private GIT

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

corrected thinkgeek

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