diff --git a/sickbeard/providers/yggtorrent.py b/sickbeard/providers/yggtorrent.py index 2c23e9f4c8ef981d2cd332a4bf377ffe2111c192..f74399b98c98afdbacf063520094da5559bb7350 100644 --- a/sickbeard/providers/yggtorrent.py +++ b/sickbeard/providers/yggtorrent.py @@ -123,7 +123,11 @@ class YggTorrentProvider(TorrentProvider): # pylint: disable=too-many-instance- continue title = cells[0].find('a', class_='torrent-name').get_text(strip=True) - download_url = urljoin(self.url, cells[0].find('a', target='_blank')['href']) + for download_img in cells[0].select('a[href] img'): + if download_img['src'] == "https://yggtorrent.com/static/icons/icon_download.gif": + download_url = urljoin(self.url, download_img.parent['href']) + break + if not (title and download_url): continue