aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_save.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-12 18:19:12 +0100
committerMax Kellermann <max@duempel.org>2012-02-12 18:29:05 +0100
commit4b36af4a349fb8840b0bb3a9fb30552abbac663f (patch)
tree3928f75ca8b1e8f915f72c958332f13b8a710f25 /src/song_save.c
parent4a23a4bfee5c7b213da4f72ae858ab69840ccbdc (diff)
downloadmpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.tar.gz
mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.tar.xz
mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.zip
tag: add attribute "has_playlist"
Diffstat (limited to '')
-rw-r--r--src/song_save.c7
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) {