summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-03-05 17:26:23 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-03-07 07:38:31 +0100
commita5b81e2555341090b0f1b3523ab86b2f951291c8 (patch)
treeb083fdd0d586c8284044442370c712a75bcccee7 /searx/utils.py
parent3179993847a3005bd7769d2d338c14ac54bc2925 (diff)
downloadsearxng-a5b81e2555341090b0f1b3523ab86b2f951291c8.tar.gz
searxng-a5b81e2555341090b0f1b3523ab86b2f951291c8.zip
[fix] nyaa engine - paging support & filesize (GiB)
BTW: pylint engine Closes: https://github.com/searxng/searxng/issues/3290 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/utils.py b/searx/utils.py
index b0794c244..259a14df3 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -48,6 +48,7 @@ _STORAGE_UNIT_VALUE: Dict[str, int] = {
'GB': 1024 * 1024 * 1024,
'MB': 1024 * 1024,
'TiB': 1000 * 1000 * 1000 * 1000,
+ 'GiB': 1000 * 1000 * 1000,
'MiB': 1000 * 1000,
'KiB': 1000,
}