From cc503b36e8caa53adf324e8edee1cb5431334ada Mon Sep 17 00:00:00 2001 From: ngosang Date: Wed, 15 Jul 2015 00:27:09 +0200 Subject: [PATCH] [search engine] Remove the word 'torrent' in ExtraTorrent results --- src/searchengine/nova/engines/extratorrent.py | 5 +++-- src/searchengine/nova/engines/versions.txt | 2 +- src/searchengine/nova3/engines/extratorrent.py | 5 +++-- src/searchengine/nova3/engines/versions.txt | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/searchengine/nova/engines/extratorrent.py b/src/searchengine/nova/engines/extratorrent.py index 077602b46..134257af8 100644 --- a/src/searchengine/nova/engines/extratorrent.py +++ b/src/searchengine/nova/engines/extratorrent.py @@ -1,5 +1,6 @@ -#VERSION: 2.01 +#VERSION: 2.02 #AUTHORS: Christophe Dumez (chris@qbittorrent.org) +#CONTRIBUTORS: Diego de las Heras (diegodelasheras@gmail.com) # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -75,7 +76,7 @@ class extratorrent(object): #description self.current_item["desc_link"] = "".join((self.url, link)) #remove view at the beginning - self.current_item["name"] = params["title"][5:].replace("&", "&") + self.current_item["name"] = params["title"][5:-8].replace("&", "&") self.pending_size = True elif link[8] == "_": #download link diff --git a/src/searchengine/nova/engines/versions.txt b/src/searchengine/nova/engines/versions.txt index fda6177d7..1b465e18a 100644 --- a/src/searchengine/nova/engines/versions.txt +++ b/src/searchengine/nova/engines/versions.txt @@ -1,6 +1,6 @@ btdigg: 1.30 demonoid: 1.1 -extratorrent: 2.01 +extratorrent: 2.02 kickasstorrents: 1.28 legittorrents: 2.00 mininova: 2.00 diff --git a/src/searchengine/nova3/engines/extratorrent.py b/src/searchengine/nova3/engines/extratorrent.py index 448132fa1..80c63489b 100644 --- a/src/searchengine/nova3/engines/extratorrent.py +++ b/src/searchengine/nova3/engines/extratorrent.py @@ -1,5 +1,6 @@ -#VERSION: 2.01 +#VERSION: 2.02 #AUTHORS: Christophe Dumez (chris@qbittorrent.org) +#CONTRIBUTORS: Diego de las Heras (diegodelasheras@gmail.com) # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -75,7 +76,7 @@ class extratorrent(object): #description self.current_item["desc_link"] = "".join((self.url, link)) #remove view at the beginning - self.current_item["name"] = params["title"][5:].replace("&", "&") + self.current_item["name"] = params["title"][5:-8].replace("&", "&") self.pending_size = True elif link[8] == "_": #download link diff --git a/src/searchengine/nova3/engines/versions.txt b/src/searchengine/nova3/engines/versions.txt index fda6177d7..1b465e18a 100644 --- a/src/searchengine/nova3/engines/versions.txt +++ b/src/searchengine/nova3/engines/versions.txt @@ -1,6 +1,6 @@ btdigg: 1.30 demonoid: 1.1 -extratorrent: 2.01 +extratorrent: 2.02 kickasstorrents: 1.28 legittorrents: 2.00 mininova: 2.00