Cigaras / IPTV.bundle

Plex plug-in that plays live streams (like IPTV) from a M3U playlist
https://forums.plex.tv/discussion/83083
GNU General Public License v3.0
961 stars 292 forks source link

Support for alternative streams #103

Open godztian opened 7 years ago

godztian commented 7 years ago

I have some TV channels where I have multiple HLS streams available (both different sources, but also different qualities). It would be great if I could have one entry for a channel, but several streams:

http://f24hls-i.akamaihd.net/hls/live/221147/F24_EN_HI_HLS/master.m3u8 http://f24hls-i.akamaihd.net/hls/live/221193/F24_EN_LO_HLS/master.m3u8 http://static.france24.com/live/F24_EN_LO_HLS/live_ios.m3u8 http://static.france24.com/live/F24_EN_LO_HLS/live_web.m3u8

Cigaras commented 6 years ago

Sorry, I have no intent to do that, same as with sub-categories #68.

OmgImAlexis commented 6 years ago

@Cigaras what about playlists that return the details linked to each stream?

For example one of my channels returns this.

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=306000,RESOLUTION=320x180,CODECS="avc1.66.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_250_av-p.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=306000,RESOLUTION=320x180,CODECS="avc1.66.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_250_av-b.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=514000,RESOLUTION=512x288,CODECS="avc1.77.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_450_av-p.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=514000,RESOLUTION=512x288,CODECS="avc1.77.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_450_av-b.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=730000,RESOLUTION=640x360,CODECS="avc1.66.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_650_av-p.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=730000,RESOLUTION=640x360,CODECS="avc1.66.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_650_av-b.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=846000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_750_av-p.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=306000,RESOLUTION=320x180,CODECS="avc1.66.30, mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_750_av-b.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=56000,CODECS="mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_250_a-p.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=56000,CODECS="mp4a.40.2"
https://abctvlivehls-lh.akamaihd.net/i/abckids_1@327097/index_250_a-b.m3u8?sd=9&rebase=on&id=AgB9qEPSi9oUQ9RQJFuwHygXhSSN63Uzc%2flWgmrdvtz%2fU6vnP97yCNRU4VdNui99S2TBiEir9yBC9A%3d%3d
Cigaras commented 5 years ago

@OmgImAlexis, streams listed by @godztian return same thing You posted.

Just list them as separate streams if You need all of them, or just give the whole m3u8 to Plex, not the #EXT-X-STREAM-INF data, but the list of streams like @godztian listed, like this:

#EXTM3U
#EXTINF:0,A
http://f24hls-i.akamaihd.net/hls/live/221147/F24_EN_HI_HLS/master.m3u8
#EXTINF:0,B
http://f24hls-i.akamaihd.net/hls/live/221193/F24_EN_LO_HLS/master.m3u8
#EXTINF:0,C
http://static.france24.com/live/F24_EN_LO_HLS/live_ios.m3u8
#EXTINF:0,D
http://static.france24.com/live/F24_EN_LO_HLS/live_web.m3u8

Works for me without any issues.