Skip to content

Commit

Permalink
Add URL subtitle to album table
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Aug 26, 2024
1 parent 248feae commit 5c79cef
Show file tree
Hide file tree
Showing 4 changed files with 337 additions and 316 deletions.
2 changes: 2 additions & 0 deletions rich_tables/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def should_display(keyval: Tuple[str, Any]) -> bool:

def album_panel(tracks: List[JSONDict]) -> Panel:
album = album_info(tracks)
url = album.pop("url")

# ignore the artist field if there is only one found
track_fields = [
Expand Down Expand Up @@ -183,6 +184,7 @@ def album_panel(tracks: List[JSONDict]) -> Panel:
),
box=box.DOUBLE_EDGE,
style=album["albumartist_color"],
subtitle=f"[b white]{url}",
)


Expand Down
Loading

0 comments on commit 5c79cef

Please sign in to comment.