#!/bin/bash # titannit box parser for burning series . /tmp/localhoster/hoster.sh SRC=$1 INPUT=$2 PARAM=$3 PARAM2=$4 URL="https://bs.to/" PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` NAME="burningseries" #rm -rf $TMP > /dev/null 2>&1 mkdir $TMP > /dev/null 2>&1 if [ `echo $SRC | grep ^"/mnt/parser" |wc -l` -gt 0 ];then TYPE="$SRC - Shell script" elif [ `echo $SRC | grep ^"/var/swap" | wc -l` -gt 0 ];then TYPE="Swap - Shell script" elif [ `echo $SRC | grep ^"/mnt/swapextensions" | wc -l` -gt 0 ];then TYPE="Mnt - Shell script" else TYPE="Flash - Shell script" fi init() { echo "Burning Series ($TYPE)#$SRC $SRC mainmenu#http://atemio.dyndns.tv/mediathek/menu/$PARSER.jpg#$PARSER.jpg#TiThek#0" } mainmenu() { echo "Genres#$SRC $SRC genres#http://atemio.dyndns.tv/mediathek/menu/serien.genre.jpg#serien.genre.jpg#$NAME#0" >/tmp/tithek/$PARSER.mainmenu.list echo "All Series#$SRC $SRC allseries#http://atemio.dyndns.tv/mediathek/menu/serien.jpg#serien.jpg#$NAME#0" >>/tmp/tithek/$PARSER.mainmenu.list echo "Search#$SRC $SRC search#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#0" >>/tmp/tithek/$PARSER.mainmenu.list echo "/tmp/tithek/$PARSER.mainmenu.list" } genres() { $curlbin -o - $URL"serie-genre" | awk -v SRC=$SRC -v NAME=$NAME ' BEGIN { in_genres = 0 } /
/ { in_genres = 1 next } // { i = index($0, "") + 14 j = index($0, "") - i title = substr($0, i, j) pic = tolower(title) print title "#" SRC " " SRC " series " title "#http://atemio.dyndns.tv/mediathek/menu/" pic ".jpg#" pic ".jpg#" NAME "#0" next } ' >/tmp/tithek/$PARSER.genres.list echo "/tmp/tithek/$PARSER.genres.list" } series() { $curlbin -o - $URL"serie-genre" | awk -v PARAM=$PARAM -v SRC=$SRC -v NAME=$NAME ' // { i = index($0, "") + 14 j = index($0, "") - i genre = substr($0, i, j) } /
  • ") - 1 k = i + j + 2 l = index(substr($0, k), "
  • ") - 1 title = substr($0, k, l) print title "#" SRC " " SRC " staffel " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#0" } next } ' >/tmp/tithek/$PARSER.series.list echo "/tmp/tithek/$PARSER.series.list" } allseries() { $curlbin -o - $URL"serie-alphabet" | awk -v PARAM=$PARAM -v SRC=$SRC -v NAME=$NAME ' // { i = index($0, "") + 14 j = index($0, "") - i genre = substr($0, i, j) } /
  • ") - 1 url = substr($0, i, j) k = i + j + 2 l = index(substr($0, k), "
  • ") - 1 title = substr($0, k, l) print title "#" SRC " " SRC " staffel " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#0" } next } ' >/tmp/tithek/$PARSER.allseries.list echo "/tmp/tithek/$PARSER.allseries.list" } staffel() { $curlbin -o - $URL$PARAM | awk -v PARAM=$PARAM -v SRC=$SRC -v NAME=$NAME ' BEGIN { in_class_clearfix = 0 } /