[isohunt] bug if leech or seed is empty corrected
This commit is contained in:
parent
3cbf1d13a6
commit
d1c34f89d8
1 changed files with 4 additions and 0 deletions
|
|
@ -53,7 +53,11 @@ class TorrentsPage(BasePage):
|
||||||
torrent = Torrent(idt, title)
|
torrent = Torrent(idt, title)
|
||||||
torrent.url = url
|
torrent.url = url
|
||||||
torrent.size = get_bytes_size(size, u)
|
torrent.size = get_bytes_size(size, u)
|
||||||
|
if seed == None or seed == "":
|
||||||
|
seed = 0
|
||||||
torrent.seeders = int(seed)
|
torrent.seeders = int(seed)
|
||||||
|
if leech == None or leech == "":
|
||||||
|
leech = 0
|
||||||
torrent.leechers = int(leech)
|
torrent.leechers = int(leech)
|
||||||
yield torrent
|
yield torrent
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue