Skip to content

Bulk asynchronous downloader for multiple file hosts

still trying to force gofile-client update

Jules-WinnfieldX6570ed6d75c6
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 4de2b4e35..800de89f9 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "2.13.6"
+__version__ = "2.13.7"
diff --git a/cyberdrop_dl/utils/base_functions.py b/cyberdrop_dl/utils/base_functions.py
index 537692755..e12023f25 100644
--- a/cyberdrop_dl/utils/base_functions.py
+++ b/cyberdrop_dl/utils/base_functions.py
@@ -55,20 +55,18 @@ def sanitize(input: str) -> str:
def sql_initialize():
download_history = "download_history_size_based.sqlite"
- if not os.path.isfile(download_history):
- conn = sqlite3.connect(download_history)
- curr = conn.cursor()
- create_table_query = """CREATE TABLE downloads (
- filename TEXT,
- size INTEGER NOT NULL,
- completed INTEGER NOT NULL,
- PRIMARY KEY (filename, size)
- );"""
- curr.execute(create_table_query)
- conn.commit()
- else:
- conn = sqlite3.connect(download_history)
- curr = conn.cursor()
+
+ conn = sqlite3.connect(download_history)
+ curr = conn.cursor()
+ create_table_query = """CREATE TABLE IF NOT EXISTS downloads (
+ filename TEXT,
+ size INTEGER NOT NULL,
+ completed INTEGER NOT NULL,
+ PRIMARY KEY (filename, size)
+ );"""
+ curr.execute(create_table_query)
+
+ conn.commit()
return conn, curr
diff --git a/setup.cfg b/setup.cfg
index 229ad9e49..ec07a9c1f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -17,7 +17,7 @@ install_requires =
aiohttp
certifi
colorama
- gofile-client
+ gofile-client>=1.0.1
requests
tqdm
yarl