summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fadbcce)
raw | patch | inline | side by side (parent: fadbcce)
author | Kalle Wallin <kaw@linux.se> | |
Tue, 8 Jun 2004 14:02:24 +0000 (14:02 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Tue, 8 Jun 2004 14:02:24 +0000 (14:02 +0000) |
s no metadata, can you display the
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1394 09075e82-0dd4-0310-85a5-a0d7c8717e4f
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1394 09075e82-0dd4-0310-85a5-a0d7c8717e4f
src/mpc.c | patch | blob | history | |
src/screen_play.c | patch | blob | history |
diff --git a/src/mpc.c b/src/mpc.c
index 08ca970f6c1e563caab234a9a841808d51ac18df..a2db4c62f994eab8739cadfaf65aae7c174a3e51 100644 (file)
--- a/src/mpc.c
+++ b/src/mpc.c
{
static char buf[MAX_SONG_LENGTH];
char *name;
-
+
+ /* streams */
if( song->name )
{
name = utf8_to_locale(song->name);
g_free(name);
return buf;
}
+ else if( strstr(song->file, "://") )
+ {
+ name = utf8_to_locale(song->file);
+ strncpy(buf, name, MAX_SONG_LENGTH);
+ g_free(name);
+
+ return buf;
+ }
+ /* regular songs */
if( song->title )
{
if( song->artist )
diff --git a/src/screen_play.c b/src/screen_play.c
index a1403328943029973844e793c4d0559708a469d1..8d3fc6cf77691b881a27d7e0343fbece3b2623d2 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
/* print a status message */
screen_status_printf(_("Removed \'%s\' from playlist!"),
- mpc_get_song_name(song));
+ mpc_get_song_name2(song));
/* clear selected highlight in the browse screen */
file_set_highlight(c, song, 0);