[grilo] pls: Use new "title-from-filename" property



commit 8bf3a6266cc29555ef737bfe2b84287d51473307
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 28 01:49:39 2014 +0100

    pls: Use new "title-from-filename" property
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706877

 libs/pls/grl-pls.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libs/pls/grl-pls.c b/libs/pls/grl-pls.c
index 1db8996..76c6440 100644
--- a/libs/pls/grl-pls.c
+++ b/libs/pls/grl-pls.c
@@ -1258,6 +1258,7 @@ grl_pls_file_to_media (GrlMedia            *content,
     }
 
     grl_media_set_title (media, str);
+    grl_data_set_boolean (GRL_DATA (media), GRL_METADATA_KEY_TITLE_FROM_FILENAME, TRUE);
     g_clear_error (&error);
     g_free (str);
   } else {
@@ -1315,6 +1316,8 @@ grl_pls_file_to_media (GrlMedia            *content,
     grl_media_set_title (media, str);
     g_free (str);
 
+    grl_data_set_boolean (GRL_DATA (media), GRL_METADATA_KEY_TITLE_FROM_FILENAME, TRUE);
+
     /* Date */
     g_file_info_get_modification_time (info, &time);
     date_time = g_date_time_new_from_timeval_utc (&time);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]