Changeset 41218
- Timestamp:
- 11/20/17 16:38:34 (5 years ago)
- Location:
- titan/mediathek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r41214 r41218 22 22 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib 23 23 24 24 25 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi 25 26 if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi 26 #if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi27 if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi 27 28 28 29 wgetbin="wget -q -T2" … … 72 73 hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | cut -d"." -f$hosterline` 73 74 #echo $hoster 74 75 debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`76 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi77 75 78 76 ecostream() … … 237 235 { 238 236 #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480" 239 URL=`$curlbin "$INPUT" | sed 's/source:/\n source:/' | grep ^source:| cut -d"'" -f2`237 URL=`$curlbin "$INPUT" | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2` 240 238 REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'` 241 239 echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT" 242 240 } 241 242 sport7() 243 { 244 #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html 245 #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8'; 246 247 URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2` 248 REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'` 249 sed 's/#HttpOnly_//g' -i /mnt/network/cookies 250 echo "$URL|Referer=$REFERER&X-f=95.91.79.87&User-Agent=$USERAGENT" 251 } 252 243 253 244 254 directstream() … … 296 306 redirector|googlevideo|vodcloud|google) directstream "$INPUT";; 297 307 aliez) aliez $INPUT;; 308 sport7) sport7 $INPUT;; 298 309 esac 299 310 fi -
titan/mediathek/localparser_secret/sportsondemand.sh
r41216 r41218 788 788 fi 789 789 TITLE="WEB STREAM $count" 790 EXTRA="`echo $ROUND | sed 's!http://cdn.livetvcdn.net/webplayer.php?t=!!'`" 790 # EXTRA="`echo $ROUND | sed 's!http://cdn.livetvcdn.net/webplayer.php?t=!!'`" 791 TMPURL=`hoster1 "$URL"` 792 EXTRA="$TMPURL" 793 URL="$TMPURL" 791 794 792 795 PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg" … … 802 805 piccount=`expr $piccount + 1` 803 806 804 URL="$SRC $SRC hoster '$URL'" 805 # URL="$SRC $SRC findhoster $FROM '$URL'" 806 807 LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#111" 807 # URL="$SRC $SRC hoster '$URL'" 808 ## URL="$SRC $SRC findhoster $FROM '$URL'" 809 810 # LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#111" 811 LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#14" 808 812 echo "$LINE" >> $TMP/$PARSER.$INPUT.$FROM.$FILENAME.list 809 813 fi … … 839 843 # <iframe scrolling="no" frameborder=0 width=700 height=480 src="http://shstream.co/stream5/live5.php"></iframe> 840 844 845 hoster1() 846 { 847 # rm $TMP/cache.* > /dev/null 2>&1 848 rm $TMP/cache.$PARSER.$INPUT.$FROM.1 > /dev/null 2>&1 849 850 $curlbin -o $TMP/cache.$PARSER.$INPUT.$FROM.1 ${1} 851 URL=`zcat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'` 852 if [ -z "$URL" ];then 853 URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'` 854 fi 855 if [ -z "$URL" ];then 856 URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep "text/javascript" | grep -v jQuery | sed -nr 's/.*src="([^"]+)".*/\1/p'` 857 fi 858 859 echo $URL 860 } 841 861 842 862 hoster()
Note: See TracChangeset
for help on using the changeset viewer.