<div dir="ltr">Hi everyone,<div>I'm coming back about the XSPF/JSPF specs !</div><div><br></div><div> I (still) would like to use it as the backbone of a chain of services i'm building.</div><div><br></div><div>Among others, I would like to be able to add multiple streaming links for each track. </div><div>There might be several different links for a same service, so I guess that the <i>identifier</i> element would be disqualified here.</div><div>Youtube, for instance, may have several instances of the same track, so it has no unique ID as Musicbrainz would have.</div><div>Lucas Gonze <a href="https://stackoverflow.com/a/60836001/782013">said here</a> that I should use the info element, but it's not very clear. </div><div><br></div><div>I would like something like this</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"sources": [<br>'<a href="https://open.spotify.com/track/3FgDF8tNn6aqB7ycygy7ch">https://open.spotify.com/track/3FgDF8tNn6aqB7ycygy7ch</a>',<br>'<a href="https://www.youtube.com/watch?v=PA3P1-aSvKQ">https://www.youtube.com/watch?v=PA3P1-aSvKQ</a>',<br>'<a href="https://www.youtube.com/watch?v=vUes9-tFWm4">https://www.youtube.com/watch?v=vUes9-tFWm4</a>',<br>]</blockquote><div><br></div><div>or, maybe even better, be able to add some informations (like the titles, the date, the available countries...) about those sources :</div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"sources": [<br>{<br>url:'<a href="https://open.spotify.com/track/3FgDF8tNn6aqB7ycygy7ch">https://open.spotify.com/track/3FgDF8tNn6aqB7ycygy7ch</a>',<br>'title:'les sardines',<br>'available':'USA,belgium,france'<br>},<br>{<br>url:'<a href="https://www.youtube.com/watch?v=PA3P1-aSvKQ">https://www.youtube.com/watch?v=PA3P1-aSvKQ</a>',<br>title:'les sardines',<br>available':'USA,belgium,france'<br>} ,<br>{<br>url:'<a href="https://www.youtube.com/watch?v=vUes9-tFWm4">https://www.youtube.com/watch?v=vUes9-tFWm4</a>',<br>title:'les sardines live',<br>available:'USA,belgium,france'<br>}<br>],</blockquote><div><div><br></div><div>Another thing I wonder is how to add custom metas for a track or a playlist. Let's say I have an API called wpsstmapi.</div><div><br></div><div>Could I do something like this ?</div><br> "meta" : [<br> {'wpsstmapi/input_url'=> 'myvalue1'},<div></div> {'wpsstmapi/xspf_url'=> 'myvalue2'},<div> {'wpsstmapi/importer_slug'=> 'myvalue3'},<br> ],<div><br></div><div>In the specs, the keys are urls like <a href="http://example.com/rel/1/">http://example.com/rel/1/</a>. Should this point to an URL that exists or can I use what I want ?</div><div><br></div><div>Well, I think that XSPF.JSPF is a wonderful standard. </div><div>But there is several things I don't get, like where I can set the URLs above, or when/how to use the link,meta,extension attributes.<br></div><div>Would someone be kind enough to help me here ?</div><div>And eventually would it be conceivable to upgrade the specs ? A lot of stuff has changed since they were made...<br></div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Benoît</div><div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 24 mars 2020 à 18:19, Benoît Gréant <<a href="mailto:gordie.lachance@gmail.com">gordie.lachance@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi and thanks for your kind reply.<div><br><div>I understand why the identifier can work for a spotify track, but is it relevant for a youtube link too ? </div><div>I mean, there might be several different Youtube videos for a same track. Which, then, is no more an ID, is it ?</div><div><br></div><div>Thanks !</div><div><br></div><div>B</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 24 mars 2020 à 18:17, Lucas Gonze <<a href="mailto:lucas@gonze.com" target="_blank">lucas@gonze.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>After reading your more detailed issue description on Stack Overflow, I have posted this answer there.</div><div><br></div><div>You should use the identifier element (<a href="http://xspf.org/xspf-v1.html#rfc.section.4.1.1.2.14.1.1.1.2" target="_blank">http://xspf.org/xspf-v1.html#rfc.section.4.1.1.2.14.1.1.1.2</a>) for things like Spotify links.<br><br>The info element can also do what you need (<a href="http://xspf.org/xspf-v1.html#rfc.section.4.1.1.2.14.1.1.1.6" target="_blank">http://xspf.org/xspf-v1.html#rfc.section.4.1.1.2.14.1.1.1.6</a>), but you can only have one per track, so you couldn't cover more than one streaming service.<br><br>Regarding the many years since the last update of the spec, maybe it's time to work on one. A blessed JSON version would be useful. <br><br>It's productive to discover that the spec is not clearly communicating this information. In the time we wrote the spec most functioning Internet music was an MP3 on a web server. Now streaming services do the job. We could possibly fix this with an update to the documentation. For example, the sample playlists at <a href="http://xspf.org/quickstart/" target="_blank">http://xspf.org/quickstart/</a> could show how to do it.<br><br><br><br><br> <br><br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 24, 2020 at 10:05 AM Lucas Gonze <<a href="mailto:lucas@gonze.com" target="_blank">lucas@gonze.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Benoît, it's excellent to meet you. I am CC'ing the XSPF list at <a href="mailto:playlist@xiph.org" target="_blank">playlist@xiph.org</a> and copying this answer to the Stack Overflow thread.</div><div><br></div><div>The info element is designed to do what you need:</div><div><a href="http://xspf.org/xspf-v1.html#rfc.section.4.1.1.2.14.1.1.1.6" target="_blank">http://xspf.org/xspf-v1.html#rfc.section.4.1.1.2.14.1.1.1.6</a></div><div><br></div><div>However, there can only be one info element per track.</div><div><br></div><div>Regarding the many years since the last update of the spec, maybe it's time to do one. A blessed JSON version would be useful. <br></div><div><br></div><div>-Lucas<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 24, 2020 at 1:38 AM Benoît Gréant <<a href="mailto:gordie.lachance@gmail.com" target="_blank">gordie.lachance@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi guys !<div><br></div><div>I love your XSPF thing :)</div><div>Have been playing with it since several years, using it as base for my website (<a href="https://www.spiff-radio.org/wordpress-soundsystem-plugin/soundsystem-api/" target="_blank">&API</a>, &WP plugin) <a href="http://spiff-radio.org" target="_blank">spiff-radio.org</a>.</div><div><br></div><div>I have a small question. I want to attach (several) links to a playlist track (eg. spotify/youtuble/apple music...); what tag should I use for this ?</div><div><br></div><div>Well, I posted <a href="https://stackoverflow.com/questions/60822682/xspf-xml-playlist-specifications-how-should-i-format-links-to-one-or-several" target="_blank">the complete question on Stackoverflow</a>.</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Benoît</div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>