Fleker / CumulusTV

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

Use m3u playlist spec for import/export #41

Closed Fleker closed 7 years ago

Fleker commented 8 years ago

Build a two-way parser for m3u playlists. This is a common format for many people already using this technology, as opposed to the custom JSON format.

JSON might remain the primary format underneath, but make it easy to import an m3u playlist from Google Drive to be your channel list. Then make it export to that same file type.

Maybe export to both JSON and m3u.

bgiesing commented 8 years ago

That wouldn't work if you have a stream like TWiT's HLS stream as it uses those playlists to auto switch to a different quality stream but it's the same channel and you would not want them to be separate channels.

On Mon, Aug 31, 2015, 3:59 PM Nick notifications@github.com wrote:

Build a two-way parser for m3u playlists. This is a common format for many people already using this technology, as opposed to the custom JSON format.

JSON might remain the primary format underneath, but make it easy to import an m3u playlist from Google Drive to be your channel list. Then make it export to that same file type.

Maybe export to both JSON and m3u.

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41.

To unsubscribe click: http://email.giesing.cf/u/eJwljsFqwzAQBb_GPgZpJa-0Bx3clFLaQCGX1L2tZK1jGsfB2Cnp19e47zCnxzBtQOQEZR_29fsyuu_T2xddm8MPDaf8fL8f_eg_buMDr4va1_NL4w7T7-eri8107AqrBu4vu25jGofyHITRGBJHDG22TrQyTAZJJFXJeiynMOXb5VHAk1LOrz-ns3c5WRLE6NsqMnoTQZirnLO01rIClcgTJFH_01pL8rCqgTVSygqNFWNpTdr0u66fz0vcouZQQP0HBlhGIQ

Fleker commented 8 years ago

The TWiT stream used is http://twit.live-s.cdn.bitgravity.com/cdn-live-s1/_definst_/twit/live/high/playlist.m3u8. It is high quality because you're targeting a large screen which can be connected via ethernet. It might degrade based on connection if necessary.

Though streams that use adaptive bitrates will still work as long as there is a single file which can be opened, this format should work.

Fleker commented 8 years ago

I think I found some code that can do this. I'll see if I can integrate that at some point.

Fleker commented 8 years ago

Import works. Export has not been implemented yet. It will soon along with individual channel sharing options.

redondogabriel commented 8 years ago

How to import?

Fleker commented 8 years ago

You can get the m3u file and then open it with Cumulus TV. It will import the channels.

billymcintosh commented 8 years ago

Not finding any way to import an m3u file. Doesn't open with nor does it understand the format when adding it as a stream.

Any pointers?

Using Android TV and stock Android.

redondogabriel commented 8 years ago

Use a file Explorer, try to open the file, a cumulus action handler should appear

billymcintosh commented 8 years ago

Have done so with two different file explorers - ES and the one that comes default with the phone. Cumulus isn't appearing as a handler.

Perhaps it's invalid? There's 1000 channels on this list.

billymcintosh commented 8 years ago

Whilst quickly editing a python script, the open with offered Cumulus to create a channel.

I then renamed the file.m3u to file.py and bizarrely it works.

Fleker commented 8 years ago

Hmm maybe there's a problem with identifying .m3u specifically. Using the .m3u8 extension should definitelg work. I'll see if I can fix this. On Feb 13, 2016 4:31 PM, "Billy McIntosh" notifications@github.com wrote:

Whilst quickly editing a python script, the open with offered Cumulus to create a channel.

I then renamed the file.m3u to file.py and bizarrely it works.

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41#issuecomment-183758848.

billymcintosh commented 8 years ago

There was no handler for m3u8 on my Android TV system. That said, I was trying to open it from an sftp location which doesn't always behave the same as opening locally.

Fleker commented 8 years ago

Ah, right now it only opens locally or from http. I don't know how much work it would be to add sftp support.

On Sat, Feb 13, 2016, 4:58 PM Billy McIntosh notifications@github.com wrote:

There was no handler for m3u8 on my Android TV system. That said, I was trying to open it from an sftp location which doesn't always behave the same as opening locally.

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41#issuecomment-183763583.

billymcintosh commented 8 years ago

To be honest, I don't think it's going to be a hugely requested feature.

Fleker commented 8 years ago

You're probably correct. If more people request it and there's an easy way to implement it then I'd include it.

On Sat, Feb 13, 2016, 5:05 PM Billy McIntosh notifications@github.com wrote:

To be honest, I don't think it's going to be a hugely requested feature.

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41#issuecomment-183764431.

redondogabriel commented 8 years ago

On ES it's other when you try to open the file, not as text. A simpler method would be cool

Fleker commented 8 years ago

What would you recommend?

On Sat, Feb 13, 2016, 5:38 PM Gabriel Redondo notifications@github.com wrote:

On ES it's other when you try to open the file, not as text. A simpler method would be cool

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41#issuecomment-183766773.

redondogabriel commented 8 years ago

I meant on "other" section on ES.

About a simpler method, no idea, probably ftp/sftp isn't going to be a popular request, but maybe a local file picker and not depending on a external file Explorer would be helpful

Fleker commented 8 years ago

Is integrating a local file picker something that would make sense? It'd require some work getting that to work in a way optimized for TV.

On Sat, Feb 13, 2016, 5:52 PM Gabriel Redondo notifications@github.com wrote:

I meant on "other" section on ES.

About a simpler method, no idea, probably ftp/sftp isn't going to be a popular request, but maybe a local file picker and not depending on a external file Explorer would be helpful

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41#issuecomment-183767539.

redondogabriel commented 8 years ago

Yeah, that's true.

Also there is the Google Drive picker

Fleker commented 8 years ago

I believe Google Drive will often be preferable as most people will likely not download many m3u8 files on their TV.

On Sat, Feb 13, 2016, 6:04 PM Gabriel Redondo notifications@github.com wrote:

Yeah, that's true.

Also there is the Google Drive picker

— Reply to this email directly or view it on GitHub https://github.com/Fleker/CumulusTV/issues/41#issuecomment-183769966.

Fleker commented 7 years ago

Channels can now be imported and exported through the app