diff --git a/sickbeard/providers/elitetorrent.py b/sickbeard/providers/elitetorrent.py index b779ee68a48476882661c4f0996f0b9ff4b7212d..65d70a7b488382d79c101c35ece8b4b12231cb62 100644 --- a/sickbeard/providers/elitetorrent.py +++ b/sickbeard/providers/elitetorrent.py @@ -46,8 +46,8 @@ class EliteTorrentProvider(TorrentProvider): self.cache = tvcache.TVCache(self) # Only poll EliteTorrent every 20 minutes max self.urls = { - 'base_url': 'http://www.elitetorrent.net', - 'search': 'http://www.elitetorrent.net/torrents.php' + 'base_url': 'https://www.elitetorrent.eu', + 'search': 'https://www.elitetorrent.eu/torrents.php' } self.url = self.urls['base_url'] @@ -58,7 +58,7 @@ class EliteTorrentProvider(TorrentProvider): """ Search query: - http://www.elitetorrent.net/torrents.php?cat=4&modo=listado&orden=fecha&pag=1&buscar=fringe + https://www.elitetorrent.eu/torrents.php?cat=4&modo=listado&orden=fecha&pag=1&buscar=fringe cat = 4 => Shows modo = listado => display results mode @@ -110,6 +110,16 @@ class EliteTorrentProvider(TorrentProvider): for row in torrent_rows[1:]: try: download_url = self.urls['base_url'] + row.find('a')['href'] + + """ + Transform from + https://elitetorrent.eu/torrent/40142/la-zona-1x02 + to + https://elitetorrent.eu/get-torrent/40142 + """ + + download_url = re.sub(r'/torrent/(\d*)/.*', r'/get-torrent/\1', download_url) + """ Trick for accents for this provider.