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:
joshjowen 2015-02-04 17:49:39 +10:00
parent c62d8f2c79
commit 3509610635
1 changed files with 1 additions and 1 deletions

View File

@ -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'])