[totem] grilo: Fix thumbnail cache not being used
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Fix thumbnail cache not being used
- Date: Thu, 3 Dec 2015 10:28:13 +0000 (UTC)
commit c67e7926f505831d3c791230ef53ebc8a6b13a2d
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 3 11:25:30 2015 +0100
grilo: Fix thumbnail cache not being used
b1eee82 was slightly incorrect. We still use the local-metadata source
to fetch the URL to the local thumbnails. Both the local-metadata (for
thumbnail paths) and video-title-parsing sources are required.
libgd | 2 +-
src/totem-grilo.c | 8 ++++++++
src/totem-grilo.conf | 3 +++
3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/libgd b/libgd
index 9eecd99..7c12355 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 9eecd99e940a2579be64b79791337dc5048cabdc
+Subproject commit 7c1235591c4aa866b28c8b8dabdcb3b9084c5763
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index dcade3d..e3c6a16 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -67,6 +67,7 @@ struct _TotemGriloPrivate {
gboolean plugins_loaded;
GrlSource *local_metadata_src;
+ GrlSource *title_parsing_src;
GrlSource *metadata_store_src;
GrlSource *bookmarks_src;
gboolean fs_plugin_configured;
@@ -579,6 +580,11 @@ add_local_metadata (TotemGrilo *self,
options = grl_operation_options_new (NULL);
grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_NORMAL);
+ grl_source_resolve_sync (self->priv->title_parsing_src,
+ media,
+ self->priv->metadata_keys,
+ options,
+ NULL);
grl_source_resolve_sync (self->priv->local_metadata_src,
media,
self->priv->metadata_keys,
@@ -1269,6 +1275,8 @@ source_added_cb (GrlRegistry *registry,
/* Metadata */
if (g_str_equal (id, "grl-video-title-parsing"))
+ self->priv->title_parsing_src = source;
+ else if (g_str_equal (id, "grl-local-metadata"))
self->priv->local_metadata_src = source;
else if (g_str_equal (id, "grl-metadata-store"))
self->priv->metadata_store_src = source;
diff --git a/src/totem-grilo.conf b/src/totem-grilo.conf
index d4a1829..8ba8f93 100644
--- a/src/totem-grilo.conf
+++ b/src/totem-grilo.conf
@@ -6,6 +6,9 @@ api-secret = bef979d87f28ec47
api-key = AIzaSyApUNmStaVm22rukl3bbF52yf_w_JPQbvY
format = best
+[grl-local-metadata]
+guess-video = false
+
[grl-tmdb]
api-key = 719b9b296835b04cd919c4bf5220828a
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]