Skip to content

Bulk asynchronous downloader for multiple file hosts

rename db to database

Jules-WinnfieldXb605e7f274ea
diff --git a/cyberdrop_dl/managers/db_manager.py b/cyberdrop_dl/managers/db_manager.py
index 3bb3b9f57..b03be624c 100644
--- a/cyberdrop_dl/managers/db_manager.py
+++ b/cyberdrop_dl/managers/db_manager.py
@@ -3,8 +3,8 @@ from pathlib import Path
import aiosqlite
-from cyberdrop_dl.utils.db.tables.history_table import HistoryTable
-from cyberdrop_dl.utils.db.tables.temp_table import TempTable
+from cyberdrop_dl.utils.database.tables.history_table import HistoryTable
+from cyberdrop_dl.utils.database.tables.temp_table import TempTable
class DBManager:
diff --git a/cyberdrop_dl/managers/manager.py b/cyberdrop_dl/managers/manager.py
index 665b718bd..7e63749ba 100644
--- a/cyberdrop_dl/managers/manager.py
+++ b/cyberdrop_dl/managers/manager.py
@@ -88,7 +88,7 @@ class Manager:
def file_startup(self) -> None:
"""Start the file manager"""
self.file_manager.input_file = Path(self.config_manager.settings_data['Files']['input_file'])
- self.file_manager.history_db = Path(self.directory_manager.cache / "cyberdrop.db")
+ self.file_manager.history_db = Path(self.directory_manager.cache / "cyberdrop.database")
self.file_manager.main_log = Path(
self.directory_manager.logs / self.config_manager.settings_data['Logs']['main_log_filename'])
diff --git a/cyberdrop_dl/utils/db/__init__.py b/cyberdrop_dl/utils/database/__init__.py
similarity index 100%
rename from cyberdrop_dl/utils/db/__init__.py
rename to cyberdrop_dl/utils/database/__init__.py
diff --git a/cyberdrop_dl/utils/db/table_definitions.py b/cyberdrop_dl/utils/database/table_definitions.py
similarity index 100%
rename from cyberdrop_dl/utils/db/table_definitions.py
rename to cyberdrop_dl/utils/database/table_definitions.py
diff --git a/cyberdrop_dl/utils/db/tables/__init__.py b/cyberdrop_dl/utils/database/tables/__init__.py
similarity index 100%
rename from cyberdrop_dl/utils/db/tables/__init__.py
rename to cyberdrop_dl/utils/database/tables/__init__.py
diff --git a/cyberdrop_dl/utils/db/tables/history_table.py b/cyberdrop_dl/utils/database/tables/history_table.py
similarity index 98%
rename from cyberdrop_dl/utils/db/tables/history_table.py
rename to cyberdrop_dl/utils/database/tables/history_table.py
index e1220951b..0415d0e49 100644
--- a/cyberdrop_dl/utils/db/tables/history_table.py
+++ b/cyberdrop_dl/utils/database/tables/history_table.py
@@ -4,7 +4,7 @@ import aiosqlite
from typing import TYPE_CHECKING
from yarl import URL
-from cyberdrop_dl.utils.db.table_definitions import create_history
+from cyberdrop_dl.utils.database.table_definitions import create_history
if TYPE_CHECKING:
from cyberdrop_dl.utils.dataclasses.url_objects import MediaItem
diff --git a/cyberdrop_dl/utils/db/tables/temp_table.py b/cyberdrop_dl/utils/database/tables/temp_table.py
similarity index 93%
rename from cyberdrop_dl/utils/db/tables/temp_table.py
rename to cyberdrop_dl/utils/database/tables/temp_table.py
index b76bdd266..e19d65d81 100644
--- a/cyberdrop_dl/utils/db/tables/temp_table.py
+++ b/cyberdrop_dl/utils/database/tables/temp_table.py
@@ -2,7 +2,7 @@ from typing import List
import aiosqlite
-from cyberdrop_dl.utils.db.table_definitions import create_temp
+from cyberdrop_dl.utils.database.table_definitions import create_temp
class TempTable: