From 9bfb844cfa1118aeccdf4a738df28053a3005516 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Jul 2016 17:47:08 +0200 Subject: [PATCH] decoder/sidplay: read the "date" tag --- NEWS | 1 + src/decoder/plugins/SidplayDecoderPlugin.cxx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index 42765cba4..1046b4066 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ ver 0.19.18 (not yet released) - ffmpeg: support FFmpeg 3.1 - sidplay: detect libsidplay2 with pkg-config - sidplay: log detailed error message + - sidplay: read the "date" tag * output - shout: recognize setting "encoder" instead of "encoding" * require gcc 4.7 or newer diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx index d99908251..1ab73d056 100644 --- a/src/decoder/plugins/SidplayDecoderPlugin.cxx +++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx @@ -327,6 +327,12 @@ sidplay_scan_file(Path path_fs, tag_handler_invoke_tag(handler, handler_ctx, TAG_ARTIST, artist); + /* date */ + const char *date = GetInfoString(info, 2); + if (date != nullptr) + tag_handler_invoke_tag(handler, handler_ctx, TAG_DATE, + date); + /* track */ char track[16]; sprintf(track, "%d", song_num);