diff options
author | Max Kellermann <max@duempel.org> | 2012-02-12 18:19:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-12 18:29:05 +0100 |
commit | 4b36af4a349fb8840b0bb3a9fb30552abbac663f (patch) | |
tree | 3928f75ca8b1e8f915f72c958332f13b8a710f25 /src/song_save.c | |
parent | 4a23a4bfee5c7b213da4f72ae858ab69840ccbdc (diff) | |
download | mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.tar.gz mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.tar.xz mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.zip |
tag: add attribute "has_playlist"
Diffstat (limited to 'src/song_save.c')
-rw-r--r-- | src/song_save.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/song_save.c b/src/song_save.c index 0d4c36f99..4fcb46e22 100644 --- a/src/song_save.c +++ b/src/song_save.c @@ -100,6 +100,13 @@ song_load(FILE *fp, struct directory *parent, const char *uri, } song->tag->time = atoi(value); + } else if (strcmp(line, "Playlist") == 0) { + if (!song->tag) { + song->tag = tag_new(); + tag_begin_add(song->tag); + } + + song->tag->has_playlist = strcmp(value, "yes") == 0; } else if (strcmp(line, SONG_MTIME) == 0) { song->mtime = atoi(value); } else if (strcmp(line, "Range") == 0) { |