summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2009-01-11 23:28:34 +0100
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2009-01-11 23:28:34 +0100
commit396790c9bc034e9de32e93260fc4f6044468caed (patch)
treeed31df56b774f0f0af93d066b8891a668c3c1adf
parentc405cdff24427c485e493424f8dbd3a2c3061be8 (diff)
downloadvdr-plugin-muggle-396790c9bc034e9de32e93260fc4f6044468caed.tar.gz
vdr-plugin-muggle-396790c9bc034e9de32e93260fc4f6044468caed.tar.bz2
when loading lyrics, do not just display empty text but the
message "loading from internet..."
-rw-r--r--HISTORY2
-rw-r--r--lyrics.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 2078c01..5e600b3 100644
--- a/HISTORY
+++ b/HISTORY
@@ -392,3 +392,5 @@ Balke.
removed this code from C++ and put it into the python script muggle_getlyrics.
- Lyrics: when calling "mv" to rename a file make sure mv never gets interactive
- muggle-image-convert produces less output if needed programs are not installed
+- When loading lyrics, do not show just empty text but the line "loading lyrics
+ from the internet"
diff --git a/lyrics.c b/lyrics.c
index ff051b4..936a58d 100644
--- a/lyrics.c
+++ b/lyrics.c
@@ -189,6 +189,10 @@ mgLyrics::BuildOsd () {
break;
}
InitOsd();
- if (!access(loadfile.c_str(),R_OK))
- osd()->AddFile(loadfile);
+ if (state == lyricsLoading) {
+ osd()->AddText(tr("Loading lyrics from internet..."),0);
+ } else {
+ if (!access(loadfile.c_str(),R_OK))
+ osd()->AddFile(loadfile);
+ }
}