[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-06-27 04:14:49 +00:00
committed by Matthew Stern
parent e0c4322524
commit 33b0b6d224

View File

@@ -29,8 +29,12 @@ SEARCH_CHANNEL_PROMPT = 'Enter a channel name or "/exit" to exit: '
SELECT_CHANNEL_PROMPT = "Select one option of the above [0-6]: " SELECT_CHANNEL_PROMPT = "Select one option of the above [0-6]: "
ENTER_CHANNEL_ID_PROMPT = "Enter a channel ID: " ENTER_CHANNEL_ID_PROMPT = "Enter a channel ID: "
ENTER_CUSTOM_CHANNEL_NAME_PROMPT = "Enter the channel name: " ENTER_CUSTOM_CHANNEL_NAME_PROMPT = "Enter the channel name: "
MINIMUM_SKIP_PROMPT = "Do you want to specify a minimum length of segment to skip? (y/N)" MINIMUM_SKIP_PROMPT = (
MINIMUM_SKIP_SPECIFICATION_PROMPT = "Enter minimum length of segment to skip in seconds (enter 0 to disable):" "Do you want to specify a minimum length of segment to skip? (y/N)"
)
MINIMUM_SKIP_SPECIFICATION_PROMPT = (
"Enter minimum length of segment to skip in seconds (enter 0 to disable):"
)
REPORT_SKIPPED_SEGMENTS_PROMPT = ( REPORT_SKIPPED_SEGMENTS_PROMPT = (
"Do you want to report skipped segments to sponsorblock. Only the segment" "Do you want to report skipped segments to sponsorblock. Only the segment"
" UUID will be sent? (Y/n) " " UUID will be sent? (Y/n) "
@@ -191,9 +195,7 @@ def main(config, debug: bool) -> None:
if choice == "y": if choice == "y":
while True: while True:
try: try:
minimum_skip_length = int( minimum_skip_length = int(input(MINIMUM_SKIP_SPECIFICATION_PROMPT))
input(MINIMUM_SKIP_SPECIFICATION_PROMPT)
)
break break
except ValueError: except ValueError:
print("You entered a non integer value, try again.") print("You entered a non integer value, try again.")