mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
The original code accumulates all the <td> texts between the description link and the number of seeders into self.current_item["size"]: <td>248.72</td><td> MB<td> => "248.72 MB". ExtraTorrents changed the table design, added the Added column and joined the number and its unit: <td>8d</td><td>248.72 MB</td> => "8d 248.72 MB" This commit stores only the last <td> text in self.current_item["size"].
This commit is contained in:
parent
3ea81be2cc
commit
3a744a954b
@ -1,4 +1,4 @@
|
|||||||
#VERSION: 2.04
|
#VERSION: 2.05
|
||||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
#CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es)
|
#CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es)
|
||||||
|
|
||||||
@ -125,9 +125,7 @@ class extratorrent(object):
|
|||||||
|
|
||||||
def handle_data(self, data):
|
def handle_data(self, data):
|
||||||
if self.cur_item_name:
|
if self.cur_item_name:
|
||||||
temp = self.current_item[self.cur_item_name]
|
self.current_item[self.cur_item_name] = data
|
||||||
self.current_item[self.cur_item_name] = " ".join((temp, data))
|
|
||||||
#Due to utf-8 we need to handle data two times if there is space
|
|
||||||
if not self.cur_item_name == "size":
|
if not self.cur_item_name == "size":
|
||||||
self.cur_item_name = None
|
self.cur_item_name = None
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
demonoid: 1.21
|
demonoid: 1.21
|
||||||
extratorrent: 2.04
|
extratorrent: 2.05
|
||||||
legittorrents: 2.01
|
legittorrents: 2.01
|
||||||
mininova: 2.02
|
mininova: 2.02
|
||||||
piratebay: 2.15
|
piratebay: 2.15
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#VERSION: 2.04
|
#VERSION: 2.05
|
||||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
#CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es)
|
#CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es)
|
||||||
|
|
||||||
@ -125,9 +125,7 @@ class extratorrent(object):
|
|||||||
|
|
||||||
def handle_data(self, data):
|
def handle_data(self, data):
|
||||||
if self.cur_item_name:
|
if self.cur_item_name:
|
||||||
temp = self.current_item[self.cur_item_name]
|
self.current_item[self.cur_item_name] = data
|
||||||
self.current_item[self.cur_item_name] = " ".join((temp, data))
|
|
||||||
#Due to utf-8 we need to handle data two times if there is space
|
|
||||||
if not self.cur_item_name == "size":
|
if not self.cur_item_name == "size":
|
||||||
self.cur_item_name = None
|
self.cur_item_name = None
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
demonoid: 1.21
|
demonoid: 1.21
|
||||||
extratorrent: 2.04
|
extratorrent: 2.05
|
||||||
legittorrents: 2.01
|
legittorrents: 2.01
|
||||||
mininova: 2.02
|
mininova: 2.02
|
||||||
piratebay: 2.15
|
piratebay: 2.15
|
||||||
|
Loading…
x
Reference in New Issue
Block a user