package main

import (
	"encoding/json"
	"strings"
	"testing"
)

func TestRun(t *testing.T) {
	v := "./config_full.json"
	v2bXConfigPath = &v
	p := "./config.json"
	path = &p
	Run()
}

func Test(t *testing.T) {
	const stream = "DAZN\n\"domain:dazn-api.com\",\n\"domain:dazn.com\",\n\"domain:dazndn.com\",\n\"domain:indazn.com\",\n\"domain:d151l6v8er5bdm.cloudfront.net\",\n\"domain:d1sgwhnao7452x.cloudfront.net\",\n\"domain:dcalivedazn.akamaized.net\",\n\"domain:dcblivedazn.akamaized.net\",\n# > Hotstar\n\"domain:hotstar.com\",\n\"domain:hotstarext.com\",\n# > Disney+\n\"domain:disney.connections.edge.bamgrid.com\",\n\"domain:disney.api.edge.bamgrid.com\",\n\"domain:disney-plus.net\",\n\"domain:disneyplus.com\",\n\"domain:dssott.com\",\n\"domain:disneynow.com\",\n\"domain:disneystreaming.com\",\n\"domain:cdn.registerdisney.go.com\",\n# > Netflix\n\"domain:netflix.com\",\n\"domain:netflix.net\",\n\"domain:nflximg.com\",\n\"domain:nflximg.net\",\n\"domain:nflxvideo.net\",\n\"domain:nflxext.com\",\n\"domain:nflxso.net\",\n# > Amazon Prime Video:\n\"domain:d1v5ir2lpwr8os.cloudfront.net\",\n\"domain:d22qjgkvxw22r6.cloudfront.net\",\n\"domain:d25xi40x97liuc.cloudfront.net\",\n\"domain:d27xxe7juh1us6.cloudfront.net\",\n\"domain:dmqdd6hw24ucf.cloudfront.net\",\n\"domain:aiv-cdn.net\",\n\"domain:aiv-delivery.net\",\n\"domain:amazonvideo.com\",\n\"domain:atv-ext-eu.amazon.com\",\n\"domain:atv-ext-fe.amazon.com\",\n\"domain:atv-ext.amazon.com\",\n\"domain:atv-ps-eu.amazon.co.uk\",\n\"domain:atv-ps-eu.amazon.com\",\n\"domain:atv-ps-fe.amazon.co.jp\",\n\"domain:atv-ps-fe.amazon.com\",\n\"domain:atv-ps.amazon.com\",\n\"domain:primevideo.com\",\n\"domain:pv-cdn.net\",\n\"domain:video.a2z.com\",\n# > TVBAnywhere+\n\"domain:tvbanywhere.com\",\n\"domain:tvbanywhere.com.sg\",\n\"domain:tvb.com\",\n\"domain:tvb.com.au\",\n\"domain:tvbc.com.cn\",\n\"domain:tvbeventpower.com.hk\",\n\"domain:tvbusa.com\",\n\"domain:tvbweekly.com\",\n\"domain:tvmedia.net.au\",\n# > Viu.com\n\"domain:cognito-identity.us-east-1.amazonaws.com\",\n\"domain:d1k2us671qcoau.cloudfront.net\",\n\"domain:d2anahhhmp1ffz.cloudfront.net\",\n\"domain:dfp6rglgjqszk.cloudfront.net\",\n\"domain:d3o7oi00quuwqu.cloudfront.net\",\n\"domain:mobileanalytics.us-east-1.amazonaws.com\",\n\"domain:viu.com\",\n# > Steam Store\n\"domain:steampowered.com\",\n# > Youtube\n\"domain:youtube.com\",\n\"domain:youtubei.googleapis.com\",\n# > iQiyi\n\"domain:71.am\",\n\"domain:iq.com\",\n\"domain:iqiyi.com\",\n\"domain:iqiyipic.com\",\n\"domain:pps.tv\",\n\"domain:ppsimg.com\",\n\"domain:qiyi.com\",\n\"domain:qiyipic.com\",\n\"domain:qy.net\",\n# > Tiktok\n\"domain:byteoversea.com\",\n\"domain:ibytedtos.com\",\n\"domain:ipstatp.com\",\n\"domain:muscdn.com\",\n\"domain:musical.ly\",\n\"domain:tiktok.com\",\n\"domain:tik-tokapi.com\",\n\"domain:tiktokcdn.com\",\n\"domain:tiktokv.com\",\n# > KKTV\n\"domain:kfs.io\",\n\"domain:kktv-theater.kk.stream\",\n\"domain:kkbox.com\",\n\"domain:kkbox.com.tw\",\n\"domain:kktv.com.tw\",\n\"domain:kktv.me\",\n# > LiTV\n\"domain:litv.tv\",\n\"domain:litvfreemobile-hichannel.cdn.hinet.net\",\n# > MyVideo\n\"domain:cdn.plyr.io\",\n\"domain:myvideo.net.tw\",\n# > 4GTV\n\"domain:4gtv.tv\",\n\"domain:4gtvfreepc-cds.cdn.hinet.net\",\n\"domain:4gtvfreepcvod-cds.cdn.hinet.net\",\n\"domain:4gtvpc-cds.cdn.hinet.net\",\n\"domain:4gtvpcvod-cds.cdn.hinet.net\",\n# > LineTV.TW\n\"domain:d3c7rimkq79yfu.cloudfront.net\",\n\"domain:linetv.tw\",\n# > Hami Video\n\"domain:cdn.hinet.net\",\n\"domain:hamivideo.hinet.net\",\n\"domain:scc.ott.hinet.net\",\n# > CatchPlay+\n\"domain:catchplay.com\",\n\"domain:d2ivmxp5z2ww0n.cloudfront.net\",\n\"domain:ols-ww100-cp.akamaized.net\",\n\"domain:tra-www000-cp.akamaized.net\",\n# > HBO GO Asia\n\"domain:44wilhpljf.execute-api.ap-southeast-1.amazonaws.com\",\n\"domain:bcbolthboa-a.akamaihd.net\",\n\"domain:dai3fd1oh325y.cloudfront.net\",\n\"domain:hboasia1-i.akamaihd.net\",\n\"domain:hboasia2-i.akamaihd.net\",\n\"domain:hboasia3-i.akamaihd.net\",\n\"domain:hboasia4-i.akamaihd.net\",\n\"domain:hboasia5-i.akamaihd.net\",\n\"domain:hboasialive.akamaized.net\",\n\"domain:hbogoprod-vod.akamaized.net\",\n\"domain:hbolb.onwardsmg.com\",\n\"domain:hbounify-prod.evergent.com\",\n\"domain:hbogo.co.th\",\n\"domain:hbogoasia.com\",\n\"domain:hbogoasia.hk\",\n\"domain:hbogoasia.id\",\n\"domain:hbogoasia.ph\",\n\"domain:hbogoasia.sg\",\n\"domain:hbogoasia.tw\",\n# > Bahamut Anime\n\"domain:bahamut.com.tw\",\n\"domain:gamer.com.tw\",\n\"domain:gamer-cds.cdn.hinet.net\",\n\"domain:gamer2-cds.cdn.hinet.net\",\n# > BiliBili\n\"domain:bilibili.com\",\n# > CBC Gem\n\"domain:cbc.ca\",\n\"domain:cbchd1dynamicads-i.akamaihd.net\",\n\"domain:cbclivedai5-i.akamaihd.net\",\n\"domain:cbcnewshd-f.akamaihd.net\",\n\"domain:cbcrcott-gem-key.akamaized.net\",\n\"domain:cbcrcott-gem.akamaized.net\",\n\"domain:go-mpulse.net\",\n\"domain:theplatform.com\",\n# > Crave TV\n\"domain:crave.ca\",\n\"domain:go-mpulse.net\",\n\"domain:9c9media.com\",\n# > DMM\n\"domain:dmm-extension.com\",\n\"domain:dmm.co.jp\",\n\"domain:dmm.com\",\n\"domain:videomarket.jp\",\n\"domain:p-smith.com\",\n\"domain:vmdash-cenc.akamaized.net\",\n\"domain:img.vm-movie.jp\",\n# > Abema\n\"domain:abema.io\",\n\"domain:abema.tv\",\n\"domain:ds-linear-abematv.akamaized.net\",\n\"domain:linear-abematv.akamaized.net\",\n\"domain:ds-vod-abematv.akamaized.net\",\n\"domain:vod-abematv.akamaized.net\",\n\"domain:ameba.jp\",\n\"domain:hayabusa.io\",\n\"domain:vod-abematv.akamaized.net\",\n\"domain:bucketeer.jp\",\n\"domain:abema.adx.promo\",\n\"domain:hayabusa.media\",\n\"domain:abema-tv.com\",\n# > NicoNico\n\"domain:dmc.nico\",\n\"domain:nicovideo.jp\",\n\"domain:nimg.jp\",\n# > Music.jp\n\"domain:music.jp\",\n\"domain:music-book.jp\",\n# > Telasa\n\"domain:telasa.jp\",\n\"domain:kddi-video.com\",\n\"domain:videopass.jp\",\n\"domain:d2lmsumy47c8as.cloudfront.net\",\n# > Paravi\n\"domain:paravi.jp\",\n# > U-NEXT\n\"domain:unext.jp\",\n\"domain:nxtv.jp\",\n# > Hulu Japan\n\"domain:happyon.jp\",\n\"domain:hulu.jp\",\n\"domain:prod.hjholdings.tv\",\n\"domain:streaks.jp\",\n\"domain:yb.uncn.jp\",\n\"domain:hjholdings.jp\",\n# > TVer\n\"domain:tver.jp\",\n\"domain:edge.api.brightcove.com\",\n# \"domain:players.brightcove.net\",\n\"domain:gorin.jp\",\n\"domain:screens-lab.jp\",\n\"domain:tver.co.jp\",\n\"domain:dogatch.jp\",\n# > GYAO!\n\"domain:gyao.yahoo.co.jp\",\n# > WOWOW\n\"domain:wowow.co.jp\",\n# > Videomarket\n\"domain:videomarket.jp\",\n# > Fuji TV\n\"domain:fujitv.co.jp\",\n\"domain:stream.ne.jp\",\n# > Radiko\n\"domain:radiko.jp\",\n\"domain:radionikkei.jp\",\n\"domain:smartstream.ne.jp\",\n# > Karaoke@DAM\n\"domain:clubdam.com\",\n# > J:com On Demand\n\"domain:id.zaq.ne.jp\",\n# > Games\n\"domain:cygames.jp\",\n\"domain:konosubafd.jp\",\n\"domain:colorfulpalette.org\",\n\"domain:worldflipper.jp\",\n\"domain:jujutsuphanpara.jp\",\n# > Reads \n\"domain:data-cloudauthoring.magazine.rakuten.co.jp\",\n# > NBA TV !Against US!\n\"domain:nba.com\",\n\"domain:neulion-a.akamaihd.net\",\n\"domain:nlnbamdnyc-a.akamaihd.net\",\n\"domain:sdk.iad-03.braze.com\",\n\"domain:nbaprop.sc.omtrdc.net\",\n\"domain:nlnbaqos.neulion.com\",\n\"domain:watchnba.cdnfastly.endeavorstreaming.net\",\n\"domain:nbaapi.neulion.com\",\n\"domain:nba-api-cdn.opin.media\",\n\"domain:neulionqos-a.akamaihd.net\",\n\"domain:neulion.com\",\n\"domain:nbaprop.tt.omtrdc.net\",\n\"domain:lion-nba-msl.akamaized.net\",\n\"domain:nbanlds19vod.akamaized.net\",\n# > Acorn TV !Against US!\n\"domain:edge.api.brightcove.com\",\n\"domain:api.rlje.net\",\n\"domain:boltdns.net\",\n\"domain:acorn.tv\",\n# > SHOWTIME !Against US!\n\"domain:sho.com\",\n\"domain:showtime.com\",\n\"domain:showtimeanytime.com\",\n# > BritBox !Against US/EU!\n\"domain:vod-dash-ntham-comm-live.akamaized.net\",\n\"domain:vod-dash-ntham-comm.live.cf.md.bbci.co.uk\",\n\"domain:vod-hls-ntham-comm-live.akamaized.net\",\n\"domain:vod-hls-ntham-comm.live.cf.md.bbci.co.uk\",\n\"domain:britbox.com\",\n\"domain:d2z3p34itxwaj7.cloudfront.net\",\n# > Funimation !Against US/EU!\n\"domain:funimation.com\",\n\"domain:funimationsvc.com\",\n# > Paramount+ !Against US!\n\"domain:paramountplus.com\",\n\"domain:cbsi.live.ott.irdeto.com\",\n\"domain:cbsplaylistserver.aws.syncbak.com\",\n\"domain:cbsservice.aws.syncbak.com\",\n\"domain:link.theplatform.com\",\n\"domain:cbsaavideo.com\",\n\"domain:cbsi.com\",\n\"domain:cbsivideo.com\",\n\"domain:pplusstatic.com\",\n# > AU:Stan\n\"domain:stan.com.au\",\n\"domain:stan.video\",\n\"domain:streamcoimg-a.akamaihd.net\",\n\"domain:live01-stan.akamaized.net\",\n\"domain:live02-stan.akamaized.net\",\n# > AU:Binge/Kayo Sports\n\"domain:streamotion.com.au\",\n# > AU:Docplay\n\"domain:docplay.com\",\n\"domain:0c86e2d1-madman-com-au.akamaized.net\",\n\"domain:ff1be285-madman-com-au.akamaized.net\",\n\"domain:5a929471-madman-com-au.akamaized.net\",\n\"domain:879ed873-madman-com-au.akamaized.net\",\n# > AU:7plus\n\"domain:7plus.com.au\",\n\"domain:npc-live-sevennetwork.akamaized.net\",\n\"domain:7plus-sevennetwork.akamaized.net\",\n\"domain:seven.demdex.net\",\n\"domain:cdn.7livecloud.io\",\n# > AU:9 now\n\"domain:nine.com.au\",\n\"domain:9now.com.au\",\n\"domain:edge.api.brightcove.com\",\n\"domain:p-9now.akamaized.net\",\n\"domain:9now-livestreams.akamaized.net\",\n\"domain:9cdn.net\",\n\"domain:9nation.com.au\",\n\"domain:9news.com.au\",\n\"domain:9now.com.au\",\n\"domain:freeviewplus.net.au\",\n\"domain:mi9.com.au\",\n\"domain:mi9cdn.com\",\n\"domain:nine.com.au\",\n\"domain:nineentertainment.com.au\",\n\"domain:nineentertainmentco.com.au\",\n\"domain:ninemediaroom.com.au\",\n\"domain:ninemsn.com.au\",\n\"domain:static9.net.au\",\n\"domain:yourtv.com.au\",\n# > AU:10 play\n\"domain:10play.com.au\",\n\"domain:global.ssl.fastly.net\",\n\"domain:airspace-cdn.cbsviedo.com\",\n\"domain:net10-livestream-keys.play.cbsi.video\",\n\"domain:net10-livestream.play.cbsi.video\",\n\"domain:d25m2gzplgnf0.cloudfront.net\",\n# > AU:ABC iView\n\"domain:iview.abc.net.au\",\n\"domain:abc-iview-mediapackagestreams-2.akamaized.net\",\n# > AU:Optus\n\"domain:optus.com.au\",\n\"domain:optusdigital.com\",\n\"domain:optusnet.com.au\",\n\"domain:optussport.tv\",\n\"domain:optusvideo.tv\",\n\"domain:tls1.yospace.com\",\n\"domain:bln1.yospace.com\",\n\"domain:d3rj5p7u4c4icq.cloudfront.net\",\n\"domain:mgd0ee5iankkv3gidl14rm7c0.litix.io\",\n\"domain:93e30b04-drm-widevine-licensing.axprod.net\",\n# > AU:SBS on Demand\n\"domain:sbsod.com\",\n\"domain:sbs.com.au\",\n\"domain:videocdn-sbs.akamaized.net\",\n\"domain:sbsvoddai-vh.akamaihd.net\",\n\"domain:sbsvodns-vh.akamaihd.net\",\n\"domain:sbs-live-dai.akamaized.net\",\n\"domain:sbs-live.akamaized.net\",\n\"domain:sbs-live-dai.akamaized.net\",\n# > NZ:Neon TV\n\"domain:neontv.co.nz\",\n# > NZ:SkyGO NZ\n\"domain:sky.co.nz\",\n\"domain:prod-skyonelive.akamaized.net\",\n\"domain:skysportnow.co.nz\",\n\"domain:imggaming.com\",\n\"domain:pndsn.com\",\n# > NZ:ThreeNow\n\"domain:fullscreen.nz\",\n# > NZ:Maori TV\n# > FOX\n\"domain:x-live-fox-stgec.uplynk.com\",\n\"domain:fox.com\",\n\"domain:foxdcg.com\",\n\"domain:theplatform.com\",\n\"domain:cdn-fox-networks-group-green.akamaized.net\",\n\"domain:d3cv4a9a9wh0bt.cloudfront.net\",\n\"domain:foxsports01-i.akamaihd.net\",\n\"domain:foxsports02-i.akamaihd.net\",\n\"domain:foxsports03-i.akamaihd.net\",\n# > HuluUSA\n\"domain:assetshuluimcom-a.akamaihd.net\",\n\"domain:cws-hulu.conviva.com\",\n\"domain:hulu.com\",\n\"domain:hulu.hb.omtrdc.net\",\n\"domain:hulu.sc.omtrdc.net\",\n\"domain:huluad.com\",\n\"domain:huluqa.com\",\n\"domain:hulustream.com\",\n# > NFL\n\"domain:nfl.com\",\n# > ESPN+\n\"domain:espn.api.edge.bamgrid.com\",\n\"domain:espn.hb.omtrdc.net\",\n\"domain:espndotcom.tt.omtrdc.net\",\n\"domain:dtci.co\",\n\"domain:dtci.technology\",\n\"domain:espn.co.uk\",\n\"domain:espn.com\",\n\"domain:espn.net\",\n\"domain:espncdn.com\",\n\"domain:espnqa.com\",\n\"domain:watchespn.com\",\n# > Epix\n\"domain:epix.com\",\n# > Starz\n\"domain:starz.com\",\n# > Philo\n\"domain:philo.com\",\n# > FXNOW\n\"domain:fxnow.fxnetworks.com\",\n# > TLC GO\n\"domain:geolocation.onetrust.com\",\n# > HBO / Max\n\"domain:max.com\",\n\"domain:hbo.com\",\n\"domain:hbogo.com\",\n\"domain:hbomax.com\",\n\"domain:hbomaxcdn.com\",\n\"domain:hbonow.com\",\n\"domain:maxgo.com\",\n# > Shudder\n\"domain:shudder.com\",\n# > BritBox !Against AU/EU!\n\"domain:vod-dash-ntham-comm-live.akamaized.net\",\n\"domain:vod-dash-ntham-comm.live.cf.md.bbci.co.uk\",\n\"domain:vod-hls-ntham-comm-live.akamaized.net\",\n\"domain:vod-hls-ntham-comm.live.cf.md.bbci.co.uk\",\n\"domain:britbox.com\",\n\"domain:d2z3p34itxwaj7.cloudfront.net\",\n# > Crackle\n\"domain:crackle.com\",\n# > CW TV\n\"domain:cwtv.com\",\n# > A&E TV\n\"domain:aetv.com\",\n\"domain:ccpa-service.sp-prod.net\",\n# > NBA TV !Against AU!\n\"domain:nba.com\",\n\"domain:neulion-a.akamaihd.net\",\n\"domain:nlnbamdnyc-a.akamaihd.net\",\n\"domain:sdk.iad-03.braze.com\",\n\"domain:nbaprop.sc.omtrdc.net\",\n\"domain:nlnbaqos.neulion.com\",\n\"domain:watchnba.cdnfastly.endeavorstreaming.net\",\n\"domain:nbaapi.neulion.com\",\n\"domain:nba-api-cdn.opin.media\",\n\"domain:neulionqos-a.akamaihd.net\",\n\"domain:neulion.com\",\n\"domain:nbaprop.tt.omtrdc.net\",\n\"domain:lion-nba-msl.akamaized.net\",\n\"domain:nbanlds19vod.akamaized.net\",\n# > Fubo TV\n\"domain:fubo.tv\",\n# > Tubi TV\n\"domain:tubitv.com\",\n# > Sling TV\n\"domain:dishworld.com\",\n\"domain:slinginternational.com\",\n\"domain:sling.com\",\n\"domain:movenetworks.com\",\n\"domain:movetv.com\",\n# > Pluto TV\n\"domain:pluto.tv\",\n# > Acorn TV !Against AU!\n\"domain:edge.api.brightcove.com\",\n\"domain:api.rlje.net\",\n\"domain:boltdns.net\",\n\"domain:acorn.tv\",\n# > SHOWTIME !Against AU!\n\"domain:sho.com\",\n\"domain:showtime.com\",\n\"domain:showtimeanytime.com\",\n# > encoreTVB ?TVB HK? !Against JP TVer!\n\"domain:encoretvb.com\",\n\"domain:bcbolt446c5271-a.akamaihd.net\",\n\"domain:videos-f.jwpsrv.com\",\n\"domain:content.jwplatform.com\",\n\"domain:edge.api.brightcove.com\",\n# > Funimation !Against AU/EU!\n\"domain:funimation.com\",\n# > Discovery+ !Against EU!\n\"domain:content-ause1-ur-discovery1.uplynk.com\",\n\"domain:disco-api.com\",\n\"domain:discoveryplus.com\",\n\"domain:x-default-stgec.uplynk.com\",\n\"domain:discovery.com\",\n\"domain:discoveryplus.co.uk\",\n\"domain:getblueshift.com\",\n\"domain:litix.io\",\n\"domain:mobile-collector.newrelic.com\",\n\"domain:discovery.uplynk.com\",\n# > Paramount+ !Against AU!\n\"domain:paramountplus.com\",\n\"domain:cbsi.live.ott.irdeto.com\",\n\"domain:cbsplaylistserver.aws.syncbak.com\",\n\"domain:cbsservice.aws.syncbak.com\",\n\"domain:link.theplatform.com\",\n\"domain:cbsaavideo.com\",\n\"domain:cbsi.com\",\n\"domain:cbsivideo.com\",\n\"domain:pplusstatic.com\",\n# > Peacock TV\n\"domain:peacocktv.com\",\n\"domain:peacock.com\",\n# > Popcornflix\n\"domain:popcornflix.com\",\n\"domain:popcornflix-prod.cloud.seachange.com\",\n# > Crunchyroll\n\"domain:c.evidon.com\",\n# > Directv Stream\n\"domain:atttvnow.com\",\n# > KBS American\n\"domain:kbs.co.kr\",\n# > KOCOWA\n\"domain:kocowa.com\",\n# > F1TV\n\"domain:f1prodlive.akamaized.net\",\n\"domain:formula1.com\",\n# > EU:Rakuten TV\n\"domain:rakuten.tv\",\n# > EU:Funimation !Against US/AU!\n\"domain:funimation.com\",\n# > EU:SkyShowTime\n\"domain:skyshowtimeuk.data.adobedc.net\",\n\"domain:skyshowtime.com\",\n\"domain:cssott.com\",\n\"domain:4ac1dd56e493354be504f063e4ae3440a13c6776.cws.conviva.com\",\n# > EU:HBO Max\n\"domain:max.com\",\n\"domain:cinemax.com\",\n\"domain:forthethrone.com\",\n\"domain:hbo.com\",\n\"domain:hbomax.com\",\n\"domain:hbomaxcdn.com\",\n\"domain:maxgo.com\",\n# > EuroSport\n\"domain:europe-fastly-mediashield-live-prod.cdn.h264.io\",\n\"domain:akamai.prod-live.h264.io\",\n\"domain:eurosport-dlvr-ott.akamaized.net\",\n\"domain:eu3-prod-images.disco-api.com\",\n\"domain:eu3-prod.disco-api.com\",\n\"domain:eurosportplayer.com\",\n\"domain:eurosport.com\",\n\"domain:eurosport.fr\",\n\"domain:eurosport.es\",\n\"domain:eurosport.ro\",\n\"domain:eurosport.io\",\n\"domain:eurosport.ru\",\n\"domain:media-shield.live.eurosport.map.fastly.net\",\n\"domain:eurosport-dlvr-ott-vod.akamaized.net\",\n# > ViaPlay\n\"domain:i-viaplay-com.akamaized.net\",\n\"domain:viaplay.com\",\n\"domain:viaplay.pl\",\n\"domain:mtg-api.com\",\n# > GB:Sky GO \",SkyGONZ\",\n\"domain:sky.com\",\n# > GB:BritBox !Against US/AU!\n\"domain:vod-dash-ntham-comm-live.akamaized.net\",\n\"domain:vod-dash-ntham-comm.live.cf.md.bbci.co.uk\",\n\"domain:vod-hls-ntham-comm-live.akamaized.net\",\n\"domain:vod-hls-ntham-comm.live.cf.md.bbci.co.uk\",\n\"domain:britbox.com\",\n\"domain:d2z3p34itxwaj7.cloudfront.net\",\n# > GB:ITV Hub\n\"domain:itvpnpmobile-a.akamaihd.net\",\n\"domain:itv.com\",\n\"domain:itvstatic.com\",\n# > GB:Channel 4 **\n\"domain:channel4.com\",\n# > GB:Channel 5 **\n\"domain:channel5.com\",\n# > GB:BBC\n\"domain:aod-dash-uk-live.akamaized.net\",\n\"domain:aod-hls-uk-live.akamaized.net\",\n\"domain:as-dash-uk-live.akamaized.net\",\n\"domain:as-hls-uk-live.akamaized.net\",\n\"domain:vod-dash-uk-live.akamaized.net\",\n\"domain:vod-dash-ww-live.akamaized.net\",\n\"domain:vod-hls-uk-live.akamaized.net\",\n\"domain:vod-sub-uk-live.akamaized.net\",\n\"domain:vod-thumb-uk-live.akamaized.net\",\n\"domain:vod-thumb-ww-live.akamaized.net\",\n\"domain:vs-cmaf-push-uk-live.akamaized.net\",\n\"domain:bbc\",\n\"domain:bbc.co\",\n\"domain:bbc.co.uk\",\n\"domain:bbc.com\",\n\"domain:bbc.in\",\n\"domain:bbc.net.uk\",\n\"domain:bbcchinese.com\",\n\"domain:bbcfmt.hs.llnwd.net\",\n\"domain:bbcfmt.s.llnwi.net\",\n\"domain:bbci.co\",\n\"domain:bbci.co.uk\",\n\"domain:bbcmedia.co.uk\",\n\"domain:bbcpersian.com\",\n\"domain:bbcverticals.com\",\n\"domain:bidi.net.uk\",\n# > GB:Discovery+ !Against AU!\n\"domain:content-ause1-ur-discovery1.uplynk.com\",\n\"domain:disco-api.com\",\n\"domain:discoveryplus.com\",\n\"domain:x-default-stgec.uplynk.com\",\n\"domain:discovery.com\",\n\"domain:discoveryplus.co.uk\",\n\"domain:getblueshift.com\",\n\"domain:litix.io\",\n\"domain:mobile-collector.newrelic.com\",\n\"domain:discovery.uplynk.com\",\n# > FR:Salto\n\"domain:salto.fr\",\n# > FR:Canal+\n\"domain:canalplus.com\",\n# > FR:Molotov\n\"domain:molotov.tv\",\n# > DE:Joyn\n\"domain:joyn.de\",\n# > DE:Sky\n\"domain:sky.de\",\n\"domain:edge.api.brightcove.com\",\n# > DE:ZDF\n\"domain:zdf.de\",\n# > NL:videoland\n\"domain:videoland.com\",\n# > NL:NPO\n\"domain:npo.nl\",\n# > RU:Amediateka\n\"domain:amediateka.ru\",\n# > UA:MEGOGO\n\"domain:megogo.net\",\n\"domain:vcdn.biz\",\n# > CH:Sky\n\"domain:sky.ch\",\n\"domain:zahs.tv\",\n# > TR:digiturkplay\n\"domain:digiturkplay.com\",\n\"domain:dt-int-gurme-hls.mncdn.com\",\n\"domain:dt-live-int.akamaized.net\",\n# > Now E \n\"domain:nowe.com\",\n\"domain:nowestatic.com\",\n# > Now TV\n\"domain:now.com\",\n# > Viu.TV\n#include Viu.com\n\"domain:viu.now.com\",\n\"domain:viu.tv\",\n# > MyTVSuper\n\"domain:mytvsuper.com\",\n\"domain:mytvsuperlimited.hb.omtrdc.net\",\n\"domain:mytvsuperlimited.sc.omtrdc.net\",\n\"domain:tvb.com\",\n# > HBO GO Asia\n\"domain:44wilhpljf.execute-api.ap-southeast-1.amazonaws.com\",\n\"domain:bcbolthboa-a.akamaihd.net\",\n\"domain:dai3fd1oh325y.cloudfront.net\",\n\"domain:hboasia1-i.akamaihd.net\",\n\"domain:hboasia2-i.akamaihd.net\",\n\"domain:hboasia3-i.akamaihd.net\",\n\"domain:hboasia4-i.akamaihd.net\",\n\"domain:hboasia5-i.akamaihd.net\",\n\"domain:hboasialive.akamaized.net\",\n\"domain:hbogoprod-vod.akamaized.net\",\n\"domain:hbolb.onwardsmg.com\",\n\"domain:hbounify-prod.evergent.com\",\n\"domain:hbogo.co.th\",\n\"domain:hbogoasia.com\",\n\"domain:hbogoasia.hk\",\n\"domain:hbogoasia.id\",\n\"domain:hbogoasia.ph\",\n\"domain:hbogoasia.sg\",\n\"domain:hbogoasia.tw\",\n# > HOY TV\n\"domain:hoy.tv\",\n# > BiliBili \n\"domain:bilibili.com\",\n# > Star+\n\"domain:starplus.com\",\n\"domain:starott.com\",\n\"domain:star.api.edge.bamgrid.com\",\n\"domain:star.connections.edge.bamgrid.com\",\n\"domain:star.content.edge.bamgrid.com\",\n\"domain:star.playback.edge.bamgrid.com\",\n# > HBO \n\"domain:cinemax.com\",\n\"domain:forthethrone.com\",\n\"domain:hbo.com\",\n\"domain:hbogo.com\",\n\"domain:hbomax.com\",\n\"domain:hbomaxcdn.com\",\n\"domain:hbonow.com\",\n\"domain:maxgo.com\",\n# > DirecTV\n\"domain:directvgo.com\",\n# > Funimation !Against US/EU/AU!\n\"domain:funimation.com\",\n\"domain:discoveryplus.in\",\n# > Wavve\n\"domain:wavve.com\",\n\"domain:pooq.co.kr\",\n# > Tving\n\"domain:tving.com\",\n# > Coupang Play\n\"domain:coupangplay.com\",\n# > Naver TV\n\"domain:naver.com\",\n\"domain:navercorp.com\",\n\"domain:pstatic.net\",\n\"domain:smartmediarep.com\",\n# > Afreeca TV\n\"domain:afreecatv.com\",\n# > KBS Domestic\n\"domain:kbs.co.kr\",\n# > Setanta Sports\n\"domain:setantasports.com\",\n\"domain:imggaming.com\",\n\"domain:diceplatform.com\",\n\"domain:dicelaboratory.com\",\n\"domain:pndsn.com\",\n\"domain:imggaming.s3-eu-west-1.amazonaws.com\",\n\"domain:ux1kpaebv0.execute-api.eu-west-1.amazonaws.com\",\n\"domain:1ok961aaca.execute-api.eu-west-1.amazonaws.com\",\n# > HBO GO Asia\n\"domain:44wilhpljf.execute-api.ap-southeast-1.amazonaws.com\",\n\"domain:bcbolthboa-a.akamaihd.net\",\n\"domain:dai3fd1oh325y.cloudfront.net\",\n\"domain:hboasia1-i.akamaihd.net\",\n\"domain:hboasia2-i.akamaihd.net\",\n\"domain:hboasia3-i.akamaihd.net\",\n\"domain:hboasia4-i.akamaihd.net\",\n\"domain:hboasia5-i.akamaihd.net\",\n\"domain:hboasialive.akamaized.net\",\n\"domain:hbogoprod-vod.akamaized.net\",\n\"domain:hbolb.onwardsmg.com\",\n\"domain:hbounify-prod.evergent.com\",\n\"domain:hbogo.co.th\",\n\"domain:hbogoasia.com\",\n\"domain:hbogoasia.hk\",\n\"domain:hbogoasia.id\",\n\"domain:hbogoasia.ph\",\n\"domain:hbogoasia.sg\",\n\"domain:hbogoasia.tw\",\n# > B-Global\n\"domain:bilibili.tv\",\n# > SG:meWATCH\n\"domain:mewatch.sg\",\n# > SG:StarHub\n\"domain:starhubgo.com\",\n\"domain:failoverstarhub.akamaized.net\",\n\"domain:scvm1sc0-ssm.anycast.nagra.com\",\n\"domain:starhubtvplus.com\",\n# > TH:TrueID \n\"domain:trueid.net\",\n# > TH:AIS Play\n\"domain:aisplay.ais.co.th\",\n\"domain:ais-vidnt.com\",\n# > ID:Vidio\n\"domain:geo-id-media-001-vidio-com.akamaized.net\",\n# > VN:MYTV\n\"domain:mytv.vn\",\n# > VN:Clip TV\n\"domain:cliptv.vn\",\n# > VN:Galaxy Play\n\"domain:glxplay.io\",\n# > VN:K+\n\"domain:solocoo.tv\",\n# > MY:sooka\n\"domain:sooka.my\",\n\"domain:kaltura.com\",\n\"domain:1fad96d91f4f519fc79753650a57dad992c44af2.cws.conviva.com\",\n# > IN:MXPlayer\n\"domain:mxplayer.in\",\n# > IN:Tata Play\n\"domain:tataplay.com\",\n# > UAE:shahid\n\"domain:mbc.net\",\n\"domain:npaw.com\",\n\"domain:shahid.net\",\n# > Openai\n\"domain:openai.com\",\n\"domain:chatgpt.com\",\n\"domain:oaistatic.com\",\n\"domain:oaiusercontent.com\","
	ss := strings.Split(stream, "# > ")
	type tmp struct {
		Domain []string
	}
	r := strings.NewReplacer(
		"\"", "",
		",", "",
	)
	out := make(map[string]tmp, len(ss))
	for _, v := range ss {
		s := strings.Split(v, "\n")
		if len(s) < 2 {
			continue
		}
		ds := make([]string, 0, len(s)-1)
		for _, d := range s[1:] {
			ds = append(ds, r.Replace(d))
		}
		out[s[0]] = tmp{
			Domain: ds,
		}
	}
	v, _ := json.Marshal(out)
	t.Log(string(v))
}
