[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>
This commit is contained in:
Markus Heiser 2024-03-05 17:26:23 +01:00 committed by Markus Heiser
parent 3179993847
commit a5b81e2555
2 changed files with 29 additions and 16 deletions

View file

@ -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,
}