diff options
| author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-01-10 20:01:36 +0100 |
|---|---|---|
| committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-01-10 20:01:36 +0100 |
| commit | 811515101b750717f6b07fad1a9b75041f91c90d (patch) | |
| tree | 5402a19b8d0758e1216ebfd57ba268268e0ad2d0 /searx | |
| parent | c19b0899a415fa3be7c1f30258c218868ef0b671 (diff) | |
[fix] pep8
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/engines/kickass.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/searx/engines/kickass.py b/searx/engines/kickass.py index 39b50b0ef..a4d270673 100644 --- a/searx/engines/kickass.py +++ b/searx/engines/kickass.py @@ -80,16 +80,16 @@ def response(resp): # convert filesize to byte if possible try: filesize = float(filesize) - + # convert filesize to byte if filesize_multiplier == 'TB': - filesize = int(filesize * 1024*1024*1024*1024) + filesize = int(filesize * 1024 * 1024 * 1024 * 1024) elif filesize_multiplier == 'GB': - filesize = int(filesize * 1024*1024*1024) + filesize = int(filesize * 1024 * 1024 * 1024) elif filesize_multiplier == 'MB': - filesize = int(filesize * 1024*1024) + filesize = int(filesize * 1024 * 1024) elif filesize_multiplier == 'kb': - filesize = int(filesize * 1024) + filesize = int(filesize * 1024) except: filesize = None @@ -100,7 +100,7 @@ def response(resp): files = None magnetlink = result.xpath(magnet_xpath)[0].attrib['href'] - + torrentfile = result.xpath(torrent_xpath)[0].attrib['href'] # append result @@ -112,7 +112,7 @@ def response(resp): 'filesize': filesize, 'files': files, 'magnetlink': magnetlink, - 'torrentfile':torrentfile, + 'torrentfile': torrentfile, 'template': 'torrent.html'}) # return results sorted by seeder |