[tracker-miners/sam/libav-testing: 7/9] tracker-extract-libav: Extract 'date' for audio correctly




commit b623a67449e199bfede87842a755cf6f2f90a6b4
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]