diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/categories/undefined.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/categories/undefined.m3u index d94b601c7e..fefd43fc6d 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/categories/undefined.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/categories/undefined.m3u @@ -1,6 +1,8 @@ #EXTM3U #EXTINF:-1 tvg-id="5AABTV.ca" tvg-logo="" group-title="Undefined",5AAB TV http://158.69.124.9:1935/5aabtv/5aabtv/playlist.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/countries/undefined.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/countries/undefined.m3u index 77374edda3..99dd983abb 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/countries/undefined.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/countries/undefined.m3u @@ -1,4 +1,6 @@ #EXTM3U +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/index.category.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/index.category.m3u index ab141bcaa7..76dc97f116 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/index.category.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/index.category.m3u @@ -11,6 +11,8 @@ http://1111296894.rsc.cdn77.org/LS-ATL-54548-6/index.m3u8 http://encodercdn1.frontline.ca/encoder181/output/Meteo_Media_720p/playlist.m3u8 #EXTINF:-1 tvg-id="5AABTV.ca" tvg-logo="" group-title="Undefined",5AAB TV http://158.69.124.9:1935/5aabtv/5aabtv/playlist.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/index.country.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/index.country.m3u index c9a2f51d43..7ef1a6ff70 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/index.country.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/index.country.m3u @@ -15,6 +15,8 @@ http://146.59.85.40:89/dunaworld/index.m3u8 http://46.46.143.222:1935/live/mp4:ldpr.stream/blocked.m3u8 #EXTINF:-1 tvg-id="ElTR.kg" tvg-logo="https://i.ibb.co/r6czQwQ/365049798-774721644658455-5702658175909463406-n-2.png" group-title="International",ЭлТР (480p) [Not 24/7] http://gohoski.fvds.ru:3000/mediabay/162/index.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/index.language.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/index.language.m3u index f05b45bed2..2d780396c4 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/index.language.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/index.language.m3u @@ -7,6 +7,8 @@ http://1111296894.rsc.cdn77.org/LS-ATL-54548-6/index.m3u8 http://46.46.143.222:1935/live/mp4:ldpr.stream/blocked.m3u8 #EXTINF:-1 tvg-id="5AABTV.ca" tvg-logo="" group-title="Undefined",5AAB TV http://158.69.124.9:1935/5aabtv/5aabtv/playlist.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/index.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/index.m3u index 69a3dff07b..80f65a4cb6 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/index.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/index.m3u @@ -1,6 +1,8 @@ #EXTM3U #EXTINF:-1 tvg-id="5AABTV.ca" tvg-logo="" group-title="Undefined",5AAB TV http://158.69.124.9:1935/5aabtv/5aabtv/playlist.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/.gh-pages/languages/undefined.m3u b/tests/__data__/expected/playlist_generate/.gh-pages/languages/undefined.m3u index 61622ee100..cc4329ddcc 100644 --- a/tests/__data__/expected/playlist_generate/.gh-pages/languages/undefined.m3u +++ b/tests/__data__/expected/playlist_generate/.gh-pages/languages/undefined.m3u @@ -1,6 +1,8 @@ #EXTM3U #EXTINF:-1 tvg-id="5AABTV.ca" tvg-logo="" group-title="Undefined",5AAB TV http://158.69.124.9:1935/5aabtv/5aabtv/playlist.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic" tvg-logo="" group-title="Undefined",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 #EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7] #EXTVLCOPT:http-referrer=http://imn.iq #EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 diff --git a/tests/__data__/expected/playlist_generate/logs/generators.log b/tests/__data__/expected/playlist_generate/logs/generators.log index f913b380da..44f008d813 100644 --- a/tests/__data__/expected/playlist_generate/logs/generators.log +++ b/tests/__data__/expected/playlist_generate/logs/generators.log @@ -1,85 +1,88 @@ {"type":"raw","filepath":"raw/ad.m3u","count":4} {"type":"raw","filepath":"raw/ca.m3u","count":2} +{"type":"raw","filepath":"raw/id_denstv.m3u","count":1} {"type":"raw","filepath":"raw/in.m3u","count":1} {"type":"raw","filepath":"raw/kg.m3u","count":1} +{"type":"raw","filepath":"raw/qa.m3u","count":2} {"type":"raw","filepath":"raw/uk.m3u","count":1} {"type":"raw","filepath":"raw/unsorted.m3u","count":4} {"type":"category","filepath":"categories/auto.m3u","count":0} {"type":"category","filepath":"categories/animation.m3u","count":0} {"type":"category","filepath":"categories/classic.m3u","count":0} -{"type":"category","filepath":"categories/comedy.m3u","count":0} -{"type":"category","filepath":"categories/culture.m3u","count":0} -{"type":"category","filepath":"categories/documentary.m3u","count":0} -{"type":"category","filepath":"categories/business.m3u","count":0} {"type":"category","filepath":"categories/cooking.m3u","count":0} -{"type":"category","filepath":"categories/education.m3u","count":0} -{"type":"category","filepath":"categories/family.m3u","count":0} -{"type":"category","filepath":"categories/legislative.m3u","count":0} -{"type":"category","filepath":"categories/news.m3u","count":1} -{"type":"category","filepath":"categories/kids.m3u","count":0} -{"type":"category","filepath":"categories/lifestyle.m3u","count":0} -{"type":"category","filepath":"categories/movies.m3u","count":0} -{"type":"category","filepath":"categories/religious.m3u","count":0} -{"type":"category","filepath":"categories/outdoor.m3u","count":0} +{"type":"category","filepath":"categories/documentary.m3u","count":0} +{"type":"category","filepath":"categories/culture.m3u","count":0} +{"type":"category","filepath":"categories/comedy.m3u","count":0} +{"type":"category","filepath":"categories/business.m3u","count":0} {"type":"category","filepath":"categories/general.m3u","count":3} -{"type":"category","filepath":"categories/relax.m3u","count":0} -{"type":"category","filepath":"categories/music.m3u","count":0} -{"type":"category","filepath":"categories/series.m3u","count":0} -{"type":"category","filepath":"categories/travel.m3u","count":0} -{"type":"category","filepath":"categories/sports.m3u","count":0} -{"type":"category","filepath":"categories/science.m3u","count":0} -{"type":"category","filepath":"categories/weather.m3u","count":1} -{"type":"category","filepath":"categories/shop.m3u","count":0} -{"type":"category","filepath":"categories/xxx.m3u","count":1} -{"type":"category","filepath":"categories/undefined.m3u","count":7} +{"type":"category","filepath":"categories/legislative.m3u","count":0} +{"type":"category","filepath":"categories/kids.m3u","count":0} +{"type":"category","filepath":"categories/movies.m3u","count":0} {"type":"category","filepath":"categories/entertainment.m3u","count":0} +{"type":"category","filepath":"categories/education.m3u","count":0} +{"type":"category","filepath":"categories/music.m3u","count":0} +{"type":"category","filepath":"categories/lifestyle.m3u","count":0} +{"type":"category","filepath":"categories/religious.m3u","count":0} +{"type":"category","filepath":"categories/family.m3u","count":0} +{"type":"category","filepath":"categories/outdoor.m3u","count":0} +{"type":"category","filepath":"categories/series.m3u","count":0} +{"type":"category","filepath":"categories/relax.m3u","count":0} +{"type":"category","filepath":"categories/sports.m3u","count":0} +{"type":"category","filepath":"categories/news.m3u","count":1} +{"type":"category","filepath":"categories/travel.m3u","count":0} +{"type":"category","filepath":"categories/science.m3u","count":0} +{"type":"category","filepath":"categories/undefined.m3u","count":8} +{"type":"category","filepath":"categories/xxx.m3u","count":1} +{"type":"category","filepath":"categories/shop.m3u","count":0} +{"type":"category","filepath":"categories/weather.m3u","count":1} {"type":"language","filepath":"languages/cat.m3u","count":1} +{"type":"language","filepath":"languages/undefined.m3u","count":9} {"type":"language","filepath":"languages/eng.m3u","count":1} -{"type":"language","filepath":"languages/undefined.m3u","count":8} {"type":"language","filepath":"languages/rus.m3u","count":1} +{"type":"country","filepath":"countries/ca.m3u","count":2} {"type":"country","filepath":"countries/ad.m3u","count":1} {"type":"country","filepath":"countries/ru.m3u","count":1} -{"type":"country","filepath":"countries/ca.m3u","count":2} {"type":"country","filepath":"countries/int.m3u","count":4} -{"type":"country","filepath":"countries/undefined.m3u","count":4} +{"type":"country","filepath":"countries/undefined.m3u","count":5} {"type":"subdivision","filepath":"subdivisions/ad-02.m3u","count":1} -{"type":"city","filepath":"cities/adcan.m3u","count":1} -{"type":"region","filepath":"regions/afr.m3u","count":2} -{"type":"source","filepath":"sources/in.m3u","count":1} {"type":"subdivision","filepath":"subdivisions/ad-07.m3u","count":1} {"type":"subdivision","filepath":"subdivisions/ca-on.m3u","count":1} +{"type":"city","filepath":"cities/adcan.m3u","count":1} {"type":"region","filepath":"regions/amer.m3u","count":5} -{"type":"region","filepath":"regions/apac.m3u","count":2} -{"type":"region","filepath":"regions/cas.m3u","count":3} -{"type":"region","filepath":"regions/asean.m3u","count":2} -{"type":"region","filepath":"regions/cis.m3u","count":4} -{"type":"region","filepath":"regions/carib.m3u","count":2} -{"type":"region","filepath":"regions/arab.m3u","count":2} -{"type":"region","filepath":"regions/emea.m3u","count":5} -{"type":"region","filepath":"regions/asia.m3u","count":4} -{"type":"region","filepath":"regions/cenamer.m3u","count":2} {"type":"region","filepath":"regions/ww.m3u","count":7} +{"type":"region","filepath":"regions/nam.m3u","count":5} +{"type":"region","filepath":"regions/noram.m3u","count":5} +{"type":"region","filepath":"regions/emea.m3u","count":5} {"type":"region","filepath":"regions/eur.m3u","count":5} -{"type":"region","filepath":"regions/lac.m3u","count":2} -{"type":"region","filepath":"regions/maghreb.m3u","count":2} -{"type":"region","filepath":"regions/latam.m3u","count":2} +{"type":"region","filepath":"regions/afr.m3u","count":2} +{"type":"region","filepath":"regions/apac.m3u","count":2} +{"type":"region","filepath":"regions/arab.m3u","count":2} +{"type":"region","filepath":"regions/asean.m3u","count":2} +{"type":"region","filepath":"regions/asia.m3u","count":4} +{"type":"region","filepath":"regions/carib.m3u","count":2} +{"type":"region","filepath":"regions/cas.m3u","count":3} +{"type":"region","filepath":"regions/cenamer.m3u","count":2} +{"type":"region","filepath":"regions/cis.m3u","count":4} {"type":"region","filepath":"regions/hispam.m3u","count":2} +{"type":"region","filepath":"regions/lac.m3u","count":2} +{"type":"region","filepath":"regions/latam.m3u","count":2} +{"type":"region","filepath":"regions/maghreb.m3u","count":2} {"type":"region","filepath":"regions/mena.m3u","count":2} {"type":"region","filepath":"regions/mideast.m3u","count":2} -{"type":"region","filepath":"regions/nam.m3u","count":5} -{"type":"region","filepath":"regions/oce.m3u","count":2} {"type":"region","filepath":"regions/nord.m3u","count":2} -{"type":"region","filepath":"regions/southam.m3u","count":2} -{"type":"region","filepath":"regions/noram.m3u","count":5} -{"type":"region","filepath":"regions/wafr.m3u","count":2} +{"type":"region","filepath":"regions/oce.m3u","count":2} {"type":"region","filepath":"regions/sas.m3u","count":2} +{"type":"region","filepath":"regions/southam.m3u","count":2} {"type":"region","filepath":"regions/ssa.m3u","count":2} +{"type":"region","filepath":"regions/wafr.m3u","count":2} {"type":"source","filepath":"sources/unsorted.m3u","count":4} +{"type":"source","filepath":"sources/in.m3u","count":1} {"type":"source","filepath":"sources/ca.m3u","count":2} +{"type":"source","filepath":"sources/qa.m3u","count":1} {"type":"source","filepath":"sources/ad.m3u","count":3} {"type":"source","filepath":"sources/uk.m3u","count":1} {"type":"source","filepath":"sources/kg.m3u","count":1} -{"type":"index","filepath":"index.m3u","count":11} -{"type":"index","filepath":"index.category.m3u","count":12} -{"type":"index","filepath":"index.country.m3u","count":12} -{"type":"index","filepath":"index.language.m3u","count":11} +{"type":"index","filepath":"index.m3u","count":12} +{"type":"index","filepath":"index.category.m3u","count":13} +{"type":"index","filepath":"index.country.m3u","count":13} +{"type":"index","filepath":"index.language.m3u","count":12} diff --git a/tests/__data__/input/playlist_generate/id_denstv.m3u b/tests/__data__/input/playlist_generate/id_denstv.m3u new file mode 100644 index 0000000000..13503bea3d --- /dev/null +++ b/tests/__data__/input/playlist_generate/id_denstv.m3u @@ -0,0 +1,5 @@ +#EXTM3U +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic",Al Jazeera Arabic [Geo-blocked] +#EXTVLCOPT:http-referrer=https://www.dens.tv/ +#EXTVLCOPT:http-user-agent=Mozilla/5.0 Windows NT 10.0; Win64; x64 AppleWebKit/537.36 KHTML, like Gecko Chrome/144.0.0.0 Safari/537.36 +https://op-group1-swiftservehd-1.dens.tv/s/s16/index.m3u8 diff --git a/tests/__data__/input/playlist_generate/qa.m3u b/tests/__data__/input/playlist_generate/qa.m3u new file mode 100644 index 0000000000..0bbdbbfeae --- /dev/null +++ b/tests/__data__/input/playlist_generate/qa.m3u @@ -0,0 +1,5 @@ +#EXTM3U +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic",Al Jazeera +https://live-hls-apps-aja-v3-fa.getaj.net/AJA/index.m3u8 +#EXTINF:-1 tvg-id="AlJazeera.qa@Arabic",Al Jazeera (1080p) +https://live-hls-apps-aja-fa.getaj.net/AJA/index.m3u8 \ No newline at end of file