From f0fe8808bdbd147f7d5f9e3b799ddbd2e805be74 Mon Sep 17 00:00:00 2001 From: ngosang Date: Thu, 2 Mar 2017 21:21:33 +0100 Subject: [PATCH] [Search engine] Update Extratorrent plugin --- src/searchengine/nova/engines/extratorrent.py | 8 ++++---- src/searchengine/nova/engines/versions.txt | 2 +- src/searchengine/nova3/engines/extratorrent.py | 8 ++++---- src/searchengine/nova3/engines/versions.txt | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/searchengine/nova/engines/extratorrent.py b/src/searchengine/nova/engines/extratorrent.py index 9469eac86..12c26f3dc 100644 --- a/src/searchengine/nova/engines/extratorrent.py +++ b/src/searchengine/nova/engines/extratorrent.py @@ -1,4 +1,4 @@ -#VERSION: 3.00 +#VERSION: 3.10 #AUTHORS: Christophe Dumez (chris@qbittorrent.org) #CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) @@ -33,7 +33,7 @@ from helpers import download_file, retrieve_url class extratorrent(object): """ Search engine class """ - url = 'https://extratorrent.cc' + url = 'https://extra.to' name = 'ExtraTorrent' supported_categories = {'all' : '0', 'movies' : '4', @@ -59,8 +59,8 @@ class extratorrent(object): for item in itemlist: current_item = current_item = {"engine_url" : self.url} current_item['name'] = item.getElementsByTagName('title')[0].childNodes[0].data - current_item["link"] = item.getElementsByTagName('enclosure')[0].attributes['url'].value - current_item["desc_link"] = item.getElementsByTagName('link')[0].childNodes[0].data + current_item["link"] = item.getElementsByTagName('enclosure')[0].attributes['url'].value.replace('extratorrent.cc', 'extra.to') + current_item["desc_link"] = item.getElementsByTagName('link')[0].childNodes[0].data.replace('extratorrent.cc', 'extra.to') current_item["size"] = item.getElementsByTagName('size')[0].childNodes[0].data current_item["leech"] = item.getElementsByTagName('leechers')[0].childNodes[0].data if not current_item["leech"].isdigit(): diff --git a/src/searchengine/nova/engines/versions.txt b/src/searchengine/nova/engines/versions.txt index c59347d3e..134e0bd01 100644 --- a/src/searchengine/nova/engines/versions.txt +++ b/src/searchengine/nova/engines/versions.txt @@ -1,5 +1,5 @@ demonoid: 1.22 -extratorrent: 3.00 +extratorrent: 3.10 legittorrents: 2.01 mininova: 2.02 piratebay: 2.15 diff --git a/src/searchengine/nova3/engines/extratorrent.py b/src/searchengine/nova3/engines/extratorrent.py index 9469eac86..12c26f3dc 100644 --- a/src/searchengine/nova3/engines/extratorrent.py +++ b/src/searchengine/nova3/engines/extratorrent.py @@ -1,4 +1,4 @@ -#VERSION: 3.00 +#VERSION: 3.10 #AUTHORS: Christophe Dumez (chris@qbittorrent.org) #CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) @@ -33,7 +33,7 @@ from helpers import download_file, retrieve_url class extratorrent(object): """ Search engine class """ - url = 'https://extratorrent.cc' + url = 'https://extra.to' name = 'ExtraTorrent' supported_categories = {'all' : '0', 'movies' : '4', @@ -59,8 +59,8 @@ class extratorrent(object): for item in itemlist: current_item = current_item = {"engine_url" : self.url} current_item['name'] = item.getElementsByTagName('title')[0].childNodes[0].data - current_item["link"] = item.getElementsByTagName('enclosure')[0].attributes['url'].value - current_item["desc_link"] = item.getElementsByTagName('link')[0].childNodes[0].data + current_item["link"] = item.getElementsByTagName('enclosure')[0].attributes['url'].value.replace('extratorrent.cc', 'extra.to') + current_item["desc_link"] = item.getElementsByTagName('link')[0].childNodes[0].data.replace('extratorrent.cc', 'extra.to') current_item["size"] = item.getElementsByTagName('size')[0].childNodes[0].data current_item["leech"] = item.getElementsByTagName('leechers')[0].childNodes[0].data if not current_item["leech"].isdigit(): diff --git a/src/searchengine/nova3/engines/versions.txt b/src/searchengine/nova3/engines/versions.txt index c59347d3e..134e0bd01 100644 --- a/src/searchengine/nova3/engines/versions.txt +++ b/src/searchengine/nova3/engines/versions.txt @@ -1,5 +1,5 @@ demonoid: 1.22 -extratorrent: 3.00 +extratorrent: 3.10 legittorrents: 2.01 mininova: 2.02 piratebay: 2.15