[Playlist] JSPF schema ?
Lucas Gonze
lucas at gonze.com
Tue Apr 11 17:14:40 UTC 2023
Let's book a real-time chat to work on this in IRC, Slack, etc. Would Monday April 17 at 10 PT work for you?
T'est francophone, Benoit? C'est pas plaisant a m'ecouter en Francais, mais je comprends bien.
Benoît Gréant wrote:
Hello Lucas !
Thanks for your feedback.
About your proposal, thanks - but I'm not really fluent in english (at least, i'm not good speaking it) and it's easier for me when it's written.
How should we validate this?
This could be validated with a JSON Schema validator, like for instance this one (package for node.js) https://www.npmjs.com/package/jsonschema <https://www.npmjs.com/package/jsonschema> .
It's quite powerful !
I implemented this in a tool i'm working on, JSPF CLI <https://github.com/spiff-radio/jspf-cli> . It's a command line utility (node.js package) to convert playlists between jspf,xspf,m3u8,m3u and pls.
I never found a convertor that worked as I wanted, so... I made it. But it took a lot of time (too much!) and it's not perfect yet. It's not yet published to npmjs.com <http://npmjs.com> either.
When coding it, I started to write a document with some thoughts about the XSPF/JSPF formats - I still think it needs to evolve.
You can find it here and it's open to comments :
https://docs.google.com/document/d/1AxuSJCC1drna24E-k16njiMUU70gWNNJ3V0_C0eqLjQ/edit?usp=sharing <https://docs.google.com/document/d/1AxuSJCC1drna24E-k16njiMUU70gWNNJ3V0_C0eqLjQ/edit?usp=sharing>
See ya !
Benoît
Le lun. 27 mars 2023 à 19:53, Lucas Gonze <lucas.gonze at gmail.com <mailto:lucas.gonze at gmail.com> > a écrit :
Very cool.
How should we validate this? How about a real time conversation where we compare the JSON Schema to the original specs? What is your time zone and general availability?
On Mon, Mar 27, 2023 at 6:44 AM Benoît Gréant <gordie.lachance at gmail.com <mailto:gordie.lachance at gmail.com> > wrote:
This is an attempt to a JSON Schema for the JSPF specs : https://gist.github.com/gordielachance/2cb6a667471b5d4c2a5ae89e1f549eb1 <https://gist.github.com/gordielachance/2cb6a667471b5d4c2a5ae89e1f549eb1>
Le sam. 19 févr. 2022 à 23:44, Lucas Gonze <lucas at gonze.com <mailto:lucas at gonze.com> > a écrit :
Benoît, hello!
I don't think there is a JSON validator. One approach I can think of is to convert the JSON to XML and then run Sebastian Pipping's validator on the XML.
Sebastian is one of the authors of JSPF. He might be interested in creating a JSON Type Definition for it.
On Sat, Feb 19, 2022 at 12:23 PM Benoît Gréant <gordie.lachance at gmail.com <mailto:gordie.lachance at gmail.com> > wrote:
Hi all!
I would like to know if there is something like a JSON Type Definition (RFC 8927) that could be used to validate some JSPF datas ?
Thanks a lot !
Benoît
_______________________________________________
Playlist mailing list
Playlist at xiph.org <mailto:Playlist at xiph.org>
http://lists.xiph.org/mailman/listinfo/playlist <http://lists.xiph.org/mailman/listinfo/playlist>
_______________________________________________
Playlist mailing list
Playlist at xiph.org <mailto:Playlist at xiph.org>
http://lists.xiph.org/mailman/listinfo/playlist <http://lists.xiph.org/mailman/listinfo/playlist>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/playlist/attachments/20230411/4398e477/attachment.htm>
More information about the Playlist
mailing list