Private GIT

Skip to content
Snippets Groups Projects
Commit fdb17b8e authored by snamds's avatar snamds Committed by miigotu
Browse files

Elitetorrent provider - New web address (#4122)

* New web address

-New web address
-New torrent download address format

* backtrailing removed
parent 2c800699
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment