CumulusTV icon indicating copy to clipboard operation
CumulusTV copied to clipboard

m3u parser, allow to define custom parsing rules

Open FezVrasta opened this issue 7 years ago • 8 comments

Right now I have a small now.sh app that fetches the URL my IPTV provider gives me, reads the info, and, in my case, moves the group name from the title to the GROUP field, and returns and edited M3U playlist.

I think it would be awesome to allow to define a script (~LUA? JS? Perl? anything?~ sl4a?) that takes the parsed M3U playlist (JSON format) and outputs a modified JSON playlist directly inside the playlist plugin.

Do you think is this something you would merge in the app? If so I think I would like to try to work on it.

FezVrasta avatar Feb 21 '17 14:02 FezVrasta

Ideally users shouldn't have to worry about the JSON. It should just be an internal structure I use.

But I can see value in having user-defined parsing. I'm just not sure the best way to do it, whether in the app or through a web service on the website.

On Feb 21, 2017 9:37 AM, "Federico Zivolo" [email protected] wrote:

Right now I have a small now.sh app that fetches the URL my IPTV provider gives me, reads the info, and, in my case, moves the group name from the title to the GROUP field.

I think it would be awesome to allow to define a script (LUA? JS? Perl? anything?) that takes the parsed M3U playlist (JSON format) and outputs a modified JSON playlist.

Do you think is this something you would merge in the app? If so I think I would like to try to work on it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Fleker/CumulusTV/issues/269, or mute the thread https://github.com/notifications/unsubscribe-auth/ADI5894AaNHMp8MP4jmilx9TbZKJgmvIks5revawgaJpZM4MHZQ9 .

Fleker avatar Feb 21 '17 15:02 Fleker

I would like it to be local (trough a custom script) because it reduces the latency. But even a web service always on would be good I guess.. except for providers that check from where you connect and block you to avoid account sharing probably 🤔

The web service should be maintained and paid by someone tho.

FezVrasta avatar Feb 21 '17 15:02 FezVrasta

Local support would require some way to execute user scripts on device.

On Feb 21, 2017 10:56 AM, "Federico Zivolo" [email protected] wrote:

I would like it to be local (trough a custom script) because it reduces the latency. But even a web service always on would be good I guess.. except for providers that check from where you connect and block you to avoid account sharing probably 🤔

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Fleker/CumulusTV/issues/269#issuecomment-281385855, or mute the thread https://github.com/notifications/unsubscribe-auth/ADI58zHcvY7jR6lePDqu-T__FOX9X_syks5rewkpgaJpZM4MHZQ9 .

Fleker avatar Feb 21 '17 16:02 Fleker

Yes that's why I linked to sl4a, it allows to run scripts from Android, I think it is what we need.

FezVrasta avatar Feb 21 '17 16:02 FezVrasta

If you can take the lead on implementation that would be great.

On Feb 21, 2017 11:22 AM, "Federico Zivolo" [email protected] wrote:

Yes that's why I linked to sl4a, it allows to run scripts from Android, I think it is what we need.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Fleker/CumulusTV/issues/269#issuecomment-281394224, or mute the thread https://github.com/notifications/unsubscribe-auth/ADI588HoWVS75MylJSWSzhrgfZMSUQPRks5rew82gaJpZM4MHZQ9 .

Fleker avatar Feb 21 '17 16:02 Fleker

I'll try to work on it this weekend!

Do you have any indications on how to proceed? Preferences? Anything?

FezVrasta avatar Feb 21 '17 16:02 FezVrasta

I have a couple of test streams that I use to test the parser. I'd recommend having some unit tests that can verify functionality.

On Tue, Feb 21, 2017 at 11:28 AM Federico Zivolo [email protected] wrote:

I'll try to work on it this weekend!

Do you have any indications on how to proceed? Preferences? Anything?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Fleker/CumulusTV/issues/269#issuecomment-281396335, or mute the thread https://github.com/notifications/unsubscribe-auth/ADI585ppmiBum_g4NnmWeWxK74Fl7fddks5rexC0gaJpZM4MHZQ9 .

Fleker avatar Feb 21 '17 16:02 Fleker

Sorry I just tried to run the project but looks like Android Studio can't work if I have Docker installed... I'm very sorry but I'm not able to help 😥

FezVrasta avatar Feb 26 '17 16:02 FezVrasta