Private GIT

Skip to content
Snippets Groups Projects
Commit ede5822e authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge pull request #1884 from nicolasmartinelli/develop-eztv-rss-html-change2

Fixes due to html changes in http://eztv.ch
parents d284e018 3a05205b
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ class EZTVProvider(generic.TorrentProvider):
try:
with BS4Parser(HTML, features=["html5lib", "permissive"]) as parsedHTML:
resultsTable = parsedHTML.find_all('tr', attrs={'name': 'hover', 'class': 'header_brd'})
resultsTable = parsedHTML.find_all('tr', attrs={'name': 'hover', 'class': 'forum_header_border'})
if not resultsTable:
logger.log(u"The Data returned from " + self.name + " do not contains any torrent",
......@@ -109,7 +109,11 @@ class EZTVProvider(generic.TorrentProvider):
for entries in resultsTable:
title = entries.find('a', attrs={'class': 'epinfo'}).contents[0]
link = entries.find('a', attrs={'class': 'magnet'}).get('href')
link = entries.find('a', attrs={'class': 'magnet'}) or entries.find('a', attrs={'class': 'download_1'})
if link:
link = link.get('href')
else:
continue
item = {
'title': title,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment