version=1.00 scriptdef svtFilter{ url=s_url if @#hls_only@# !='true regex='(rtmp.*://) match s_url if v1 url=' endif endif play } macrodef svtHLSMedia { folder { matcher=\"url\":\"(http[^\"]+)\",\"bitrate\":\d+,\"playerType\":\"ios\" order=url type=empty prop=no_case,discard_duplicates media { matcher=BANDWIDTH=(\d+)\d###lcbr###3###rcbr###+.*?\n([^\n]+) order=name,url prop=matcher_dotall,append_name=Kbps,relative_url=path,name_separator=###0,name_index=0 } } } channel SVTPlay { img=http://www.svtplay.se/public/2012.53/images/svt-play.png var { disp_name=HLS Only var_name=hls_only default=true type=bool action=null } resolve { matcher=http://www.svtplay.se/(video/.*) action=resolved } resolve { matcher=(http://www.oppetarkiv.se/video/.*) action=resolved_open } resolve { matcher=http://www.svt.se/(wd\?.*) prop=append_url=&output=json&format=json,prepend_url=http://www.svt.se/ action=svt_klipp_resolved } resolve { matcher=(.*svt.se/.*) action=svt_klipp } folder { type=action action_name=svt_klipp folder { type=empty #