[grilo-plugins] tmdb: Set original-title again



commit cedc68008f918f15b70bb89cda7c58d180167055
Author: Mathias Hasselmann <mathias openismus com>
Date:   Tue Nov 13 10:23:14 2012 +0100

    tmdb: Set original-title again
    
    This got dropped by accident in commit
    fcfd3c496c1932d3ecd44d9bd81d070b151a3598.

 src/tmdb/grl-tmdb.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index fac1320..91aaab8 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -828,6 +828,15 @@ on_search_ready (GObject *source,
     }
   }
 
+  if (SHOULD_RESOLVE (GRL_METADATA_KEY_ORIGINAL_TITLE)) {
+    value = grl_tmdb_request_get (request, "$.results[0].original_title");
+    if (value != NULL) {
+      grl_media_video_set_original_title (GRL_MEDIA_VIDEO (closure->rs->media),
+                                          g_value_get_string (value));
+      g_value_unset (value);
+    }
+  }
+
   g_queue_pop_head (closure->pending_requests);
   g_object_unref (source);
 



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