[tracker-miners/sam/libav-testing: 12/14] tracker-extract-libav: Extract 'date' for audio correctly
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/libav-testing: 12/14] tracker-extract-libav: Extract 'date' for audio correctly
- Date: Wed, 31 Aug 2022 12:02:02 +0000 (UTC)
commit 45c56b70e3459ed276b58fa5cc0af2a5e4018a17
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Wed Aug 31 13:14:06 2022 +0200
tracker-extract-libav: Extract 'date' for audio correctly
src/tracker-extract/tracker-extract-libav.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/tracker-extract-libav.c b/src/tracker-extract/tracker-extract-libav.c
index 0b324fc1c..3b256c156 100644
--- a/src/tracker-extract/tracker-extract-libav.c
+++ b/src/tracker-extract/tracker-extract-libav.c
@@ -166,7 +166,7 @@ extract_music_piece_info(const char *file_url,
performer = tracker_extract_new_artist (tag->value);
}
- if ((tag = av_dict_get (format->metadata, "date", NULL, 0))) {
+ if ((tag = find_tag (format, audio_stream, NULL, "date"))) {
content_created = tracker_date_guess (tag->value);
if (content_created) {
tracker_resource_set_string (metadata, "nie:contentCreated", content_created);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]