[grilo-plugins] tmdb: Don't try to resolve TV series
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tmdb: Don't try to resolve TV series
- Date: Thu, 27 Nov 2014 15:04:43 +0000 (UTC)
commit 9081cfb97b69a22ec8b47b7919e01fb4867c9844
Author: Bastien Nocera <hadess hadess net>
Date: Sat Nov 1 16:38:22 2014 +0100
tmdb: Don't try to resolve TV series
We only handle movies, so trying to get metadata using the *episode*
title instead of a movie title isn't going to work.
The "thetvdb" plugin is better suited for TV series.
https://bugzilla.gnome.org/show_bug.cgi?id=739502
src/tmdb/grl-tmdb.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index 0e3a8d4..9d7d0bb 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -1299,6 +1299,12 @@ grl_tmdb_source_resolve (GrlSource *source,
return;
}
+ /* If the media is a TV show, don't handle it */
+ if (grl_media_video_get_show (GRL_MEDIA_VIDEO (rs->media)) != NULL) {
+ rs->callback (source, rs->operation_id, rs->media, rs->user_data, NULL);
+ return;
+ }
+
/* Prefer resolving by movie-id: This is more reliable and saves the search query. */
str_movie_id = grl_data_get_string (GRL_DATA (rs->media),
GRL_TMDB_METADATA_KEY_TMDB_ID);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]