Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix condition

Arkadiy Illarionoveae748a00391
diff --git a/cyberdrop_dl/base_functions/sql_helper.py b/cyberdrop_dl/base_functions/sql_helper.py
index 01d9f3109..3780ba072 100644
--- a/cyberdrop_dl/base_functions/sql_helper.py
+++ b/cyberdrop_dl/base_functions/sql_helper.py
@@ -18,7 +18,7 @@ async def get_db_path(url: URL, referer: str = None) -> str:
"""Gets the URL path to be put into the DB and checked from the DB"""
url_path = url.path
- if url.host and 'anonfiles' in url.host or 'bayfiles' in url.host:
+ if url.host and ('anonfiles' in url.host or 'bayfiles' in url.host):
url_parts = url_path.split('/')
url_parts.pop(0)
if len(url_parts) > 1: