[tracker-miners/sam/libav-testing: 13/15] 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: 13/15] tracker-extract-libav: Extract 'date' for audio correctly
- Date: Wed, 31 Aug 2022 12:08:15 +0000 (UTC)
commit dcf08e0cf857bb9536aa0ab753cf5506d47bea1f
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 37ac760c7..09c76fdfb 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]