mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 20:06:44 +03:00
Remove redundant code for minimum skip length configuration
This commit is contained in:
@@ -203,18 +203,6 @@ def main(config, debug: bool) -> None:
|
|||||||
|
|
||||||
config.minimum_skip_length = minimum_skip_length
|
config.minimum_skip_length = minimum_skip_length
|
||||||
|
|
||||||
# Ask for minimum skip length. Confirm input is an integer
|
|
||||||
while True:
|
|
||||||
try:
|
|
||||||
minimum_skip_length = int(
|
|
||||||
input("Enter minimum length of segment to skip in seconds: ")
|
|
||||||
)
|
|
||||||
break
|
|
||||||
except ValueError:
|
|
||||||
print("You entered a non integer value, try again.")
|
|
||||||
continue
|
|
||||||
config.minimum_skip_length = minimum_skip_length
|
|
||||||
|
|
||||||
choice = get_yn_input(REPORT_SKIPPED_SEGMENTS_PROMPT)
|
choice = get_yn_input(REPORT_SKIPPED_SEGMENTS_PROMPT)
|
||||||
config.skip_count_tracking = choice != "n"
|
config.skip_count_tracking = choice != "n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user