Package: cplay Version: 1.49-10 Severity: wishlist Tags: patch cplay does not show the album tag in tag list mode. The following patch adds this feature.
Bernhard Kauer
--- /usr/bin/cplay 2005-09-13 21:56:38.000000000 +0200 +++ cplay 2007-03-06 22:30:03.000000000 +0100 @@ -1161,17 +1161,12 @@ else: return os.path.basename(pathname) - artist = tags.get("ARTIST", [""])[0] - title = tags.get("TITLE", [""])[0] tag = os.path.basename(pathname) try: - if artist and title: - tag = codecs.latin_1_encode(artist)[0] + " - " + codecs.latin_1_encode(title)[0] - elif artist: - tag = artist - elif title: - tag = title - return codecs.latin_1_encode(tag)[0] + t = " - ".join(filter(lambda x:x, map(lambda x:codecs.latin_1_encode(tags.get(x,[""])[0])[0],["ALBUM","ARTIST","TITLE"]))) + if t: + return t + return tag except (NameError, UnicodeError): return tag # ------------------------------------------