From 326875935e06ee4afe2f647fc80b06779d2462b2 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 3 Jul 2008 13:08:35 +0000 Subject: [PATCH] Provide the 'creator' tag in DIDL xml for all items. The same value is provided in 'author' and 'artist' tags for music and video items respectively. svn path=/trunk/; revision=199 --- ChangeLog | 8 ++++++++ src/gupnp-media-tracker.vala | 25 ++++++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 98a6d5c..9f7ba93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-07-03 Zeeshan Ali Khattak + + * src/gupnp-media-tracker.vala: + + Provide the 'creator' tag in DIDL xml for all items. The same value is + provided in 'author' and 'artist' tags for music and video items + respectively. + 2008-07-02 Zeeshan Ali Khattak * data/xml/ContentDirectory.xml: diff --git a/src/gupnp-media-tracker.vala b/src/gupnp-media-tracker.vala index 7a0cfb5..ecaf2a0 100644 --- a/src/gupnp-media-tracker.vala +++ b/src/gupnp-media-tracker.vala @@ -572,23 +572,22 @@ public class GUPnP.MediaTracker : GLib.Object { upnp_class); if (author != "") { - string prop_name, prop_namespace; + this.didl_writer.add_string ("creator", + DIDLLiteWriter.NAMESPACE_DC, + null, + author); if (upnp_class == VIDEO_CLASS) { - prop_name = "author"; - prop_namespace = DIDLLiteWriter.NAMESPACE_UPNP; - } else if (upnp_class == IMAGE_CLASS) { - prop_name = "creator"; - prop_namespace = DIDLLiteWriter.NAMESPACE_DC; + this.didl_writer.add_string ("author", + DIDLLiteWriter.NAMESPACE_UPNP, + null, + author); } else if (upnp_class == MUSIC_CLASS) { - prop_name = "artist"; - prop_namespace = DIDLLiteWriter.NAMESPACE_UPNP; + this.didl_writer.add_string ("artist", + DIDLLiteWriter.NAMESPACE_UPNP, + null, + author); } - - this.didl_writer.add_string (prop_name, - prop_namespace, - null, - author); } if (track_number >= 0) { -- 2.7.4