Private GIT

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

Merge pull request #1910 from nicolasmartinelli/develop-eztv-html3

EZTV Provider: save all possible links found in the homepage
parents 5cc26ad0 9a9893de
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,8 @@ class EZTVProvider(generic.TorrentProvider): ...@@ -109,7 +109,8 @@ class EZTVProvider(generic.TorrentProvider):
for entries in resultsTable: for entries in resultsTable:
title = entries.find('a', attrs={'class': 'epinfo'}).contents[0] title = entries.find('a', attrs={'class': 'epinfo'}).contents[0]
link = entries.find('a', attrs={'class': 'magnet'}) or entries.find('a', attrs={'class': 'download_1'}) for link_type in ('magnet', 'download_1', 'download_3'):
link = entries.find('a', attrs={'class': link_type})
if link: if link:
link = link.get('href') link = link.get('href')
else: else:
...@@ -121,6 +122,7 @@ class EZTVProvider(generic.TorrentProvider): ...@@ -121,6 +122,7 @@ class EZTVProvider(generic.TorrentProvider):
} }
items[mode].append(item) items[mode].append(item)
continue
except Exception, e: except Exception, e:
logger.log(u"Failed parsing " + self.name + " Traceback: " + traceback.format_exc(), logger.log(u"Failed parsing " + self.name + " Traceback: " + traceback.format_exc(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment