Skip to content

tracker-extract-gstreamer: Correctly use the date for album uri

Jean Felder requested to merge wip/jfelder/gstreamer-extractor-album-date into master

This fixes a regression introduced by commits 84ae27be and d592c967

Prior to those commits, the tag_date_time (or tag_time as fallback) was used if it contained a minimal string compatible with ISO-8601. In pratice, it means that it contains at least a year.

Following the changes of those two commits, the date information is never used to create the album uri because extract_gst_date_time() always returns FALSE.

This issue is fixed by returning TRUE if a date tag contains at least a year. This mimicks the behavior of the other audio extractors (ogg, mp3 and flac) which use tracker_date_guess() to extract a minimal string compatible with ISO-8601.

Edited by Jean Felder

Merge request reports