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/tag_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/tag_save.c')
-rw-r--r-- | src/tag_save.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tag_save.c b/src/tag_save.c index efc476e19..2fdaef56c 100644 --- a/src/tag_save.c +++ b/src/tag_save.c @@ -28,6 +28,9 @@ void tag_save(FILE *file, const struct tag *tag) if (tag->time >= 0) fprintf(file, SONG_TIME "%i\n", tag->time); + if (tag->has_playlist) + fprintf(file, "Playlist: yes\n"); + for (unsigned i = 0; i < tag->num_items; i++) fprintf(file, "%s: %s\n", tag_item_names[tag->items[i]->type], |