Ignore:
Timestamp:
02/10/17 21:47:28 (5 years ago)
Author:
obi
Message:

tithek sportsondemand add sorted by date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/sportsondemand.sh

    r39983 r39984  
    6161        echo "Basketball - NBA (Latest)#$SRC $SRC videos latest enx/videotourney/3#http://atemio.dyndns.tv/mediathek/menu/nbaondemand.latest.jpg#nbaondemand.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    6262        echo "Basketball - NBA (Teams)#$SRC $SRC submenu teams enx/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/nbaondemand.teams.jpg#nbaondemand.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     63        echo "Basketball - NBA (Sorted Date)#$SRC $SRC year teams enx/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/nbaondemand.date.jpg#nbaondemand.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    6364        echo "$TMP/$PARSER.$INPUT.list"
    6465}
     
    6869        echo "Ice Hockey - NHL (Latest)#$SRC $SRC videos latest enx/videotourney/2#http://atemio.dyndns.tv/mediathek/menu/nhlondemand.latest.jpg#nhlondemand.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    6970        echo "Ice Hockey - NHL (Teams)#$SRC $SRC submenu teams enx/leagueresults/2/#http://atemio.dyndns.tv/mediathek/menu/nhlondemand.teams.jpg#nhlondemand.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     71        echo "Ice Hockey - NHL (Sorted Date)#$SRC $SRC submenu teams enx/leagueresults/2/#http://atemio.dyndns.tv/mediathek/menu/nhlondemand.date.jpg#nhlondemand.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    7072        echo "$TMP/$PARSER.$INPUT.list"
    7173}
     
    7577        echo "Fussball - Italian Serie A (Latest)#$SRC $SRC videos latest enx/videotourney/11#http://atemio.dyndns.tv/mediathek/menu/isaondemand.latest.jpg#isaondemand.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    7678        echo "Fussball - Italian Serie A (Teams)#$SRC $SRC submenu teams enx/leagueresults/11/#http://atemio.dyndns.tv/mediathek/menu/isaondemand.teams.jpg#isaondemand.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     79        echo "Fussball - Italian Serie A (Sorted Date)#$SRC $SRC submenu teams enx/leagueresults/11/#http://atemio.dyndns.tv/mediathek/menu/isaondemand.date.jpg#isaondemand.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    7780        echo "$TMP/$PARSER.$INPUT.list"
    7881}
     
    8285        echo "Fussball - 1. Bundesliga (Latest)#$SRC $SRC videos latest enx/videotourney/36#http://atemio.dyndns.tv/mediathek/menu/dfbondemand.latest.jpg#dfbondemand.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    8386        echo "Fussball - 1. Bundesliga (Teams)#$SRC $SRC submenu teams enx/leagueresults/36/#http://atemio.dyndns.tv/mediathek/menu/dfbondemand.teams.jpg#dfbondemand.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     87        echo "Fussball - 1. Bundesliga (Sorted Date)#$SRC $SRC submenu teams enx/leagueresults/36/#http://atemio.dyndns.tv/mediathek/menu/dfbondemand.date.jpg#dfbondemand.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     88
    8489        echo "Fussball - 2. Bundesliga (Latest)#$SRC $SRC videos latest enx/videotourney/31#http://atemio.dyndns.tv/mediathek/menu/dfbondemand2.latest.jpg#dfbondemand2.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    8590        echo "Fussball - 2. Bundesliga (Teams)#$SRC $SRC submenu teams enx/leagueresults/31/#http://atemio.dyndns.tv/mediathek/menu/dfbondemand2.teams.jpg#dfbondemand2.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     91        echo "Fussball - 2. Bundesliga (Sorted Date)#$SRC $SRC submenu teams enx/leagueresults/31/#http://atemio.dyndns.tv/mediathek/menu/dfbondemand2.date.jpg#dfbondemand2.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     92
    8693        echo "Fussball - 3. Bundesliga (Latest)#$SRC $SRC videos latest enx/videotourney/135#http://atemio.dyndns.tv/mediathek/menu/dfbondemand3.latest.jpg#dfbondemand3.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    8794        echo "Fussball - 3. Bundesliga (Teams)#$SRC $SRC submenu teams enx/leagueresults/135/#http://atemio.dyndns.tv/mediathek/menu/dfbondemand3.teams.jpg#dfbondemand3.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     95        echo "Fussball - 3. Bundesliga (Sorted Date)#$SRC $SRC submenu teams enx/leagueresults/135/#http://atemio.dyndns.tv/mediathek/menu/dfbondemand3.date.jpg#dfbondemand3.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     96
    8897        echo "$TMP/$PARSER.$INPUT.list"
    8998}
     
    93102        echo "Fussball - English Premier League (Latest)#$SRC $SRC videos latest enx/videotourney/1#http://atemio.dyndns.tv/mediathek/menu/eplondemand.latest.jpg#eplondemand.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    94103        echo "Fussball - English Premier League (Teams)#$SRC $SRC submenu teams enx/leagueresults/1/#http://atemio.dyndns.tv/mediathek/menu/eplondemand.teams.jpg#eplondemand.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     104        echo "Fussball - English Premier League (Sorted Date)#$SRC $SRC submenu teams enx/leagueresults/1/#http://atemio.dyndns.tv/mediathek/menu/eplondemand.date.jpg#eplondemand.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     105        echo "$TMP/$PARSER.$INPUT.list"
     106}
     107
     108#http://livetv.sx/enx/videotourney/3/201412/
     109
     110year()
     111{
     112        rm $TMP/$PARSER.$INPUT.list > /dev/null 2>&1
     113
     114        if [ ! -e "/tmp/tithek/$PARSER.$INPUT.list" ]; then
     115                tags=""
     116                tagcount=`date +"%Y"`
     117                i=2008
     118                until [ "$i" -gt "$tagcount" ]
     119                do
     120                echo "$i#$SRC $SRC month year enx/videotourney/3/$i#http://atemio.dyndns.tv/mediathek/menu/$i.jpg#$i.jpg#$NAME#0" | sort -r >> $TMP/$PARSER.$INPUT.list
     121                i=`expr $i + 1`
     122                done
     123        fi
     124
     125        echo "$TMP/$PARSER.$INPUT.list"
     126}
     127
     128month()
     129{
     130        rm $TMP/$PARSER.$INPUT.list > /dev/null 2>&1
     131
     132        if [ ! -e "/tmp/tithek/$PARSER.$INPUT.list" ]; then
     133                tags=""
     134                usedyear=`echo $PAGE | tr '/' '\n' | tail -n1`
     135                curyear=`date +"%Y"`
     136                if [ "$usedyear" == "$curyear" ];then
     137                        tagcount=`date +"%m"`
     138                else
     139                        tagcount=12
     140                fi
     141                i=1
     142                until [ "$i" -gt "$tagcount" ]
     143                do
     144                echo "$i / $usedyear#$SRC $SRC videos latest $PAGE$i#http://atemio.dyndns.tv/mediathek/menu/$i.jpg#$i.jpg#$NAME#0" | sort -r >> $TMP/$PARSER.$INPUT.list
     145                i=`expr $i + 1`
     146                done
     147        fi
     148
    95149        echo "$TMP/$PARSER.$INPUT.list"
    96150}
     
    504558        playsrc) $INPUT;;
    505559        submenu) $INPUT;;
     560        month) $INPUT;;
     561        year) $INPUT;;
    506562esac
Note: See TracChangeset for help on using the changeset viewer.