[grilo-plugins] local-metadata: Don't say we support UPnP URLs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] local-metadata: Don't say we support UPnP URLs
- Date: Fri, 13 Apr 2012 14:41:46 +0000 (UTC)
commit 0ed4a7d6612827a35a9b9701991e1c2e3ca1e46c
Author: Bastien Nocera <hadess hadess net>
Date: Wed Apr 11 17:47:02 2012 +0100
local-metadata: Don't say we support UPnP URLs
Because we don't want to use UPnP URLs for guessing metadata.
https://bugzilla.gnome.org/show_bug.cgi?id=673916
src/metadata/local-metadata/grl-local-metadata.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/metadata/local-metadata/grl-local-metadata.c b/src/metadata/local-metadata/grl-local-metadata.c
index 2db1a30..5ac6705 100644
--- a/src/metadata/local-metadata/grl-local-metadata.c
+++ b/src/metadata/local-metadata/grl-local-metadata.c
@@ -796,6 +796,16 @@ has_compatible_media_url (GrlMedia *media)
const gchar *url;
gchar *scheme;
+ /* HACK: Cheat slightly, we don't want to use UPnP URLs */
+ if (grl_data_has_key (GRL_DATA (media), GRL_METADATA_KEY_SOURCE)) {
+ const char *source;
+
+ source = grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_SOURCE);
+
+ if (g_str_has_prefix (source, "grl-upnp-uuid:"))
+ return FALSE;
+ }
+
url = grl_media_get_url (media);
scheme = g_uri_parse_scheme (url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]