[grilo-plugins] thetvdb: tests using EPISODE_TITLE metadata
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] thetvdb: tests using EPISODE_TITLE metadata
- Date: Wed, 10 Dec 2014 13:19:26 +0000 (UTC)
commit eba849a5d7e4d0ce028f20a4fd826a4ed9ff93d4
Author: Victor Toso <me victortoso com>
Date: Wed Dec 10 12:14:18 2014 +0100
thetvdb: tests using EPISODE_TITLE metadata
https://bugzilla.gnome.org/show_bug.cgi?id=741207
tests/thetvdb/test_thetvdb_resolve_episodes.c | 4 ++--
tests/thetvdb/test_thetvdb_resolve_stress.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/thetvdb/test_thetvdb_resolve_episodes.c b/tests/thetvdb/test_thetvdb_resolve_episodes.c
index 05643a0..46e42af 100644
--- a/tests/thetvdb/test_thetvdb_resolve_episodes.c
+++ b/tests/thetvdb/test_thetvdb_resolve_episodes.c
@@ -59,7 +59,7 @@ get_episode_metadata_from_episode (GrlSource *source,
grl_media_video_set_season (video, season);
grl_media_video_set_episode (video, episode);
- keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
+ keys = grl_metadata_key_list_new (GRL_METADATA_KEY_EPISODE_TITLE,
GRL_METADATA_KEY_PUBLICATION_DATE,
tvdb_key,
imdb_key,
@@ -75,7 +75,7 @@ get_episode_metadata_from_episode (GrlSource *source,
keys,
options,
NULL);
- *title = g_strdup (grl_media_get_title (GRL_MEDIA (video)));
+ *title = g_strdup (grl_media_video_get_episode_title (video));
*imdb = g_strdup (grl_data_get_string (GRL_DATA (video), imdb_key));
*tvdb_id = g_strdup (grl_data_get_string (GRL_DATA (video), tvdb_key));
*zap2it = g_strdup (grl_data_get_string (GRL_DATA (video), zap2it_key));
diff --git a/tests/thetvdb/test_thetvdb_resolve_stress.c b/tests/thetvdb/test_thetvdb_resolve_stress.c
index 1a5f810..e920ebd 100644
--- a/tests/thetvdb/test_thetvdb_resolve_stress.c
+++ b/tests/thetvdb/test_thetvdb_resolve_stress.c
@@ -203,7 +203,7 @@ check_videos_metadata (GrlSource *source,
video = GRL_MEDIA_VIDEO (media);
- title = grl_media_get_title (GRL_MEDIA (video));
+ title = grl_media_video_get_episode_title (video);
g_assert_cmpstr (videos[i].title, ==, title);
imdb = grl_data_get_string (GRL_DATA (video), imdb_key);
@@ -262,7 +262,7 @@ test_episodes_stress (void)
options = grl_operation_options_new (caps);
grl_operation_options_set_flags (options, GRL_RESOLVE_NORMAL);
- keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
+ keys = grl_metadata_key_list_new (GRL_METADATA_KEY_EPISODE_TITLE,
GRL_METADATA_KEY_PUBLICATION_DATE,
tvdb_key,
imdb_key,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]