su1s/e2m3u2bouquet ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python script for an Enigma2 box that takes an IPTV M3U playlist and turns it into proper bouquets the receiver can use.
It should be able to work from a direct M3U URL and optional XMLTV EPG URL, or from a local config file if I want to set up one or more providers and rerun it later. I need live TV and VOD channels handled, with options for different stream types, an all channels bouquet, and the ability to keep VOD together or split it into separate bouquets. It should also support downloading picons into a chosen folder, and placing the IPTV bouquets near the top if I want that.
Please make it easy to update the channels by just running the script again, and include an uninstall option for cleaning up everything it created. If the script needs extra setup on the box, handle that sensibly and keep the instructions simple. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit