Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Changes where the DB check is made, can incredibly boost the speed of skipping completed files in some circumstances.
Jules-WinnfieldX81503763f2f8
diff --git a/README.md b/README.mdindex 9754c2ce2..d821bfa12 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@# `cyberdrop-dl`**Bulk downloader for multiple file hosts**-The latest version of the program is 3.6.12+The latest version of the program is 3.6.13<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>diff --git a/changelog.txt b/changelog.txtindex 9e8ff34c5..6a3d848e5 100644--- a/changelog.txt+++ b/changelog.txt@@ -83,4 +83,7 @@- If referrer is a forum, we don't rescrape.3.6.12-- Removes file lock when file is already downloaded, avoids infinite loops in a fringe circumstance.\ No newline at end of file+- Removes file lock when file is already downloaded, avoids infinite loops in a fringe circumstance.++3.6.13+- Changes where the DB check is made, can incredibly boost the speed of skipping completed files in some circumstances.\ No newline at end of filediff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 11866f8b8..1ee97453c 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "3.6.12"+__version__ = "3.6.13"diff --git a/cyberdrop_dl/client/downloaders.py b/cyberdrop_dl/client/downloaders.pyindex befede7ba..b23963bd5 100644--- a/cyberdrop_dl/client/downloaders.py+++ b/cyberdrop_dl/client/downloaders.py@@ -120,13 +120,6 @@ class Downloader:db_path.pop(1)db_path = '/' + '/'.join(db_path)- # return if completed already- if await self.SQL_helper.sql_check_existing(db_path):- if url.parts[-1] in self.current_attempt.keys():- self.current_attempt.pop(url.parts[-1])- logger.debug(msg=f"{db_path} found in DB: Skipping {filename}")- return-try:async with self._semaphore:# Make suffix always lower case@@ -328,6 +321,21 @@ class Downloader:url, referral = url_tuplelogger.debug("Working on " + str(url))+ db_path = url.path++ if 'anonfiles' in url.host:+ db_path = db_path.split('/')+ db_path.pop(0)+ db_path.pop(1)+ db_path = '/' + '/'.join(db_path)++ # return if completed already+ if await self.SQL_helper.sql_check_existing(db_path):+ if url.parts[-1] in self.current_attempt.keys():+ self.current_attempt.pop(url.parts[-1])+ logger.debug(msg=f"{db_path} found in DB: Skipping {db_path}")+ return+try:filename = await self.get_filename(url, referral, session)if await self.check_exclude(filename):