Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
skip_download_mark_completed from mark_complete
Jules-WinnfieldXb2057ba03f7a
diff --git a/cyberdrop_dl/base_functions/config_schema.py b/cyberdrop_dl/base_functions/config_schema.pyindex db5ba7988..99eb814cd 100644--- a/cyberdrop_dl/base_functions/config_schema.py+++ b/cyberdrop_dl/base_functions/config_schema.py@@ -50,7 +50,7 @@ config_default = ["block_sub_folders": True,"disable_attempt_limit": False,"include_id": False,- "mark_downloaded": False,+ "skip_download_mark_completed": False,"output_errored_urls": False,"output_unsupported_urls": False,"proxy": "",@@ -88,7 +88,7 @@ jdownloader_args = ["apply_jdownloader", "jdownloader_username", "jdownloader_paratelimiting_args = ["connection_timeout", "ratelimit", "throttle"]runtime_args = ["simultaneous_downloads_per_domain", "allow_insecure_connections", "attempts", "disable_attempt_limit",- "include_id", "mark_downloaded", "proxy", "required_free_space", "output_errored_urls",+ "include_id", "skip_download_mark_completed", "proxy", "required_free_space", "output_errored_urls","output_unsupported_urls", "block_sub_folders"]sorting_args = ["sort_downloads", "sort_directory", "sorted_audio", "sorted_images", "sorted_others", "sorted_videos"]diff --git a/cyberdrop_dl/crawlers/Xenforo_Spider.py b/cyberdrop_dl/crawlers/Xenforo_Spider.pyindex 241e7a2b2..22df6e153 100644--- a/cyberdrop_dl/crawlers/Xenforo_Spider.py+++ b/cyberdrop_dl/crawlers/Xenforo_Spider.py@@ -103,7 +103,7 @@ class XenforoCrawler:async def socialmediagirls_login(self, session: ScrapeSession, url: URL):"""Handles logging in for SMG"""if self.socialmediagirls_username and self.socialmediagirls_username:- if self.socialmediagirls_lock:+ if not self.socialmediagirls_lock:while True:if self.socialmediagirls_logged_in:return@@ -136,7 +136,7 @@ class XenforoCrawler:async def xbunker_login(self, session: ScrapeSession, url: URL):"""Handles logging in for XBunker"""if self.xbunker_username and self.xbunker_password:- if self.xbunker_lock:+ if not self.xbunker_lock:while True:if self.xbunker_logged_in:return@@ -218,6 +218,7 @@ class XenforoCrawler:"""Splits given links into direct links and external links,returns external links, adds internal to the cascade"""forum_direct_urls = [x for x in content_links if x[0].host.replace(".st", ".su") in url.host]+ forum_direct_urls.extend([x for x in content_links if url.host in x[0].host.replace(".st", ".su")])content_links = [x for x in content_links if x not in forum_direct_urls]for link_title_bundle in forum_direct_urls:link = link_title_bundle[0]diff --git a/cyberdrop_dl/downloader/downloaders.py b/cyberdrop_dl/downloader/downloaders.pyindex 47e9edbc1..ea7f128d5 100644--- a/cyberdrop_dl/downloader/downloaders.py+++ b/cyberdrop_dl/downloader/downloaders.py@@ -99,7 +99,7 @@ class Downloader:self.allow_insecure_connections = args["Runtime"]["allow_insecure_connections"]self.disable_attempt_limit = args["Runtime"]["disable_attempt_limit"]self.download_dir = args["Files"]["output_folder"]- self.mark_downloaded = args["Runtime"]["mark_downloaded"]+ self.mark_downloaded = args["Runtime"]["skip_download_mark_completed"]self.proxy = args["Runtime"]["proxy"]self.required_free_space = args["Runtime"]["required_free_space"]diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.pyindex 9a35637c0..8e8607dc4 100644--- a/cyberdrop_dl/main.py+++ b/cyberdrop_dl/main.py@@ -48,7 +48,7 @@ def parse_args() -> argparse.Namespace:parser.add_argument("--block-sub-folders", help="Block sub folders from being created", action="store_true")parser.add_argument("--disable-attempt-limit", help="disables the attempt limitation", action="store_true")parser.add_argument("--include-id", help="include the ID in the download folder name", action="store_true")- parser.add_argument("--mark-downloaded", help="sets the scraped files as downloaded without downloading", action="store_true")+ parser.add_argument("--skip-download-mark-completed", help="sets the scraped files as downloaded without downloading", action="store_true")parser.add_argument("--output-errored-urls", help="sets the failed urls to be output to the errored urls file", action="store_true")parser.add_argument("--output-unsupported-urls", help="sets the unsupported urls to be output to the unsupported urls file", action="store_true")parser.add_argument("--proxy", help="HTTP/HTTPS proxy used for downloading, format [protocal]://[ip]:[port]", default=None)