diff --git a/sickbeard/providers/eztv.py b/sickbeard/providers/eztv.py index c21512174593926fb6ac5a32c13ecbd1289ce2d8..e648b590f63df9629568d4ad4965bb1658b02ebb 100644 --- a/sickbeard/providers/eztv.py +++ b/sickbeard/providers/eztv.py @@ -109,18 +109,20 @@ class EZTVProvider(generic.TorrentProvider): for entries in resultsTable: title = entries.find('a', attrs={'class': 'epinfo'}).contents[0] - link = entries.find('a', attrs={'class': 'magnet'}) or entries.find('a', attrs={'class': 'download_1'}) - if link: - link = link.get('href') - else: - continue + for link_type in ('magnet', 'download_1', 'download_3'): + link = entries.find('a', attrs={'class': link_type}) + if link: + link = link.get('href') + else: + continue - item = { - 'title': title, - 'link': link, - } + item = { + 'title': title, + 'link': link, + } - items[mode].append(item) + items[mode].append(item) + continue except Exception, e: logger.log(u"Failed parsing " + self.name + " Traceback: " + traceback.format_exc(),