Skip to content

Commit e4349e8

Browse files
committed
[Search engine] Fix Torrentz plugin for Python2
1 parent f22aee2 commit e4349e8

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/searchengine/nova/engines/torrentz.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#VERSION: 2.18
1+
#VERSION: 2.19
22
#AUTHORS: Diego de las Heras (ngosang@hotmail.es)
33

44
# Redistribution and use in source and binary forms, with or without
@@ -92,10 +92,9 @@ def handle_data(self, data):
9292
# display item
9393
self.td_counter = None
9494
self.current_item['engine_url'] = self.url
95-
if self.current_item['name'].find(u' \xc2'):
96-
self.current_item['name'] = self.current_item['name'].split(u' \xc2')[0]
97-
self.current_item['link'] += '&' + urlencode({'dn' : self.current_item['name']})
98-
self.current_item['name'] = self.current_item['name'].decode('utf8')
95+
if self.current_item['name'].find(u' \xbb'):
96+
self.current_item['name'] = self.current_item['name'].split(u' \xbb')[0]
97+
self.current_item['link'] += '&' + urlencode({'dn' : self.current_item['name'].encode('utf-8')})
9998

10099
prettyPrinter(self.current_item)
101100
self.results.append('a')

src/searchengine/nova/engines/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mininova: 2.01
77
piratebay: 2.14
88
torlock: 2.0
99
torrentreactor: 1.41
10-
torrentz: 2.18
10+
torrentz: 2.19

0 commit comments

Comments
 (0)