aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-07-25 13:09:51 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-07-25 13:09:51 +0000
commitd58993d57db2ed3b37b6e062b71fb0d47bcd6b4e (patch)
tree49a815c36474345ae334ce0f4a75f15803f2b72c /lib/python/Components
parent1eeb79e89293630416b2d28a2e5a8b59b9f2786f (diff)
downloadenigma2-d58993d57db2ed3b37b6e062b71fb0d47bcd6b4e.tar.gz
enigma2-d58993d57db2ed3b37b6e062b71fb0d47bcd6b4e.zip
Display actual song names for Audio CDs with CD-Text feature (requires libcdio)
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/MediaPlayer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/MediaPlayer.py b/lib/python/Components/MediaPlayer.py
index 84f7bec7..50de290d 100644
--- a/lib/python/Components/MediaPlayer.py
+++ b/lib/python/Components/MediaPlayer.py
@@ -22,7 +22,10 @@ ForwardIcon = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/i
def PlaylistEntryComponent(serviceref, state):
res = [ serviceref ]
- res.append((eListboxPythonMultiContent.TYPE_TEXT,25, 0, 470, 32, 0, RT_VALIGN_CENTER, path.split(serviceref.getPath().split('/')[-1])[1]))
+ text = serviceref.getName()
+ if text is "":
+ text = path.split(serviceref.getPath().split('/')[-1])[1]
+ res.append((eListboxPythonMultiContent.TYPE_TEXT,25, 0, 470, 32, 0, RT_VALIGN_CENTER, text))
png = None
if state == STATE_PLAY:
png = PlayIcon