Update kat.py
Cast the string item['torrent_verified'] as an integer so that 'verified' will be False if the returned string is "0" which would otherwise be True because it is a non-empty string
This commit is contained in:
parent
c62d8f2c79
commit
3509610635
|
@ -239,7 +239,7 @@ class KATProvider(generic.TorrentProvider):
|
|||
id = item['guid']
|
||||
title = item['title']
|
||||
url = item['torrent_magneturi']
|
||||
verified = bool(item['torrent_verified'] or 0)
|
||||
verified = bool(int(item['torrent_verified']) or 0)
|
||||
seeders = int(item['torrent_seeds'])
|
||||
leechers = int(item['torrent_peers'])
|
||||
size = int(item['torrent_contentlength'])
|
||||
|
|
Loading…
Reference in New Issue