🛠️ Changed cli progress bar length.

This commit is contained in:
Robert Honz
2024-01-15 21:22:34 +01:00
parent fb6e45a0d4
commit acf2ff3adb
+4 -4
View File
@@ -91,7 +91,7 @@ class Download:
# Create progress Task # Create progress Task
p_task: TaskID = progress.add_task( p_task: TaskID = progress.add_task(
f"[blue]Item '{media_name[:20]}'", f"[blue]Item '{media_name[:30]}'",
total=progress_total, total=progress_total,
visible=progress_stdout, visible=progress_stdout,
) )
@@ -304,13 +304,13 @@ class Download:
# Get the items and name of the list. # Get the items and name of the list.
if isinstance(media, Mix): if isinstance(media, Mix):
items = media.items() items = media.items()
list_media_name = media.title[:20] list_media_name = media.title[:30]
elif video_download: elif video_download:
items = media.items(limit=100) items = media.items(limit=100)
list_media_name = media.name[:20] list_media_name = media.name[:30]
else: else:
items = media.tracks(limit=999) items = media.tracks(limit=999)
list_media_name = media.name[:20] list_media_name = media.name[:30]
# Determine where to redirect the progress information. # Determine where to redirect the progress information.
if progress_gui is None: if progress_gui is None: