summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-01-28 01:49:39 +0100
committerBastien Nocera <hadess@hadess.net>2014-03-28 10:02:46 +0100
commit8bf3a6266cc29555ef737bfe2b84287d51473307 (patch)
tree471cc54b5b47476e1d9460132aa14c08909d12db /libs
parentf0371195e11a7e7025e1010a7754bbb69d00ec26 (diff)
downloadgrilo-8bf3a6266cc29555ef737bfe2b84287d51473307.tar.gz
pls: Use new "title-from-filename" property
https://bugzilla.gnome.org/show_bug.cgi?id=706877
Diffstat (limited to 'libs')
-rw-r--r--libs/pls/grl-pls.c3
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);