INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: dc:date in UPnP/DLNA info?  (Read 1858 times)

mattlovell

  • Galactic Citizen
  • ****
  • Posts: 332
dc:date in UPnP/DLNA info?
« on: October 17, 2020, 12:19:22 pm »

Hi everyone,

How does UPnP/DLNA specify that an album's "date" be conveyed in meta information?  (I think I'm just inquiring about "Year", not "ReleaseDate" or "OriginalDate", but I'm not actually sure!)

I ask since I'm building a little front panel LCD display for Kodi.  When Kodi is playing back a track from its own music library, it provides (among what it calls InfoLabels) a MusicPlayer.Year field that one can retrieve.  See the two pages

https://kodi.wiki/view/InfoLabels 
https://kodi.wiki/view/JSON-RPC_API/v10

if you're curious.

However, that MusicPlayer.Year field is left empty when playing a track via UPnP/DLNA.  I'm trying to figure out whether the information is present and Kodi just isn't parsing it out (there was a 2017 kodi.tv forum posting briefly discussing dc:date) or if MC isn't forwarding the field.

Staring at a short WireShark capture (below) of what I think is the tag transfer, I see a few dc:* fields but most of the useful info looks to be populated in various upnp:* fields. 

Does "Year" get included in the tag info that MC provides?  I thought I'd start here, since Andrew probably already knows!

Thanks,
  Matt

Code: [Select]
xmlns:xbmc="urn:schemas-xbmc-org:metadata-1-0/"><item id="http://10.0.0.3:52100/Music/F8681754.flac?Reader=17965" parentID="" restricted="1"><
dc:title>Sinfonia in B-Flat Major, Altner Bb2: II. Andante</
dc:title><
dc:creator>Helsinki Baroque Orchestra, Aapo H..kkinen</
dc:creator><
upnp:artist>Helsinki Baroque Orchestra</
upnp:artist><
upnp:artist role="Performer">Helsinki Baroque Orchestra</
upnp:artist><
upnp:artist role="AlbumArtist">Helsinki Baroque Orchestra, Aapo H..kkinen</
upnp:artist><
dc:publisher>Unknown</
dc:publisher><
upnp:album>Dussek_F : Four Symphonies</
upnp:album><
upnp:genre>Classical</
upnp:genre><
upnp:albumArtURI dlna:profileID="JPEG_TN">http://10.0.0.188:1361/thumb?path=image%3A%2F%2Fhttp%253a%252f%252f10.0.0.3%253a52100%252fAArl%252f8681754.jpg%2F</
upnp:albumArtURI><upnp:originalTrackNumber>5</
upnp:originalTrackNumber><
upnp:lastPlaybackTime>1969-12-31T23:59:59+06:00</
upnp:lastPlaybackTime><
upnp:playbackCount>4</
upnp:playbackCount><
upnp:episodeSeason>0</
upnp:episodeSeason><
xbmc:rating>0.0</
xbmc:rating><
xbmc:userrating>0</
xbmc:userrating><
upnp:class>object.item.audioItem.musicTrack</
upnp:class></item></
DIDL-Lite&gt;</TrackMetaData>
<TrackURI>http://10.0.0.3:52100/Music/F8681754.flac?Reader=17965</TrackURI><RelTime>00:00:00</RelTime>
<AbsTime>00:00:00</AbsTime><RelCount>2147483647</RelCount><AbsCount>2147483647</AbsCount></u:GetPositionInfoResponse></s:Body>
</s:Envelope>

UPDATE: The above might be status the renderer reflects back.  I'll have to try another experiment.
Logged

mattlovell

  • Galactic Citizen
  • ****
  • Posts: 332
Re: dc:date in UPnP/DLNA info?
« Reply #1 on: October 17, 2020, 02:19:14 pm »

Ok, the capture below is MC's SetAVTransportURI to the Kodi renderer (formatting modified to help readability).  It indeed has dc:date set, to the fairly generic "2010" I originally entered.

So, guess I have to look at the parsing side in Kodi.

Code: [Select]
<u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
<InstanceID>0</InstanceID>
<CurrentURI>http://10.0.0.3:52100/Music/F8681751.flac?Reader=23</CurrentURI>
<CurrentURIMetaData><;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
  xmlns:dlna="urn:schemas-dlna-org:device-1-0" xmlns:av="urn:schemas-sony-com:av"
  xmlns:pv="http://www.pv.com/pvns/" xmlns:jriver="urn:schemas-jriver-com:jriver">;
