From ebc50a723752e612ba680607e3d126d4dce03451 Mon Sep 17 00:00:00 2001 From: KingLucius Date: Fri, 19 May 2017 16:36:56 +0200 Subject: [PATCH] remove ExtraTorrent plugin --- src/searchengine.qrc | 4 - .../nova/engines/extratorrent.png | Bin 509 -> 0 bytes src/searchengine/nova/engines/extratorrent.py | 74 ------------------ src/searchengine/nova/engines/versions.txt | 1 - .../nova3/engines/extratorrent.png | Bin 509 -> 0 bytes .../nova3/engines/extratorrent.py | 74 ------------------ src/searchengine/nova3/engines/versions.txt | 1 - 7 files changed, 154 deletions(-) delete mode 100644 src/searchengine/nova/engines/extratorrent.png delete mode 100644 src/searchengine/nova/engines/extratorrent.py delete mode 100644 src/searchengine/nova3/engines/extratorrent.png delete mode 100644 src/searchengine/nova3/engines/extratorrent.py diff --git a/src/searchengine.qrc b/src/searchengine.qrc index f4d7169fd..2f94cae5f 100644 --- a/src/searchengine.qrc +++ b/src/searchengine.qrc @@ -9,8 +9,6 @@ searchengine/nova/engines/btdb.py searchengine/nova/engines/demonoid.png searchengine/nova/engines/demonoid.py - searchengine/nova/engines/extratorrent.png - searchengine/nova/engines/extratorrent.py searchengine/nova/engines/legittorrents.png searchengine/nova/engines/legittorrents.py searchengine/nova/engines/piratebay.png @@ -28,8 +26,6 @@ searchengine/nova3/engines/btdb.py searchengine/nova3/engines/demonoid.png searchengine/nova3/engines/demonoid.py - searchengine/nova3/engines/extratorrent.png - searchengine/nova3/engines/extratorrent.py searchengine/nova3/engines/legittorrents.png searchengine/nova3/engines/legittorrents.py searchengine/nova3/engines/piratebay.png diff --git a/src/searchengine/nova/engines/extratorrent.png b/src/searchengine/nova/engines/extratorrent.png deleted file mode 100644 index d7da4954a6927f1751908ba6acae11df5ff67631..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 509 zcmVFew3?(OdK^78oj_xt<%{QUgq=jeRE>|JVdYi@Dy@bJF9 z$n*2__V)J2$Hm&)+Zjr0yxHwHNK|fgcXWAubhqKqV`*%7fQEU2hh}qp z>+I`&gouU3?Uc;#ozL&5(Cw(Ht*EN4sjIDXfQV0bkgmnkHd165N^5m`es*_v!NbMI z#>5;tPtMNF&(F=!&(3Ibe9_O&cz}o9;^p1r=H=z(c!7s`czAhvd1`KPJ7IZ!gN961 zT<`DjZ*OmrlaurF@{*I2^z`%e^z?6ZclY=AaeRbveT8#>hyMQlz*(@q0002INklzjK+vwtV9vxeBL5ESJ#A) z8RrZ!k9W_@T94imgg9-thqd~4z4IglfRvZb=6#lBdjlyYfKqpr%0?K5?+Z^UfGFxs z%c}W91fX?qGFiv?7FW--21t^%@fho6Z?De)Y5Fx9Z62N+9poQr3Si8q@B7C=5cGGA z0kHPFQHF1<1#s>Kp`s|Z(EiXlhUm{q^xyt3o>?9PA4II(00000NkvXXu0mjfrGOLB diff --git a/src/searchengine/nova/engines/extratorrent.py b/src/searchengine/nova/engines/extratorrent.py deleted file mode 100644 index 12c26f3dc..000000000 --- a/src/searchengine/nova/engines/extratorrent.py +++ /dev/null @@ -1,74 +0,0 @@ -#VERSION: 3.10 -#AUTHORS: Christophe Dumez (chris@qbittorrent.org) -#CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of the author nor the names of its contributors may be -# used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -from xml.dom import minidom -#qBt -from novaprinter import prettyPrinter -from helpers import download_file, retrieve_url - -class extratorrent(object): - """ Search engine class """ - url = 'https://extra.to' - name = 'ExtraTorrent' - supported_categories = {'all' : '0', - 'movies' : '4', - 'tv' : '8', - 'music' : '5', - 'games' : '3', - 'anime' : '1', - 'software' : '7', - 'books' : '2', - 'pictures' : '6'} - - def download_torrent(self, info): - """ Downloader """ - print(download_file(info)) - - def search(self, what, cat="all"): - """ Performs search """ - query = "".join((self.url, "/rss.xml?type=search&search=", what, "&cid=", self.supported_categories[cat])) - response = retrieve_url(query) - - xmldoc = minidom.parseString(response) - itemlist = xmldoc.getElementsByTagName('item') - 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.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(): - current_item["leech"] = '' - current_item["seeds"] = item.getElementsByTagName('seeders')[0].childNodes[0].data - if not current_item["seeds"].isdigit(): - current_item["seeds"] = '' - - prettyPrinter(current_item) - - return diff --git a/src/searchengine/nova/engines/versions.txt b/src/searchengine/nova/engines/versions.txt index ac6e0c72d..2027c36e0 100644 --- a/src/searchengine/nova/engines/versions.txt +++ b/src/searchengine/nova/engines/versions.txt @@ -1,6 +1,5 @@ btdb: 1.01 demonoid: 1.23 -extratorrent: 3.10 legittorrents: 2.02 piratebay: 2.15 torlock: 2.0 diff --git a/src/searchengine/nova3/engines/extratorrent.png b/src/searchengine/nova3/engines/extratorrent.png deleted file mode 100644 index d7da4954a6927f1751908ba6acae11df5ff67631..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 509 zcmVFew3?(OdK^78oj_xt<%{QUgq=jeRE>|JVdYi@Dy@bJF9 z$n*2__V)J2$Hm&)+Zjr0yxHwHNK|fgcXWAubhqKqV`*%7fQEU2hh}qp z>+I`&gouU3?Uc;#ozL&5(Cw(Ht*EN4sjIDXfQV0bkgmnkHd165N^5m`es*_v!NbMI z#>5;tPtMNF&(F=!&(3Ibe9_O&cz}o9;^p1r=H=z(c!7s`czAhvd1`KPJ7IZ!gN961 zT<`DjZ*OmrlaurF@{*I2^z`%e^z?6ZclY=AaeRbveT8#>hyMQlz*(@q0002INklzjK+vwtV9vxeBL5ESJ#A) z8RrZ!k9W_@T94imgg9-thqd~4z4IglfRvZb=6#lBdjlyYfKqpr%0?K5?+Z^UfGFxs z%c}W91fX?qGFiv?7FW--21t^%@fho6Z?De)Y5Fx9Z62N+9poQr3Si8q@B7C=5cGGA z0kHPFQHF1<1#s>Kp`s|Z(EiXlhUm{q^xyt3o>?9PA4II(00000NkvXXu0mjfrGOLB diff --git a/src/searchengine/nova3/engines/extratorrent.py b/src/searchengine/nova3/engines/extratorrent.py deleted file mode 100644 index 12c26f3dc..000000000 --- a/src/searchengine/nova3/engines/extratorrent.py +++ /dev/null @@ -1,74 +0,0 @@ -#VERSION: 3.10 -#AUTHORS: Christophe Dumez (chris@qbittorrent.org) -#CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of the author nor the names of its contributors may be -# used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -from xml.dom import minidom -#qBt -from novaprinter import prettyPrinter -from helpers import download_file, retrieve_url - -class extratorrent(object): - """ Search engine class """ - url = 'https://extra.to' - name = 'ExtraTorrent' - supported_categories = {'all' : '0', - 'movies' : '4', - 'tv' : '8', - 'music' : '5', - 'games' : '3', - 'anime' : '1', - 'software' : '7', - 'books' : '2', - 'pictures' : '6'} - - def download_torrent(self, info): - """ Downloader """ - print(download_file(info)) - - def search(self, what, cat="all"): - """ Performs search """ - query = "".join((self.url, "/rss.xml?type=search&search=", what, "&cid=", self.supported_categories[cat])) - response = retrieve_url(query) - - xmldoc = minidom.parseString(response) - itemlist = xmldoc.getElementsByTagName('item') - 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.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(): - current_item["leech"] = '' - current_item["seeds"] = item.getElementsByTagName('seeders')[0].childNodes[0].data - if not current_item["seeds"].isdigit(): - current_item["seeds"] = '' - - prettyPrinter(current_item) - - return diff --git a/src/searchengine/nova3/engines/versions.txt b/src/searchengine/nova3/engines/versions.txt index ac6e0c72d..2027c36e0 100644 --- a/src/searchengine/nova3/engines/versions.txt +++ b/src/searchengine/nova3/engines/versions.txt @@ -1,6 +1,5 @@ btdb: 1.01 demonoid: 1.23 -extratorrent: 3.10 legittorrents: 2.02 piratebay: 2.15 torlock: 2.0