[grilo-plugins] local-metadata: tests using EPISODE_TITLE metadata
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] local-metadata: tests using EPISODE_TITLE metadata
- Date: Wed, 10 Dec 2014 13:19:21 +0000 (UTC)
commit 0d99bb559eea1c60446ff714d2469b55a733a5cc
Author: Victor Toso <me victortoso com>
Date: Wed Dec 10 11:50:39 2014 +0100
local-metadata: tests using EPISODE_TITLE metadata
https://bugzilla.gnome.org/show_bug.cgi?id=741207
tests/local-metadata/test_local_metadata.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/local-metadata/test_local_metadata.c b/tests/local-metadata/test_local_metadata.c
index 54080fe..10fb592 100644
--- a/tests/local-metadata/test_local_metadata.c
+++ b/tests/local-metadata/test_local_metadata.c
@@ -57,6 +57,7 @@ get_show_for_title (GrlSource *source,
keys = grl_metadata_key_list_new (GRL_METADATA_KEY_SHOW,
GRL_METADATA_KEY_SEASON,
GRL_METADATA_KEY_EPISODE,
+ GRL_METADATA_KEY_EPISODE_TITLE,
NULL);
options = grl_operation_options_new (NULL);
grl_operation_options_set_flags (options, GRL_RESOLVE_FULL);
@@ -73,7 +74,7 @@ get_show_for_title (GrlSource *source,
*season = grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_SEASON);
*episode = grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_EPISODE);
show = g_strdup (grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_SHOW));
- str = grl_media_get_title (media);
+ str = grl_media_video_get_episode_title (GRL_MEDIA_VIDEO (media));
*new_title = (str && str[0] == '\0') ? NULL : g_strdup (str);
g_object_unref (media);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]