diff options
author | Marinus Schraal <fosero@gmail.com> | 2016-02-26 01:53:18 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-02-26 02:00:38 +0100 |
commit | 88dcce8f727f903c198d94ba51fd85d375af8c7b (patch) | |
tree | c517c933f59c87cc4c2cc3feee758bd17794c5c5 | |
parent | d4528fef7d85a69c8e767f730c114b7aa7832fa2 (diff) | |
download | tracker-88dcce8f727f903c198d94ba51fd85d375af8c7b.tar.gz |
tracker-extract: Use tracker-guarantee to ensure a title in playlists
Resort to the basename in order to guarantee a title.
https://bugzilla.gnome.org/show_bug.cgi?id=761466
-rw-r--r-- | src/tracker-extract/tracker-extract-playlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tracker-extract/tracker-extract-playlist.c b/src/tracker-extract/tracker-extract-playlist.c index f1cff4706..0d16c0d39 100644 --- a/src/tracker-extract/tracker-extract-playlist.c +++ b/src/tracker-extract/tracker-extract-playlist.c @@ -30,6 +30,7 @@ #include <totem-pl-parser.h> #include <libtracker-extract/tracker-extract.h> +#include <libtracker-extract/tracker-guarantee.h> #define PLAYLIST_PROPERTY_NO_TRACKS "entryCounter" #define PLAYLIST_PROPERTY_DURATION "listDuration" @@ -150,7 +151,8 @@ tracker_extract_get_metadata (TrackerExtractInfo *info) tracker_sparql_builder_object_unvalidated (metadata, data.title); g_free (data.title); } else { - g_message ("Playlist has no title"); + g_message ("Playlist has no title, attempting to get one from filename"); + tracker_guarantee_title_from_file (metadata, "nie:title", NULL, uri, NULL); } if (data.total_time > 0) { |