From cd0c419142137a4b6de4b8b5ff517b0dda9c70de Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 25 Feb 2023 14:01:46 +0000 Subject: [PATCH] Print available tracks in a Panel --- devine/commands/dl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index e1d52b9..acf1ed0 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -29,6 +29,7 @@ from pywidevine.device import Device from pywidevine.remotecdm import RemoteCdm from rich.live import Live from rich.padding import Padding +from rich.panel import Panel from rich.progress import BarColumn, Progress, SpinnerColumn, TextColumn, TimeRemainingColumn from rich.rule import Rule from rich.table import Table @@ -338,7 +339,7 @@ class dl: if list_: available_tracks, _ = title.tracks.tree() - console.log(available_tracks) + console.log(Panel(available_tracks, title="Available Tracks")) continue with console.status("Selecting tracks...", spinner="dots"):