diff options
Diffstat (limited to 'src/song.c')
-rw-r--r-- | src/song.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c index ed88f1f60..41e3d4b66 100644 --- a/src/song.c +++ b/src/song.c @@ -34,6 +34,7 @@ #define SONG_ALBUM "Album: " #define SONG_TRACK "Track: " #define SONG_TITLE "Title: " +#define SONG_NAME "Name: " #define SONG_TIME "Time: " #define SONG_MTIME "mtime: " @@ -235,6 +236,10 @@ void readSongInfoIntoList(FILE * fp, SongList * list) { if(!song->tag) song->tag = newMpdTag(); song->tag->title = strdup(&(buffer[strlen(SONG_TITLE)])); } + else if(0==strncmp(SONG_NAME,buffer,strlen(SONG_NAME))) { + if(!song->tag) song->tag = newMpdTag(); + song->tag->name = strdup(&(buffer[strlen(SONG_NAME)])); + } else if(0==strncmp(SONG_TIME,buffer,strlen(SONG_TIME))) { if(!song->tag) song->tag = newMpdTag(); song->tag->time = atoi(&(buffer[strlen(SONG_TIME)])); |