tellytv / telly

An IPTV proxy
MIT License
751 stars 105 forks source link

Add support for m3u8 with temp CDN ts inside #242

Open mglants opened 5 years ago

mglants commented 5 years ago

I have a multicast provider so his m3u looks like

#EXTM3U
#EXTINF:-1 group-title="Общие" tvg-rec="7" timeshift="7",Первый канал HD
http://myott.tv/stream/****/131.m3u8
#EXTINF:-1 group-title="Общие" tvg-rec="7" timeshift="7",Россия HD
http://myott.tv/stream/****/137.m3u8

As this filles coresponds to

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:2270
#EXT-X-TARGETDURATION:10
#EXTINF:9.480,
http://route071st.access-cdn.com/stream/****/131_50fps-1556206951784.ts?sub=1&token=7545030554d2084a1b015524359c5d5c
#EXTINF:9.000,
http://route071st.access-cdn.com/stream/****/131_50fps-1556206961323.ts?sub=1&token=95f34f7c01c993f549c1981695cf7e0c
#EXTINF:9.000,
http://route071st.access-cdn.com/stream/****/131_50fps-1556206970130.ts?sub=1&token=2e373be4bd22b4a0b6597269d4f61e92
#EXTINF:9.140,
http://route071st.access-cdn.com/stream/****/131_50fps-1556206978950.ts?sub=1&token=cae6320bdc853d981defb49776cd5076
#EXTINF:9.180,
http://route071st.access-cdn.com/stream/****/131_50fps-1556206988362.ts?sub=1&token=69ee190f00e8c180c9b6e54ae2911ca2
#EXTINF:9.160,
http://route071st.access-cdn.com/stream/****/131_50fps-1556206997241.ts?sub=1&token=cb12921878b32a6856af77a333621707
#EXTINF:9.600,
http://route071st.access-cdn.com/stream/****/131_50fps-1556207006493.ts?sub=1&token=df0a501b0020ba7a17d15a259cfa293a
#EXTINF:9.360,
http://route071st.access-cdn.com/stream/****/131_50fps-1556207015851.ts?sub=1&token=6f7caef10b1ee9897cdb0b6b103b5f31

I cant extract those tokens as they are temporal

ppacher commented 4 years ago

I have a similar situation that where the .m3u8 file also references to dynamic files (I think it is called "nested" m3u in the wiki). For me it works when enabling FFMPEG transcoding.

yura-hoc commented 4 years ago

сможете дать ключ от этого листа?