Skip to content

Bulk asynchronous downloader for multiple file hosts

Remove unused from SQL, and fix typo.

Jules-WinnfieldX4d18e027847e
diff --git a/Timelog b/Timelog
index 5ecb1d315..b3a56b39b 100644
--- a/Timelog
+++ b/Timelog
@@ -1,3 +1,3 @@
1625 Minutes Total
2023-02-06: 9:23AM-10:31AM:
-2023-02-06: 9:40PM
\ No newline at end of file
+2023-02-06: 9:40PM-11:15PM: 1788 Minutes Total
\ No newline at end of file
diff --git a/cyberdrop_dl/base_functions/sql_helper.py b/cyberdrop_dl/base_functions/sql_helper.py
index 6bb867f9a..6fbb3e15e 100644
--- a/cyberdrop_dl/base_functions/sql_helper.py
+++ b/cyberdrop_dl/base_functions/sql_helper.py
@@ -132,26 +132,16 @@ class SQLHelper:
sql_check = self.curs.fetchone()[0]
return sql_check == 1
- async def check_existing(self, domain, url_path):
- if self.ignore_cache:
- return False
- self.curs.execute("""SELECT completed FROM media WHERE domain = ? and url_path = ?""", (domain, url_path,))
- sql_file_check = self.curs.fetchone()
- if not sql_file_check:
- return False
- return True
-
- async def get_existing(self, domain, url_path):
- self.curs.execute("""SELECT * FROM media WHERE domain = ? and url_path = ?""", (domain, url_path,))
- rows = self.curs.fetchall()
- return rows
-
async def get_existing_album(self, domain, album_path):
+ if self.ignore_history:
+ return None
self.curs.execute("""SELECT * FROM media WHERE domain = ? and album_path = ?""", (domain, album_path,))
rows = self.curs.fetchall()
return rows
async def check_complete_singular(self, domain, url_path):
+ if self.ignore_history:
+ return False
self.curs.execute("""SELECT completed FROM media WHERE domain = ? and url_path = ?""", (domain, url_path,))
sql_file_check = self.curs.fetchone()
if not sql_file_check:
diff --git a/cyberdrop_dl/crawlers/Cyberdrop_Spider.py b/cyberdrop_dl/crawlers/Cyberdrop_Spider.py
index c452a426f..185e73936 100644
--- a/cyberdrop_dl/crawlers/Cyberdrop_Spider.py
+++ b/cyberdrop_dl/crawlers/Cyberdrop_Spider.py
@@ -32,7 +32,7 @@ class CyberdropCrawler:
try:
url_path = await get_db_path(url)
- existing = await self.SQL_Helper.get_existing_album("cyerdrop", url_path)
+ existing = await self.SQL_Helper.get_existing_album("cyberdrop", url_path)
existing_files = []
if existing:
title = Path(existing[0][-4]).name