forked from zaclys/searxng
Fix PEP8 warnings for Nyaa.py
This commit is contained in:
parent
a8832574fa
commit
e202c6fbec
|
@ -43,6 +43,7 @@ def int_or_zero(num):
|
||||||
return int(num)
|
return int(num)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
# get multiplier to convert torrent size to bytes
|
# get multiplier to convert torrent size to bytes
|
||||||
def get_filesize_mul(suffix):
|
def get_filesize_mul(suffix):
|
||||||
return {
|
return {
|
||||||
|
@ -57,6 +58,7 @@ def get_filesize_mul(suffix):
|
||||||
'TIB': 1024 ** 4
|
'TIB': 1024 ** 4
|
||||||
}[str(suffix).upper()]
|
}[str(suffix).upper()]
|
||||||
|
|
||||||
|
|
||||||
# do search-request
|
# do search-request
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
query = urlencode({'term': query})
|
query = urlencode({'term': query})
|
||||||
|
|
Loading…
Reference in New Issue