Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Ints only
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 5, 2023
1 parent 3587765 commit dace0c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.0.34"
__version__ = "5.0.35"
10 changes: 6 additions & 4 deletions cyberdrop_dl/ui/prompts/settings_global_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def edit_rate_limiting_settings_prompt(manager: Manager) -> None:
connection_timeout = inquirer.number(
message="Connection Timeout (in seconds):",
default=int(manager.config_manager.global_settings_data['Rate_Limiting_Options']['connection_timeout']),
float_allowed=True,
float_allowed=False,
).execute()
read_timeout = inquirer.number(
message="Read Timeout (in seconds):",
default=int(manager.config_manager.global_settings_data['Rate_Limiting_Options']['read_timeout']),
float_allowed=True,
float_allowed=False,
).execute()
download_attempts = inquirer.number(
message="Download Attempts:",
Expand All @@ -122,13 +122,15 @@ def edit_rate_limiting_settings_prompt(manager: Manager) -> None:
float_allowed=False,
).execute()

max_simultaneous_downloads = inquirer.text(
max_simultaneous_downloads = inquirer.number(
message="Maximum number of simultaneous downloads:",
default=int(manager.config_manager.global_settings_data['Rate_Limiting_Options']['max_simultaneous_downloads']),
float_allowed=False,
).execute()
max_simultaneous_downloads_per_domain = inquirer.text(
max_simultaneous_downloads_per_domain = inquirer.number(
message="Maximum number of simultaneous downloads per domain:",
default=int(manager.config_manager.global_settings_data['Rate_Limiting_Options']['max_simultaneous_downloads_per_domain']),
float_allowed=False,
).execute()

manager.config_manager.global_settings_data['Rate_Limiting_Options']['connection_timeout'] = int(connection_timeout)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.0.34"
version = "5.0.35"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit dace0c7

Please sign in to comment.