Changeset 40208
- Timestamp:
- 03/02/17 21:58:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localparser_secret/sportsondemand.sh
r40152 r40208 6 6 SRC=$1 7 7 INPUT=$2 8 FROM=$3 9 PAGE=$4 10 FILENAME=`echo $PAGE | tr '/' '.'` 11 if [ -z "$PAGE" ]; then 8 PAGE=$3 9 NEXT=$4 10 11 PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` 12 13 FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PAGE $NEXT" 14 FILENAME="`echo $FILENAME | sed -e 's/\&\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g'`" 15 PICNAME=`echo $FILENAME` 16 17 if [ -z "$FILENAME" ]; then 12 18 FILENAME=none 13 19 fi 14 20 15 21 URL=http://livetv.sx 16 PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`22 #PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` 17 23 NAME=Sports-On-Demand 18 24 … … 40 46 { 41 47 if [ -e /etc/.beta ];then 42 echo "Live Sports#$SRC $SRC livelist livede#http://atemio.dyndns.tv/mediathek/menu/livesports.jpg#livesports.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list48 echo "Live Sports#$SRC $SRC livelist de#http://atemio.dyndns.tv/mediathek/menu/livesports.jpg#livesports.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list 43 49 echo "Basketball#$SRC $SRC basketball#http://atemio.dyndns.tv/mediathek/menu/basketball.jpg#basketball.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 44 50 else … … 55 61 basketball() 56 62 { 57 echo "NBA (Latest)#$SRC $SRC videos latestenx/videotourney/3#http://atemio.dyndns.tv/mediathek/menu/nba.latest.jpg#nba.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list58 echo "NBA (Teams)#$SRC $SRC submenu teamsenx/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/nba.teams.jpg#nba.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list59 echo "NBA (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/nba.date.jpg#nba.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list60 61 echo "German Bundesliga (Latest)#$SRC $SRC videos latestenx/videotourney/421#http://atemio.dyndns.tv/mediathek/menu/german.bundesliga.latest.jpg#german.bundesliga.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list62 echo "German Bundesliga (Teams)#$SRC $SRC submenu teamsenx/leagueresults/421/#http://atemio.dyndns.tv/mediathek/menu/german.bundesliga.teams.jpg#german.bundesliga.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list63 echo "German Bundesliga (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/421/#http://atemio.dyndns.tv/mediathek/menu/german.bundesliga.date.jpg#german.bundesliga.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list64 65 echo "Italian Lega Basket (Latest)#$SRC $SRC videos latestenx/videotourney/668#http://atemio.dyndns.tv/mediathek/menu/italian.lega.basket.latest.jpg#italian.lega.basket.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list66 echo "Italian Lega Basket (Teams)#$SRC $SRC submenu teamsenx/leagueresults/668/#http://atemio.dyndns.tv/mediathek/menu/italian.lega.basket.teams.jpg#italian.lega.basket.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list67 echo "Italian Lega Basket (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/668/#http://atemio.dyndns.tv/mediathek/menu/italian.lega.basket.date.jpg#italian.lega.basket.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list68 69 echo "European Championship (Latest)#$SRC $SRC videos latestenx/videotourney/282#http://atemio.dyndns.tv/mediathek/menu/european.championship.latest.jpg#european.championship.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list70 echo "European Championship (Teams)#$SRC $SRC submenu teamsenx/leagueresults/282/#http://atemio.dyndns.tv/mediathek/menu/european.championship.teams.jpg#european.championship.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list71 echo "European Championship (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/282/#http://atemio.dyndns.tv/mediathek/menu/european.championship.date.jpg#european.championship.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list72 73 echo "Euroleague (Latest)#$SRC $SRC videos latestenx/videotourney/41#http://atemio.dyndns.tv/mediathek/menu/euroleague.latest.jpg#euroleague.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list74 echo "Euroleague (Teams)#$SRC $SRC submenu teamsenx/leagueresults/41/#http://atemio.dyndns.tv/mediathek/menu/euroleague.teams.jpg#euroleague.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list75 echo "Euroleague (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/41/#http://atemio.dyndns.tv/mediathek/menu/euroleague.date.jpg#euroleague.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list63 echo "NBA (Latest)#$SRC $SRC videos enx/videotourney/3#http://atemio.dyndns.tv/mediathek/menu/nba.latest.jpg#nba.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list 64 echo "NBA (Teams)#$SRC $SRC submenu enx/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/nba.teams.jpg#nba.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 65 echo "NBA (Sorted Date)#$SRC $SRC year enx/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/nba.date.jpg#nba.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 66 67 echo "German Bundesliga (Latest)#$SRC $SRC videos enx/videotourney/421#http://atemio.dyndns.tv/mediathek/menu/german.bundesliga.latest.jpg#german.bundesliga.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 68 echo "German Bundesliga (Teams)#$SRC $SRC submenu enx/leagueresults/421/#http://atemio.dyndns.tv/mediathek/menu/german.bundesliga.teams.jpg#german.bundesliga.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 69 echo "German Bundesliga (Sorted Date)#$SRC $SRC year enx/leagueresults/421/#http://atemio.dyndns.tv/mediathek/menu/german.bundesliga.date.jpg#german.bundesliga.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 70 71 echo "Italian Lega Basket (Latest)#$SRC $SRC videos enx/videotourney/668#http://atemio.dyndns.tv/mediathek/menu/italian.lega.basket.latest.jpg#italian.lega.basket.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 72 echo "Italian Lega Basket (Teams)#$SRC $SRC submenu enx/leagueresults/668/#http://atemio.dyndns.tv/mediathek/menu/italian.lega.basket.teams.jpg#italian.lega.basket.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 73 echo "Italian Lega Basket (Sorted Date)#$SRC $SRC year enx/leagueresults/668/#http://atemio.dyndns.tv/mediathek/menu/italian.lega.basket.date.jpg#italian.lega.basket.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 74 75 echo "European Championship (Latest)#$SRC $SRC videos enx/videotourney/282#http://atemio.dyndns.tv/mediathek/menu/european.championship.latest.jpg#european.championship.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 76 echo "European Championship (Teams)#$SRC $SRC submenu enx/leagueresults/282/#http://atemio.dyndns.tv/mediathek/menu/european.championship.teams.jpg#european.championship.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 77 echo "European Championship (Sorted Date)#$SRC $SRC year enx/leagueresults/282/#http://atemio.dyndns.tv/mediathek/menu/european.championship.date.jpg#european.championship.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 78 79 echo "Euroleague (Latest)#$SRC $SRC videos enx/videotourney/41#http://atemio.dyndns.tv/mediathek/menu/euroleague.latest.jpg#euroleague.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 80 echo "Euroleague (Teams)#$SRC $SRC submenu enx/leagueresults/41/#http://atemio.dyndns.tv/mediathek/menu/euroleague.teams.jpg#euroleague.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 81 echo "Euroleague (Sorted Date)#$SRC $SRC year enx/leagueresults/41/#http://atemio.dyndns.tv/mediathek/menu/euroleague.date.jpg#euroleague.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 76 82 77 83 echo "$TMP/$PARSER.$INPUT.list" … … 80 86 football() 81 87 { 82 echo "NFL (Latest)#$SRC $SRC videos latestenx/videotourney/142#http://atemio.dyndns.tv/mediathek/menu/nfl.latest.jpg#nfl.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list83 echo "NFL (Teams)#$SRC $SRC submenu teamsenx/leagueresults/142/#http://atemio.dyndns.tv/mediathek/menu/nfl.teams.jpg#nfl.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list84 echo "NFL (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/142/#http://atemio.dyndns.tv/mediathek/menu/nfl.date.jpg#nfl.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list88 echo "NFL (Latest)#$SRC $SRC videos enx/videotourney/142#http://atemio.dyndns.tv/mediathek/menu/nfl.latest.jpg#nfl.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list 89 echo "NFL (Teams)#$SRC $SRC submenu enx/leagueresults/142/#http://atemio.dyndns.tv/mediathek/menu/nfl.teams.jpg#nfl.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 90 echo "NFL (Sorted Date)#$SRC $SRC year enx/leagueresults/142/#http://atemio.dyndns.tv/mediathek/menu/nfl.date.jpg#nfl.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 85 91 echo "$TMP/$PARSER.$INPUT.list" 86 92 } … … 89 95 handball() 90 96 { 91 echo "Women. Champions League (Latest)#$SRC $SRC videos latestenx/videotourney/1249#http://atemio.dyndns.tv/mediathek/menu/women.champions.league.latest.jpg#women.champions.league.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list92 echo "Women. Champions League (Teams)#$SRC $SRC submenu teamsenx/leagueresults/1249/#http://atemio.dyndns.tv/mediathek/menu/women.champions.league.teams.jpg#women.champions.league.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list93 echo "Women. Champions League (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/1249/#http://atemio.dyndns.tv/mediathek/menu/women.champions.league.date.jpg#women.champions.league.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list97 echo "Women. Champions League (Latest)#$SRC $SRC videos enx/videotourney/1249#http://atemio.dyndns.tv/mediathek/menu/women.champions.league.latest.jpg#women.champions.league.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list 98 echo "Women. Champions League (Teams)#$SRC $SRC submenu enx/leagueresults/1249/#http://atemio.dyndns.tv/mediathek/menu/women.champions.league.teams.jpg#women.champions.league.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 99 echo "Women. Champions League (Sorted Date)#$SRC $SRC year enx/leagueresults/1249/#http://atemio.dyndns.tv/mediathek/menu/women.champions.league.date.jpg#women.champions.league.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 94 100 echo "$TMP/$PARSER.$INPUT.list" 95 101 } … … 97 103 icehockey() 98 104 { 99 echo "NHL (Latest)#$SRC $SRC videos latestenx/videotourney/2#http://atemio.dyndns.tv/mediathek/menu/nhl.latest.jpg#nhl.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list100 echo "NHL (Teams)#$SRC $SRC submenu teamsenx/leagueresults/2/#http://atemio.dyndns.tv/mediathek/menu/nhl.teams.jpg#nhl.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list101 echo "NHL (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/2/#http://atemio.dyndns.tv/mediathek/menu/nhl.date.jpg#nhl.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list102 103 echo "Champions League (Latest)#$SRC $SRC videos latestenx/videotourney/191#http://atemio.dyndns.tv/mediathek/menu/champions.league.latest.jpg#champions.league.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list104 echo "Champions League (Teams)#$SRC $SRC submenu teamsenx/leagueresults/191/#http://atemio.dyndns.tv/mediathek/menu/champions.league.teams.jpg#champions.league.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list105 echo "Champions League (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/191/#http://atemio.dyndns.tv/mediathek/menu/champions.league.date.jpg#champions.league.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list105 echo "NHL (Latest)#$SRC $SRC videos enx/videotourney/2#http://atemio.dyndns.tv/mediathek/menu/nhl.latest.jpg#nhl.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list 106 echo "NHL (Teams)#$SRC $SRC submenu enx/leagueresults/2/#http://atemio.dyndns.tv/mediathek/menu/nhl.teams.jpg#nhl.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 107 echo "NHL (Sorted Date)#$SRC $SRC year enx/leagueresults/2/#http://atemio.dyndns.tv/mediathek/menu/nhl.date.jpg#nhl.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 108 109 echo "Champions League (Latest)#$SRC $SRC videos enx/videotourney/191#http://atemio.dyndns.tv/mediathek/menu/champions.league.latest.jpg#champions.league.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 110 echo "Champions League (Teams)#$SRC $SRC submenu enx/leagueresults/191/#http://atemio.dyndns.tv/mediathek/menu/champions.league.teams.jpg#champions.league.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 111 echo "Champions League (Sorted Date)#$SRC $SRC year enx/leagueresults/191/#http://atemio.dyndns.tv/mediathek/menu/champions.league.date.jpg#champions.league.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 106 112 107 113 echo "$TMP/$PARSER.$INPUT.list" … … 110 116 fussball() 111 117 { 112 echo "1. Bundesliga (Latest)#$SRC $SRC videos latestenx/videotourney/36#http://atemio.dyndns.tv/mediathek/menu/dfb1.latest.jpg#dfb1.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list113 echo "1. Bundesliga (Teams)#$SRC $SRC submenu teamsenx/leagueresults/36/#http://atemio.dyndns.tv/mediathek/menu/dfb1.teams.jpg#dfb1.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list114 echo "1. Bundesliga (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/36/#http://atemio.dyndns.tv/mediathek/menu/dfb1.date.jpg#dfb1.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list115 116 echo "2. Bundesliga (Latest)#$SRC $SRC videos latestenx/videotourney/31#http://atemio.dyndns.tv/mediathek/menu/dfb2.latest.jpg#dfb2.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list117 echo "2. Bundesliga (Teams)#$SRC $SRC submenu teamsenx/leagueresults/31/#http://atemio.dyndns.tv/mediathek/menu/dfb2.teams.jpg#dfb2.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list118 echo "2. Bundesliga (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/31/#http://atemio.dyndns.tv/mediathek/menu/dfb2.date.jpg#dfb2.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list119 120 echo "3. Bundesliga (Latest)#$SRC $SRC videos latestenx/videotourney/135#http://atemio.dyndns.tv/mediathek/menu/dfb3.latest.jpg#dfb3.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list121 echo "3. Bundesliga (Teams)#$SRC $SRC submenu teamsenx/leagueresults/135/#http://atemio.dyndns.tv/mediathek/menu/dfb3.teams.jpg#dfb3.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list122 echo "3. Bundesliga (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/135/#http://atemio.dyndns.tv/mediathek/menu/dfb3.date.jpg#dfb3.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list123 124 echo "Italian Serie A (Latest)#$SRC $SRC videos latestenx/videotourney/11#http://atemio.dyndns.tv/mediathek/menu/isa.latest.jpg#isa.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list125 echo "Italian Serie A (Teams)#$SRC $SRC submenu teamsenx/leagueresults/11/#http://atemio.dyndns.tv/mediathek/menu/isa.teams.jpg#isa.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list126 echo "Italian Serie A (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/11/#http://atemio.dyndns.tv/mediathek/menu/isa.date.jpg#isa.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list127 128 echo "English Premier League (Latest)#$SRC $SRC videos latestenx/videotourney/1#http://atemio.dyndns.tv/mediathek/menu/epl.latest.jpg#epl.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list129 echo "English Premier League (Teams)#$SRC $SRC submenu teamsenx/leagueresults/1/#http://atemio.dyndns.tv/mediathek/menu/epl.teams.jpg#epl.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list130 echo "English Premier League (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/1/#http://atemio.dyndns.tv/mediathek/menu/epl.date.jpg#epl.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list131 132 echo "Europa League (Latest)#$SRC $SRC videos latestenx/videotourney/265#http://atemio.dyndns.tv/mediathek/menu/el.latest.jpg#el.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list133 echo "Europa League (Teams)#$SRC $SRC submenu teamsenx/leagueresults/265/#http://atemio.dyndns.tv/mediathek/menu/el.teams.jpg#el.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list134 echo "Europa League (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/265/#http://atemio.dyndns.tv/mediathek/menu/el.date.jpg#el.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list135 136 echo "Champions League (Latest)#$SRC $SRC videos latestenx/videotourney/7#http://atemio.dyndns.tv/mediathek/menu/champions.league.latest.jpg#champions.league.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list137 echo "Champions League (Teams)#$SRC $SRC submenu teamsenx/leagueresults/7/#http://atemio.dyndns.tv/mediathek/menu/champions.league.teams.jpg#champions.league.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list138 echo "Champions League (Sorted Date)#$SRC $SRC year teamsenx/leagueresults/7/#http://atemio.dyndns.tv/mediathek/menu/champions.league.date.jpg#champions.league.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list118 echo "1. Bundesliga (Latest)#$SRC $SRC videos enx/videotourney/36#http://atemio.dyndns.tv/mediathek/menu/dfb1.latest.jpg#dfb1.latest.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list 119 echo "1. Bundesliga (Teams)#$SRC $SRC submenu enx/leagueresults/36/#http://atemio.dyndns.tv/mediathek/menu/dfb1.teams.jpg#dfb1.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 120 echo "1. Bundesliga (Sorted Date)#$SRC $SRC year enx/leagueresults/36/#http://atemio.dyndns.tv/mediathek/menu/dfb1.date.jpg#dfb1.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 121 122 echo "2. Bundesliga (Latest)#$SRC $SRC videos enx/videotourney/31#http://atemio.dyndns.tv/mediathek/menu/dfb2.latest.jpg#dfb2.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 123 echo "2. Bundesliga (Teams)#$SRC $SRC submenu enx/leagueresults/31/#http://atemio.dyndns.tv/mediathek/menu/dfb2.teams.jpg#dfb2.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 124 echo "2. Bundesliga (Sorted Date)#$SRC $SRC year enx/leagueresults/31/#http://atemio.dyndns.tv/mediathek/menu/dfb2.date.jpg#dfb2.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 125 126 echo "3. Bundesliga (Latest)#$SRC $SRC videos enx/videotourney/135#http://atemio.dyndns.tv/mediathek/menu/dfb3.latest.jpg#dfb3.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 127 echo "3. Bundesliga (Teams)#$SRC $SRC submenu enx/leagueresults/135/#http://atemio.dyndns.tv/mediathek/menu/dfb3.teams.jpg#dfb3.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 128 echo "3. Bundesliga (Sorted Date)#$SRC $SRC year enx/leagueresults/135/#http://atemio.dyndns.tv/mediathek/menu/dfb3.date.jpg#dfb3.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 129 130 echo "Italian Serie A (Latest)#$SRC $SRC videos enx/videotourney/11#http://atemio.dyndns.tv/mediathek/menu/isa.latest.jpg#isa.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 131 echo "Italian Serie A (Teams)#$SRC $SRC submenu enx/leagueresults/11/#http://atemio.dyndns.tv/mediathek/menu/isa.teams.jpg#isa.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 132 echo "Italian Serie A (Sorted Date)#$SRC $SRC year enx/leagueresults/11/#http://atemio.dyndns.tv/mediathek/menu/isa.date.jpg#isa.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 133 134 echo "English Premier League (Latest)#$SRC $SRC videos enx/videotourney/1#http://atemio.dyndns.tv/mediathek/menu/epl.latest.jpg#epl.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 135 echo "English Premier League (Teams)#$SRC $SRC submenu enx/leagueresults/1/#http://atemio.dyndns.tv/mediathek/menu/epl.teams.jpg#epl.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 136 echo "English Premier League (Sorted Date)#$SRC $SRC year enx/leagueresults/1/#http://atemio.dyndns.tv/mediathek/menu/epl.date.jpg#epl.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 137 138 echo "Europa League (Latest)#$SRC $SRC videos enx/videotourney/265#http://atemio.dyndns.tv/mediathek/menu/el.latest.jpg#el.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 139 echo "Europa League (Teams)#$SRC $SRC submenu enx/leagueresults/265/#http://atemio.dyndns.tv/mediathek/menu/el.teams.jpg#el.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 140 echo "Europa League (Sorted Date)#$SRC $SRC year enx/leagueresults/265/#http://atemio.dyndns.tv/mediathek/menu/el.date.jpg#el.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 141 142 echo "Champions League (Latest)#$SRC $SRC videos enx/videotourney/7#http://atemio.dyndns.tv/mediathek/menu/champions.league.latest.jpg#champions.league.latest.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 143 echo "Champions League (Teams)#$SRC $SRC submenu enx/leagueresults/7/#http://atemio.dyndns.tv/mediathek/menu/champions.league.teams.jpg#champions.league.teams.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 144 echo "Champions League (Sorted Date)#$SRC $SRC year enx/leagueresults/7/#http://atemio.dyndns.tv/mediathek/menu/champions.league.date.jpg#champions.league.date.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list 139 145 140 146 echo "$TMP/$PARSER.$INPUT.list" … … 151 157 until [ "$i" -gt "$tagcount" ] 152 158 do 153 echo "$i#$SRC $SRC month yearenx/videotourney/3/$i#http://atemio.dyndns.tv/mediathek/menu/$i.jpg#$i.jpg#$NAME#0" | sort -r >> $TMP/$PARSER.$INPUT.list159 echo "$i#$SRC $SRC month enx/videotourney/3/$i#http://atemio.dyndns.tv/mediathek/menu/$i.jpg#$i.jpg#$NAME#0" | sort -r >> $TMP/$PARSER.$INPUT.list 154 160 i=`expr $i + 1` 155 161 done … … 175 181 until [ "$i" -gt "$tagcount" ] 176 182 do 177 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.list183 echo "$i / $usedyear#$SRC $SRC videos $PAGE$i#http://atemio.dyndns.tv/mediathek/menu/$i.jpg#$i.jpg#$NAME#0" | sort -r >> $TMP/$PARSER.$INPUT.list 178 184 i=`expr $i + 1` 179 185 done … … 185 191 videos() 186 192 { 187 if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then 193 if [ ! -e "$TMP/$FILENAME.list" ]; then 194 $curlbin -o - $URL/$PAGE | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME \ 195 ' 196 # 1. BEGIN variable setzen 197 BEGIN 198 { 199 # 2. setzt suchvariable auf 0 vor dem start 200 suche = 0 201 newpage = "" 202 piccount = 0 203 } 204 # 3. eindeutige zeile vor ersten treffer 205 /<table width=\"100%\" height=27 cellpadding=4 cellspacing=0>/ \ 206 { 207 # 4. suche erlauben ab dieser zeile 208 suche = 1 209 # 5. in naechste zeile springen 210 next 211 } 212 # 12. nextpage zeile 213 # <span class="date">3:30</span> 214 /<span class=\"date\">/ \ 215 { 216 if (suche == 1 && newpage == "") 217 { 218 i = index($0, "<span class=\"date\">") + 19 219 j = index($0, "</span>") - i 220 date = substr($0, i, j) 221 next 222 } 223 } 224 # <a href="/enx/eventinfo/502387_houston_la_clippers/"><font color="#949494"><b>122:103</b></font></a> 225 /<a href=\"\/enx\/eventinfo\// \ 226 { 227 if (suche == 1) 228 { 229 i = index($0, "href=\"") + 6 230 j = index(substr($0, i), "\"") - 1 231 newpage = substr($0, i, j) 232 233 i = index($0, "<b>") + 3 234 j = index($0, "</b>") - i 235 score = substr($0, i, j) 236 237 # 15. in naechste zeile springen 238 next 239 } 240 } 241 # <b>Brooklyn Nets – Sacramento</b> 242 /<b>/ \ 243 { 244 if (suche == 1 && newpage != "") 245 { 246 i = index($0, "<b>") + 3 247 j = index($0, "</b>") - i 248 title = substr($0, i, j) 249 gsub("–", "-", title, title) 250 251 next 252 } 253 } 254 # <a class="small poplink" data-pop="ddr_2017-03-01_407_445" href="#">Full Match Record <img src="//cdn.livetvcdn.net/img/dd.gif"></a> 255 # <tr><td><nobr><a href="/enx/showvideo/437361/"><img src="//cdn.livetvcdn.net/img/v.gif"></a> <a class="small" href="/enx/showvideo/437361/">Full match record</a></nobr></td></tr> 256 # />Full match record<\/a>/ \ 257 />Full Match Record </ \ 258 { 259 if (suche == 1) 260 { 261 full = 1 262 next 263 } 264 } 265 #<div style="display: none;" class="tif" 266 #<tr><td></td></tr> 267 /<div style=\"display: none;\" class=\"tif\"/ \ 268 { 269 if (title != "") 270 { 271 if (score != "") 272 { 273 title = title " (" score ")" 274 } 275 if (date != "") 276 { 277 title = title " (" date ")" 278 } 279 if (full == 1) 280 { 281 title = title " (Full)" 282 } 283 284 if ( pic == "" ) 285 { 286 pic = "http://atemio.dyndns.tv/mediathek/menu/default.jpg" 287 } 288 289 piccount += 1 290 # 25. in naechste zeile springen 291 # 26. \x27 = single quotes 292 print title "#" SRC " " SRC " playsrc \x27" newpage "\x27#" pic "#" PICNAME "." piccount ".jpg#" NAME "#0" 293 score = "" 294 date = "" 295 full = 0 296 newpage = "" 297 suche = 0 298 } 299 next 300 } 301 # 29. schreibe alles in die list datei 302 ' >$TMP/$FILENAME.list 303 fi 304 # 30. gebe titan den list namen mit pfad zurueck 305 echo "$TMP/$FILENAME.list" 306 } 307 308 videosold() 309 { 310 # if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then 188 311 piccount=0 189 312 $wgetbin $URL/$PAGE -O $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.1 … … 227 350 piccount=`expr $piccount + 1` 228 351 229 URL="$SRC $SRC playsrc $ INPUT $URL"352 URL="$SRC $SRC playsrc $URL" 230 353 231 354 LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#0" … … 235 358 done 3<$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 236 359 rm $TMP/cache.* > /dev/null 2>&1 237 fi360 # fi 238 361 echo "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" 239 362 } … … 259 382 piccount=`expr $piccount + 1` 260 383 # LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#98" 261 URL="$SRC $SRC play $ INPUT $URL"384 URL="$SRC $SRC play $URL" 262 385 LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#111" 263 386 … … 386 509 # https://www.youtube.com/embed/17NnIkv2C3k 387 510 388 # URL="$SRC $SRC hoster $ INPUT $URL"511 # URL="$SRC $SRC hoster $URL" 389 512 URL="gethoster2 $URL" 390 513 … … 447 570 448 571 while read -u 3 ROUND; do 449 URL="$SRC $SRC videos $INPUT`echo $ROUND | cut -d'"' -f2 | sed 's!/calendar/!/video/!g'`"572 URL="$SRC $SRC videos `echo $ROUND | cut -d'"' -f2 | sed 's!/calendar/!/video/!g'`" 450 573 TITLE=`echo $ROUND | sed 's!<b>!\ntitle=<!g' | grep ^title= | cut -d'<' -f2` 451 574 PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg" … … 505 628 piccount=`expr $piccount + 1` 506 629 507 URL="$SRC $SRC hosterlist $INPUT'$URL'"630 URL="$SRC $SRC hosterlist '$URL'" 508 631 509 632 LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#0" … … 545 668 piccount=`expr $piccount + 1` 546 669 547 URL="$SRC $SRC hoster $INPUT'$URL'"670 URL="$SRC $SRC hoster '$URL'" 548 671 # URL="$SRC $SRC findhoster $FROM '$URL'" 549 672 … … 611 734 hoster) $INPUT;; 612 735 videos) $INPUT;; 736 videosold) $INPUT;; 613 737 play) $INPUT;; 614 738 playsrc) $INPUT;;
Note: See TracChangeset
for help on using the changeset viewer.