[grilo-plugins/0.1.x] 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/0.1.x] local-metadata: Don't say we support UPnP URLs
- Date: Fri, 13 Apr 2012 14:41:20 +0000 (UTC)
commit 5ecb983eaf0a48b225f9d4e1e43d40480c7adb8c
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 c3a2207..238bd17 100644
--- a/src/metadata/local-metadata/grl-local-metadata.c
+++ b/src/metadata/local-metadata/grl-local-metadata.c
@@ -798,6 +798,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]