mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-12 05:11:24 +00:00
[search engine] Fix PirateBay plugin implementation for Python 3
This commit is contained in:
parent
e07562beae
commit
b8c4a86348
@ -141,10 +141,8 @@ class piratebay(object):
|
|||||||
if self.save_item == "size":
|
if self.save_item == "size":
|
||||||
temp_data = data.split()
|
temp_data = data.split()
|
||||||
if "Size" in temp_data:
|
if "Size" in temp_data:
|
||||||
self.current_item[self.save_item] = temp_data[2]
|
indx = temp_data.index("Size")
|
||||||
elif "ULed" in temp_data:
|
self.current_item[self.save_item] = temp_data[indx + 1] + " " + temp_data[indx + 2]
|
||||||
temp_string = self.current_item[self.save_item]
|
|
||||||
self.current_item[self.save_item] = " ".join((temp_string, temp_data[0][:-1]))
|
|
||||||
|
|
||||||
elif self.save_item == "name":
|
elif self.save_item == "name":
|
||||||
# names with special characters like '&' are splitted in several pieces
|
# names with special characters like '&' are splitted in several pieces
|
||||||
|
Loading…
x
Reference in New Issue
Block a user