Skip to content

Bulk asynchronous downloader for multiple file hosts

Rename dont-show to hide to avoid negation in options

Arkadiy Illarionove63a38f39519
diff --git a/README.md b/README.md
index 31b8ce935..b356f963c 100644
--- a/README.md
+++ b/README.md
@@ -172,14 +172,13 @@ optional arguments:
--jdownloader-device device name to login to for jdownloader
--hide-new-progress disables the new rich progress entirely and uses older methods
---dont-show-overall-progress removes overall progress section while downloading
---dont-show-forum-progress removes forum progress section while downloading
---dont-show-thread-progress removes thread progress section while downloading
---dont-show-domain-progress removes domain progress section while downloading
---dont-show-album-progress removes album progress section while downloading
---dont-show-file-progress removes file progress section while downloading
+--hide-overall-progress removes overall progress section while downloading
+--hide-forum-progress removes forum progress section while downloading
+--hide-thread-progress removes thread progress section while downloading
+--hide-domain-progress removes domain progress section while downloading
+--hide-album-progress removes album progress section while downloading
+--hide-file-progress removes file progress section while downloading
--refresh-rate changes the refresh rate of the progress table
-
```
---skip-hosts can use: `"anonfiles", "bayfiles", "bunkr", "coomer.party", "cyberdrop", "cyberfile", "e-hentai", "erome", "fapello", "gfycat", "gallery.deltaporno.com", "gofile", "hgamecg", "img.kiwi", "imgbox", "jpg.church", "jpg.fish", "kemono.party", "lovefap", "nsfw.xxx", "pimpandhost", "pixeldrain", "pixl.li", "postimg", "saint", "simpcity", "socialmediagirls", "xbunker", "xbunkr"`
+`--only-hosts` and `--skip-hosts` can use: `"anonfiles", "bayfiles", "bunkr", "coomer.party", "cyberdrop", "cyberfile", "e-hentai", "erome", "fapello", "gfycat", "gallery.deltaporno.com", "gofile", "hgamecg", "img.kiwi", "imgbox", "jpg.church", "jpg.fish", "kemono.party", "lovefap", "nsfw.xxx", "pimpandhost", "pixeldrain", "pixl.li", "postimg", "saint", "simpcity", "socialmediagirls", "xbunker", "xbunkr"`
diff --git a/cyberdrop_dl/base_functions/config_schema.py b/cyberdrop_dl/base_functions/config_schema.py
index d455bb294..1e6ebb232 100644
--- a/cyberdrop_dl/base_functions/config_schema.py
+++ b/cyberdrop_dl/base_functions/config_schema.py
@@ -38,17 +38,17 @@ config_default = [
"ignore_cache": False,
"ignore_history": False,
"skip_hosts": [],
- "only_hosts": []
+ "only_hosts": [],
},
"Progress_Options": {
"hide_new_progress": False,
- "dont_show_overall_progress": False,
- "dont_show_forum_progress": False,
- "dont_show_thread_progress": False,
- "dont_show_domain_progress": False,
- "dont_show_album_progress": False,
- "dont_show_file_progress": False,
- "refresh_rate": 10
+ "hide_overall_progress": False,
+ "hide_forum_progress": False,
+ "hide_thread_progress": False,
+ "hide_domain_progress": False,
+ "hide_album_progress": False,
+ "hide_file_progress": False,
+ "refresh_rate": 10,
},
"Ratelimiting": {
"connection_timeout": 15,
@@ -75,10 +75,10 @@ config_default = [
"sorted_audio": "{sort_dir}/{base_dir}/Audio",
"sorted_images": "{sort_dir}/{base_dir}/Images",
"sorted_others": "{sort_dir}/{base_dir}/Other",
- "sorted_videos": "{sort_dir}/{base_dir}/Videos"
- }
- }
- }
+ "sorted_videos": "{sort_dir}/{base_dir}/Videos",
+ },
+ },
+ },
]
authentication_args = ["pixeldrain_api_key",
@@ -96,9 +96,8 @@ ignore_args = ["exclude_videos", "exclude_images", "exclude_audio", "exclude_oth
jdownloader_args = ["apply_jdownloader", "jdownloader_username", "jdownloader_password", "jdownloader_device"]
-progress_args = ["hide_new_progress", "dont_show_overall_progress", "dont_show_forum_progress",
- "dont_show_thread_progress", "dont_show_domain_progress", "dont_show_album_progress",
- "dont_show_file_progress", "refresh_rate"]
+progress_args = ["hide_new_progress", "hide_overall_progress", "hide_forum_progress", "hide_thread_progress",
+ "hide_domain_progress", "hide_album_progress", "hide_file_progress", "refresh_rate"]
ratelimiting_args = ["connection_timeout", "ratelimit", "throttle"]
diff --git a/cyberdrop_dl/downloader/progress_definitions.py b/cyberdrop_dl/downloader/progress_definitions.py
index 077753635..a0d0cff02 100644
--- a/cyberdrop_dl/downloader/progress_definitions.py
+++ b/cyberdrop_dl/downloader/progress_definitions.py
@@ -44,17 +44,17 @@ file_progress = Progress(SpinnerColumn(),
async def get_forum_table(progress_options: dict):
"""Table creator for forum threads"""
progress_table = Table.grid(expand=True)
- if not progress_options['dont_show_overall_progress']:
+ if not progress_options['hide_overall_progress']:
progress_table.add_row(Panel.fit(overall_file_progress, title="Overall Progress", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_forum_progress']:
+ if not progress_options['hide_forum_progress']:
progress_table.add_row(Panel.fit(forum_progress, title="Total Thread", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_thread_progress']:
+ if not progress_options['hide_thread_progress']:
progress_table.add_row(Panel.fit(cascade_progress, title="Current Thread", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_domain_progress']:
+ if not progress_options['hide_domain_progress']:
progress_table.add_row(Panel.fit(domain_progress, title="Domains Being Downloaded", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_album_progress']:
+ if not progress_options['hide_album_progress']:
progress_table.add_row(Panel.fit(album_progress, title="Albums Being Downloaded", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_file_progress']:
+ if not progress_options['hide_file_progress']:
progress_table.add_row(Panel.fit(file_progress, title="[b]Files Being Downloaded", border_style="green", padding=(1, 1)))
return progress_table
@@ -62,14 +62,14 @@ async def get_forum_table(progress_options: dict):
async def get_cascade_table(progress_options: dict):
"""Table creator for cascade objects"""
progress_table = Table.grid(expand=True)
- if not progress_options['dont_show_overall_progress']:
+ if not progress_options['hide_overall_progress']:
progress_table.add_row(Panel.fit(overall_file_progress, title="Overall Progress", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_thread_progress']:
+ if not progress_options['hide_thread_progress']:
progress_table.add_row(Panel.fit(cascade_progress, title="Current Thread", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_domain_progress']:
+ if not progress_options['hide_domain_progress']:
progress_table.add_row(Panel.fit(domain_progress, title="Domains Being Downloaded", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_album_progress']:
+ if not progress_options['hide_album_progress']:
progress_table.add_row(Panel.fit(album_progress, title="Albums Being Downloaded", border_style="green", padding=(1, 1)))
- if not progress_options['dont_show_file_progress']:
+ if not progress_options['hide_file_progress']:
progress_table.add_row(Panel.fit(file_progress, title="[b]Files Being Downloaded", border_style="green", padding=(1, 1)))
return progress_table
diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py
index a3273e2a4..61ab2ad64 100644
--- a/cyberdrop_dl/main.py
+++ b/cyberdrop_dl/main.py
@@ -104,12 +104,12 @@ def parse_args() -> argparse.Namespace:
# Progress Options
progress_opts = parser.add_argument_group("Progress options")
progress_opts.add_argument("--hide-new-progress", help="disables the new rich progress entirely and uses older methods", action="store_true")
- progress_opts.add_argument("--dont-show-overall-progress", help="removes overall progress section while downloading", action="store_true")
- progress_opts.add_argument("--dont-show-forum-progress", help="removes forum progress section while downloading", action="store_true")
- progress_opts.add_argument("--dont-show-thread-progress", help="removes thread progress section while downloading", action="store_true")
- progress_opts.add_argument("--dont-show-domain-progress", help="removes domain progress section while downloading", action="store_true")
- progress_opts.add_argument("--dont-show-album-progress", help="removes album progress section while downloading", action="store_true")
- progress_opts.add_argument("--dont-show-file-progress", help="removes file progress section while downloading", action="store_true")
+ progress_opts.add_argument("--hide-overall-progress", help="removes overall progress section while downloading", action="store_true")
+ progress_opts.add_argument("--hide-forum-progress", help="removes forum progress section while downloading", action="store_true")
+ progress_opts.add_argument("--hide-thread-progress", help="removes thread progress section while downloading", action="store_true")
+ progress_opts.add_argument("--hide-domain-progress", help="removes domain progress section while downloading", action="store_true")
+ progress_opts.add_argument("--hide-album-progress", help="removes album progress section while downloading", action="store_true")
+ progress_opts.add_argument("--hide-file-progress", help="removes file progress section while downloading", action="store_true")
progress_opts.add_argument("--refresh-rate", type=int, help="refresh rate for the progress table (default: %(default)s)", default=10)
# Links