<;item id="F8681751" parentID="0" restricted="1">;
<;dc:title>;Sinfonia in G Major, Altner G4: II. Andante<;/dc:title>;
<;upnp:class>;object.item.audioItem.musicTrack<;/upnp:class>;
<;upnp:artist>;Helsinki Baroque Orchestra<;/upnp:artist>;
<;upnp:artist role="Performer">;Helsinki Baroque Orchestra<;/upnp:artist>;
<;upnp:artist role="AlbumArtist">;Helsinki Baroque Orchestra, Aapo H..kkinen<;/upnp:artist>;
<;dc:creator>;Helsinki Baroque Orchestra<;/dc:creator>;
<;upnp:album>;Dussek_F : Four Symphonies<;/upnp:album>;
<;upnp:genre>;Classical<;/upnp:genre>;
<;upnp:author role="Composer">;Franz Xaver Dussek<;/upnp:author>;
<;upnp:originalTrackNumber>;2<;/upnp:originalTrackNumber>;
<;upnp:playbackCount>;5<;/upnp:playbackCount>;
<;dc:date>;2010-01-01T00:00:00<;/dc:date>;
<;pv:playcount>;5<;/pv:playcount>;
<;pv:lastPlayedTime>;2020-10-17T10:30:46<;/pv:lastPlayedTime>;
<;pv:addedTime>;1600225186<;/pv:addedTime>;
<;pv:modificationTime>;1600225377<;/pv:modificationTime>;
<;upnp:albumArtURI dlna:profileID="JPEG_LRG">;http://10.0.0.3:52100/AArl/8681751.jpg<;/upnp:albumArtURI>;
<;upnp:albumArtURI dlna:profileID="JPEG_MED">;http://10.0.0.3:52100/AArm/8681751.jpg<;/upnp:albumArtURI>;
<;upnp:albumArtURI dlna:profileID="JPEG_SM">;http://10.0.0.3:52100/AArs/8681751.jpg<;/upnp:albumArtURI>;
<;upnp:albumArtURI dlna:profileID="JPEG_TN">;http://10.0.0.3:52100/AArt/8681751.jpg<;/upnp:albumArtURI>;
<;res protocolInfo="http-get:*:audio/x-flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"
  duration="0:03:05.000"
  size="58697704"
  nrAudioChannels="2"
  sampleFrequency="96000"
  bitsPerSample="24"
  bitrate="315625">;http://10.0.0.3:52100/Music/F8681751.flac?Reader=23<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrl/8681751.jpg<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrm/8681751.jpg<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrs/8681751.jpg<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrt/8681751.jpg<;/res>;
<;/item>;
<;/DIDL-Lite>;
</CurrentURIMetaData>
</u:SetAVTransportURI>
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13941
Re: dc:date in UPnP/DLNA info?
« Reply #2 on: October 28, 2020, 11:04:09 am »

Ok, the capture below is MC's SetAVTransportURI to the Kodi renderer (formatting modified to help readability).  It indeed has dc:date set, to the fairly generic "2010" I originally entered.

So, guess I have to look at the parsing side in Kodi.

Code: [Select]
<u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
<InstanceID>0</InstanceID>
<CurrentURI>http://10.0.0.3:52100/Music/F8681751.flac?Reader=23</CurrentURI>
<CurrentURIMetaData><;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
  xmlns:dlna="urn:schemas-dlna-org:device-1-0" xmlns:av="urn:schemas-sony-com:av"
  xmlns:pv="http://www.pv.com/pvns/" xmlns:jriver="urn:schemas-jriver-com:jriver">;
<;item id="F8681751" parentID="0" restricted="1">;
<;dc:title>;Sinfonia in G Major, Altner G4: II. Andante<;/dc:title>;
<;upnp:class>;object.item.audioItem.musicTrack<;/upnp:class>;
<;upnp:artist>;Helsinki Baroque Orchestra<;/upnp:artist>;
<;upnp:artist role="Performer">;Helsinki Baroque Orchestra<;/upnp:artist>;
<;upnp:artist role="AlbumArtist">;Helsinki Baroque Orchestra, Aapo H..kkinen<;/upnp:artist>;
<;dc:creator>;Helsinki Baroque Orchestra<;/dc:creator>;
<;upnp:album>;Dussek_F : Four Symphonies<;/upnp:album>;
<;upnp:genre>;Classical<;/upnp:genre>;
<;upnp:author role="Composer">;Franz Xaver Dussek<;/upnp:author>;
<;upnp:originalTrackNumber>;2<;/upnp:originalTrackNumber>;
<;upnp:playbackCount>;5<;/upnp:playbackCount>;
<;dc:date>;2010-01-01T00:00:00<;/dc:date>;
<;pv:playcount>;5<;/pv:playcount>;
<;pv:lastPlayedTime>;2020-10-17T10:30:46<;/pv:lastPlayedTime>;
<;pv:addedTime>;1600225186<;/pv:addedTime>;
<;pv:modificationTime>;1600225377<;/pv:modificationTime>;
<;upnp:albumArtURI dlna:profileID="JPEG_LRG">;http://10.0.0.3:52100/AArl/8681751.jpg<;/upnp:albumArtURI>;
<;upnp:albumArtURI dlna:profileID="JPEG_MED">;http://10.0.0.3:52100/AArm/8681751.jpg<;/upnp:albumArtURI>;
<;upnp:albumArtURI dlna:profileID="JPEG_SM">;http://10.0.0.3:52100/AArs/8681751.jpg<;/upnp:albumArtURI>;
<;upnp:albumArtURI dlna:profileID="JPEG_TN">;http://10.0.0.3:52100/AArt/8681751.jpg<;/upnp:albumArtURI>;
<;res protocolInfo="http-get:*:audio/x-flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"
  duration="0:03:05.000"
  size="58697704"
  nrAudioChannels="2"
  sampleFrequency="96000"
  bitsPerSample="24"
  bitrate="315625">;http://10.0.0.3:52100/Music/F8681751.flac?Reader=23<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrl/8681751.jpg<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrm/8681751.jpg<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrs/8681751.jpg<;/res>;
<;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1">;http://10.0.0.3:52100/ARrt/8681751.jpg<;/res>;
<;/item>;
<;/DIDL-Lite>;
</CurrentURIMetaData>
</u:SetAVTransportURI>
You might try checking in the UPnP ContententDirectory documentation, it's available with a online search. That will describe allowable formats for the dc:date field.
Logged
Pages: [1]   Go Up