Howdy,
I am trying to convert the information in the bouquet file into a channel.xml file. All the information is there, actually an excess of information, it just needs to be extracted and sorted. A typical entry in the bouquet file would look like this:
#SERVICE 4097:0:1:1:0:0:0:0:0:0:http%3A//stitcher-ipv4.pluto.tv/v1/stitch/embed/hls/channel/5ba3fb9c4b078e0f37ad34e8/master.m3u8%3FdeviceType%3Dsamsung-tvplus%26deviceMake%3Dsamsung%26deviceModel%3Dsamsung%26deviceVersion%3Dunknown%26appVersion%3Dunknown%26deviceLat%3D0%26deviceLon%3D0%26deviceDNT%3D%257BTARGETOPT%257D%26deviceId%3D%257BPSID%257D%26advertisingId%3D%257BPSID%257D%26us_privacy%3D1YNY%26samsung_app_domain%3D%257BAPP_DOMAIN%257D%26samsung_app_name%3D%257BAPP_NAME%257D%26profileLimit%3D%26profileFloor%3D%26embedPartner%3Dsamsung-tvplus:Pluto TV Spotlight
#DESCRIPTION Pluto TV Spotlight
And the related output should look like this:
<channel id="5ba3fb9c4b078e0f37ad34e8">4097:0:1:1:0:0:0:0:0:0:http%3A//</channel>
I have done this with a text editor and it works fine. For hundreds of channels it requires a lot of manual work though. Anyone with a better idea?
I know it's almost trivial in C or Python, but my coding days are long gone. Maybe someone gets inspired and writes a little program....