From gordie.lachance at gmail.com Tue Apr 11 13:48:10 2023 From: gordie.lachance at gmail.com (=?UTF-8?B?QmVub8OudCBHcsOpYW50?=) Date: Tue, 11 Apr 2023 15:48:10 +0200 Subject: [Playlist] JSPF schema ? In-Reply-To: References: Message-ID: 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. It's quite powerful ! I implemented this in a tool i'm working on, 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 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 See ya ! Beno?t Le lun. 27 mars 2023 ? 19:53, Lucas Gonze 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 > wrote: > >> This is an attempt to a JSON Schema for the JSPF specs : >> https://gist.github.com/gordielachance/2cb6a667471b5d4c2a5ae89e1f549eb1 >> >> Le sam. 19 f?vr. 2022 ? 23:44, Lucas Gonze 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> 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 >>>> http://lists.xiph.org/mailman/listinfo/playlist >>>> >>> _______________________________________________ >> Playlist mailing list >> Playlist at xiph.org >> http://lists.xiph.org/mailman/listinfo/playlist >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucas at gonze.com Tue Apr 11 17:14:40 2023 From: lucas at gonze.com (Lucas Gonze) Date: Tue, 11 Apr 2023 17:14:40 +0000 Subject: [Playlist] JSPF schema ? References: Message-ID: <956a05c1a9be.f53f863a66bac@gonze.com> 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 . It's quite powerful ! I implemented this in a tool i'm working on, 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 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 See ya ! Beno?t Le lun. 27 mars 2023 ? 19:53, Lucas Gonze > 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 > wrote: This is an attempt to a JSON Schema for the JSPF specs : https://gist.github.com/gordielachance/2cb6a667471b5d4c2a5ae89e1f549eb1 Le sam. 19 f?vr. 2022 ? 23:44, Lucas Gonze > 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 > 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 http://lists.xiph.org/mailman/listinfo/playlist _______________________________________________ Playlist mailing list Playlist at xiph.org http://lists.xiph.org/mailman/listinfo/playlist -------------- next part -------------- An HTML attachment was scrubbed... URL: