Private GIT

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

corrected addict

parent c5de1cbc
No related branches found
No related tags found
No related merge requests found
...@@ -130,9 +130,12 @@ class ADDICTProvider(generic.TorrentProvider): ...@@ -130,9 +130,12 @@ class ADDICTProvider(generic.TorrentProvider):
r = self.opener.open( searchUrl ) r = self.opener.open( searchUrl )
soup = BeautifulSoup( r, "html.parser" ) soupfull = BeautifulSoup( r)
delbegin=str(soupfull.prettify).split('<table width="100%">')[1]
restable=delbegin[delbegin.find('<table'):delbegin.find('table>')+6]
soup=BeautifulSoup(restable)
resultsTable = soup.find("table")
resultsTable = soup.find("table", { "class" : "lista" , "width":"100%" })
if resultsTable: if resultsTable:
rows = resultsTable.findAll("tr") rows = resultsTable.findAll("tr")
...@@ -141,7 +144,8 @@ class ADDICTProvider(generic.TorrentProvider): ...@@ -141,7 +144,8 @@ class ADDICTProvider(generic.TorrentProvider):
x=x+1 x=x+1
if (x > 1): if (x > 1):
#bypass first row because title only #bypass first row because title only
columns = row.find('td') if 'Liste des torrents' in str(row) :
continue
link = row.findAll('td')[1].find("a", href=re.compile("torrent-details")) link = row.findAll('td')[1].find("a", href=re.compile("torrent-details"))
if link: if link:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment