From 29ded9f8ff2142c215533a7743f2cf97f70f91fb Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 30 Mar 2025 02:59:19 +0300 Subject: [PATCH] Update tests/__data__ --- .../playlist_generate/logs/generators.log | 26 +++++++++---------- tests/__data__/input/data/channels.json | 11 ++++++++ tests/__data__/input/data/feeds.json | 14 ++++++++++ tests/__data__/input/playlist_generate/ad.m3u | 4 +++ .../input/playlist_generate/unsorted.m3u | 2 ++ 5 files changed, 44 insertions(+), 13 deletions(-) diff --git a/tests/__data__/expected/playlist_generate/logs/generators.log b/tests/__data__/expected/playlist_generate/logs/generators.log index fddee804fd..676f9a3a4b 100644 --- a/tests/__data__/expected/playlist_generate/logs/generators.log +++ b/tests/__data__/expected/playlist_generate/logs/generators.log @@ -26,21 +26,21 @@ {"type":"category","filepath":"categories/travel.m3u","count":0} {"type":"category","filepath":"categories/weather.m3u","count":1} {"type":"category","filepath":"categories/xxx.m3u","count":1} -{"type":"category","filepath":"categories/undefined.m3u","count":4} -{"type":"country","filepath":"countries/ad.m3u","count":2} +{"type":"category","filepath":"categories/undefined.m3u","count":6} +{"type":"country","filepath":"countries/ad.m3u","count":1} {"type":"country","filepath":"countries/ca.m3u","count":1} {"type":"subdivision","filepath":"subdivisions/ca-on.m3u","count":1} {"type":"country","filepath":"countries/ru.m3u","count":1} -{"type":"country","filepath":"countries/undefined.m3u","count":2} -{"type":"index","filepath":"index.category.m3u","count":8} -{"type":"index","filepath":"index.country.m3u","count":7} -{"type":"index","filepath":"index.language.m3u","count":7} -{"type":"index","filepath":"index.m3u","count":7} -{"type":"index","filepath":"index.region.m3u","count":18} +{"type":"country","filepath":"countries/undefined.m3u","count":4} +{"type":"index","filepath":"index.category.m3u","count":10} +{"type":"index","filepath":"index.country.m3u","count":9} +{"type":"index","filepath":"index.language.m3u","count":9} +{"type":"index","filepath":"index.m3u","count":9} +{"type":"index","filepath":"index.region.m3u","count":13} {"type":"language","filepath":"languages/eng.m3u","count":1} {"type":"language","filepath":"languages/rus.m3u","count":1} {"type":"language","filepath":"languages/cat.m3u","count":1} -{"type":"language","filepath":"languages/undefined.m3u","count":4} +{"type":"language","filepath":"languages/undefined.m3u","count":6} {"type":"region","filepath":"regions/afr.m3u","count":0} {"type":"region","filepath":"regions/amer.m3u","count":1} {"type":"region","filepath":"regions/apac.m3u","count":0} @@ -51,8 +51,8 @@ {"type":"region","filepath":"regions/cas.m3u","count":0} {"type":"region","filepath":"regions/cenamer.m3u","count":0} {"type":"region","filepath":"regions/cis.m3u","count":1} -{"type":"region","filepath":"regions/emea.m3u","count":3} -{"type":"region","filepath":"regions/eur.m3u","count":3} +{"type":"region","filepath":"regions/emea.m3u","count":2} +{"type":"region","filepath":"regions/eur.m3u","count":2} {"type":"region","filepath":"regions/hispam.m3u","count":0} {"type":"region","filepath":"regions/lac.m3u","count":0} {"type":"region","filepath":"regions/latam.m3u","count":0} @@ -67,5 +67,5 @@ {"type":"region","filepath":"regions/southam.m3u","count":0} {"type":"region","filepath":"regions/ssa.m3u","count":0} {"type":"region","filepath":"regions/wafr.m3u","count":0} -{"type":"region","filepath":"regions/int.m3u","count":1} -{"type":"region","filepath":"regions/undefined.m3u","count":2} +{"type":"region","filepath":"regions/int.m3u","count":2} +{"type":"region","filepath":"regions/undefined.m3u","count":4} diff --git a/tests/__data__/input/data/channels.json b/tests/__data__/input/data/channels.json index 22cd9d0a0d..6adfaa377f 100644 --- a/tests/__data__/input/data/channels.json +++ b/tests/__data__/input/data/channels.json @@ -630,5 +630,16 @@ "categories": [], "is_nsfw": false, "logo": null + }, + { + "id": "DunaWorld.hu", + "name": "Duna World", + "network": null, + "country": "HU", + "subdivision": null, + "city": null, + "categories": ["General"], + "is_nsfw": false, + "logo": "https://i.imgur.com/uOBQJZS.png" } ] \ No newline at end of file diff --git a/tests/__data__/input/data/feeds.json b/tests/__data__/input/data/feeds.json index a0a7e22b27..3ac036acd7 100644 --- a/tests/__data__/input/data/feeds.json +++ b/tests/__data__/input/data/feeds.json @@ -798,5 +798,19 @@ "America/Port_of_Spain" ], "video_format": "576i" + }, + { + "channel": "DunaWorld.hu", + "id": "SD", + "name": "SD", + "is_main": true, + "broadcast_area": [ + "r/INT" + ], + "languages": [], + "timezones": [ + "Europe/London" + ], + "video_format": "576i" } ] \ No newline at end of file diff --git a/tests/__data__/input/playlist_generate/ad.m3u b/tests/__data__/input/playlist_generate/ad.m3u index 7557713a78..9a1c9e175a 100644 --- a/tests/__data__/input/playlist_generate/ad.m3u +++ b/tests/__data__/input/playlist_generate/ad.m3u @@ -3,3 +3,7 @@ https://iptv-all.lanesh4d0w.repl.co/andorra/zoo #EXTINF:-1 tvg-id="AndorraTV.ad@SD",ATV https://iptv-all.lanesh4d0w.repl.co/andorra/atv +#EXTINF:-1 tvg-id="AndorraTV.ad@HD",ATV HD +https://iptv-all.lanesh4d0w.repl.co/andorra/atv_hd +#EXTINF:-1 tvg-id="AndorraTV.ad",ATV +https://iptv-all.lanesh4d0w.repl.co/andorra/atv2 diff --git a/tests/__data__/input/playlist_generate/unsorted.m3u b/tests/__data__/input/playlist_generate/unsorted.m3u index 1a9c40b9fd..b2b798b155 100644 --- a/tests/__data__/input/playlist_generate/unsorted.m3u +++ b/tests/__data__/input/playlist_generate/unsorted.m3u @@ -7,3 +7,5 @@ https://stream.visit-x.tv/vxtv/ngrp:live_all/30fps.m3u8 #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 http://1111296894.rsc.cdn77.org/LS-ATL-54548-6/index2.m3u8 +#EXTINF:-1 tvg-id="DunaWorld.hu",Duna World (576i) +http://146.59.85.40:89/dunaworld/index.m3u8