Fleker / CumulusTV

Android TV Live Channel Plugin with user-entered stream files
MIT License
185 stars 72 forks source link

m3u parser, allow to define custom parsing rules #269

Open FezVrasta opened 7 years ago

FezVrasta commented 7 years ago

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.

Fleker commented 7 years ago

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" notifications@github.com 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 .

FezVrasta commented 7 years ago

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.

Fleker commented 7 years ago

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

On Feb 21, 2017 10:56 AM, "Federico Zivolo" notifications@github.com 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 .

FezVrasta commented 7 years ago

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

Fleker commented 7 years ago

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

On Feb 21, 2017 11:22 AM, "Federico Zivolo" notifications@github.com 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 .

FezVrasta commented 7 years ago

I'll try to work on it this weekend!

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

Fleker commented 7 years ago

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 notifications@github.com 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 .

FezVrasta commented 7 years ago

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 😥