/, "", title)
sub(/<\/small><\/a><\/li>/, "", title)
split(title, a, "\[")
split(a[2], b, "\]")
split(b[1], a, " ")
part = a[2]
print title "#" SRC " " SRC " hoster " PARAM " " count "#http://atemio.dyndns.tv/mediathek/menu/" part ".jpg#" part ".jpg#" NAME "#111"
count=count+1
next
}
}
// { kz_parts=0
next
}
' >/tmp/tithek/$PARSER.list
echo "/tmp/tithek/$PARSER.list"
}
hoster()
{
i=`expr $PAGE \* 2`
data=`$curlbin -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies "$URL$PARAM" | grep "data-det=" | cut -d'"' -f4`
if [ ! -z "$data" ];then
id=`$curlbin -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies --header "Content-Type: application/json" -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $URL$PARAM http://kkiste.to/xhr/link/ | cut -d'"' -f$i`
fi
if [ -z "$id" ];then
id=`$curlbin -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies "$URL$PARAM" | grep "http://www.ecostream.tv/stream" | sed 's#http://www.ecostream.tv/stream/#\nlink=.#g' | cut -d"." -f2`
fi
echo "http://www.ecostream.tv/stream/$id.html"
}
tags()
{
$curlbin -o - ${URL}index/main/0/pc | sed -e 's/{DATA_MARKERS}/data=pc.XX/g' -e 's/{/{\n/g' -e 's/,/,\n/g' -e 's/\[/\[\n/g' -e 's/\}/\n\}/g' -e 's/\]/\n\]/g' | awk -v PARAM=$PARAM -v SRC=$SRC -v NAME=$NAME '
BEGIN { table = ""
}
/\"/ { m = 1
while (m == 1) {
s = $0
i = gsub("[\"]", "x", s)
m = i % 2
if (m == 1) {
getline l
$0 = $0 l
}
}
}
/^\{/ { next
}
/\[$/ { split($0, a, "\"")
table = a[2]
next
}
/^\}/ { next
}
/^\]/ { table = ""
next
}
{ if (table == PARAM) {
split($0, a, "\"")
title = a[2]
tag = title
gsub(/ /, "%20", tag)
print title "#" SRC " " SRC " videos index/tag/0/pc?tag=" tag "#http://atemio.dyndns.tv/mediathek/menu/" tag ".jpg#" tag ".jpg#" NAME "#0"
}
}
' >/tmp/tithek/$PARSER.list
echo "/tmp/tithek/$PARSER.list"
}
case $INPUT in
init) $INPUT;;
mainmenu) $INPUT;;
videos) $INPUT;;
parts) $INPUT;;
serien) $INPUT;;
hoster) $INPUT;;
tags) $INPUT;;
page) $INPUT;;
esac