From 32cb9b6602dfc2b1bae32cad3b5962599a44b3bb Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sun, 20 Nov 2022 11:13:48 +0100 Subject: [PATCH] Make styling a bit more consistent --- twitchdl/commands/download.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twitchdl/commands/download.py b/twitchdl/commands/download.py index 598535f..192b053 100644 --- a/twitchdl/commands/download.py +++ b/twitchdl/commands/download.py @@ -51,9 +51,9 @@ def _select_playlist_interactive(playlists): print_out("\nAvailable qualities:") for n, (name, resolution, uri) in enumerate(playlists): if resolution: - print_out("{}) {} [{}]".format(n + 1, name, resolution)) + print_out("{}) {} ({})".format(n + 1, name, resolution)) else: - print_out("{}) {}".format(n + 1, name)) + print_out("{}) {}".format(n + 1, name)) no = utils.read_int("Choose quality", min=1, max=len(playlists) + 1, default=1) _, _, uri = playlists[no - 1] @@ -365,7 +365,7 @@ def _determine_time_range(video_id, args): except IndexError: raise ConsoleError(f"Chapter {args.chapter} does not exist. This video has {len(chapters)} chapters.") - print_out(f'Selected chapter: {chapter["description"]}') + print_out(f'Chapter selected: {chapter["description"]}\n') start = chapter["positionMilliseconds"] // 1000 duration = chapter["durationMilliseconds"] // 1000 return start, start + duration @@ -377,7 +377,7 @@ def _choose_chapter_interactive(chapters): print_out("\nChapters:") for index, chapter in enumerate(chapters): duration = utils.format_time(chapter["durationMilliseconds"] // 1000) - print_out(f'{index + 1}) {chapter["description"]} ({duration})') + print_out(f'{index + 1}) {chapter["description"]} ({duration})') index = utils.read_int("Select a chapter", 1, len(chapters)) chapter = chapters[index - 1] return chapter