version=0.80
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
}
folder {
url=http://www.svtplay.se/kanaler
type=empty
folder {
#data-jsonhref="/kanaler/svt1" data-channel="svt1" title="SVT1 |
matcher=data-thumbnail=\"([^\"]+)\" data-jsonhref=\"(/kanaler/[^\"]+)\" data-channel=\"[^\"]+\" title=\"([^\|]+) \|
order=thumb,url,name
url=http://www.svtplay.se/
prop=append_url=?output=json
macro=svtHLSMedia
}
}
folder {
name=Live
url=http://www.svtplay.se/?live=1
folder {
matcher=a href=\"(/video[^\"]+)\" class=\"[^\"]+\">.*?Abba dabba dooo
matcher=