Skip to content

Commit

Permalink
added album version data to album search selection (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXColt authored Dec 7, 2024
1 parent 4c9baf9 commit b0a7904
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion streamrip/metadata/search_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def preview(self) -> str:
@classmethod
def from_item(cls, item: dict):
id = str(item["id"])
name = item.get("title") or "Unknown Title"
title = (item.get("title") or "").strip()
version = (item.get("version") or "").strip()
name = title + (" (" + version + ")" if version else "")
artist = (
item.get("performer", {}).get("name")
or item.get("artist", {}).get("name")
Expand Down

0 comments on commit b0a7904

Please sign in to comment.