Private GIT

Skip to content
Snippets Groups Projects
Commit b2b86839 authored by on's avatar on
Browse files

Alpha V2

parent 93186844
Branches
Tags
No related merge requests found
...@@ -140,16 +140,22 @@ class ADDICTProvider(generic.TorrentProvider): ...@@ -140,16 +140,22 @@ class ADDICTProvider(generic.TorrentProvider):
soup = BeautifulSoup( r, "html.parser" ) soup = BeautifulSoup( r, "html.parser" )
resultsTable = soup.find("table", { "class" : "lista" }) resultsTable = soup.find("table", { "class" : "lista" , "width":"100%" })
if resultsTable: if resultsTable:
rows = resultsTable.findAll("tr") rows = resultsTable.findAll("tr")
x=0
for row in rows: for row in rows:
x=x+1
link = row.find("a", title=True, href=re.compile('#comments') ) if (x > 1):
title = link['title'].replace("Voir les détails: ","") #bypass first row because title only
columns = row.find('td')
numberOfColumns = len(columns.contents)
logger.log(u"ADDICT COL COUNT : " + numberOfColumns, logger.DEBUG)
link = row.findAll('td')[3].find("a", title=True)
title = link['title']
title = title.replace("Voir les détails: ","")
downloadURL = row.find("a",href=re.compile("\.torrent"))['href'] downloadURL = row.find("a",href=re.compile("\.torrent"))['href']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment