Changeset 41218


Ignore:
Timestamp:
11/20/17 16:38:34 (5 years ago)
Author:
obi
Message:

FIX

Location:
titan/mediathek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r41214 r41218  
    2222export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
    2323
     24
    2425if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    2526if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi
    26 #if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi
     27if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi
    2728
    2829wgetbin="wget -q -T2"
     
    7273hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | cut -d"." -f$hosterline`
    7374#echo $hoster
    74 
    75 debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    76 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    7775
    7876ecostream()
     
    237235{
    238236        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
    239         URL=`$curlbin "$INPUT" | sed 's/source:/\nsource:/' | grep ^source: | cut -d"'" -f2`
     237        URL=`$curlbin "$INPUT" | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2`
    240238        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
    241239        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
    242240}
     241
     242sport7()
     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
    243253
    244254directstream()
     
    296306                redirector|googlevideo|vodcloud|google) directstream "$INPUT";;
    297307                aliez) aliez $INPUT;;
     308                sport7) sport7 $INPUT;;
    298309        esac
    299310fi
  • titan/mediathek/localparser_secret/sportsondemand.sh

    r41216 r41218  
    788788                        fi
    789789                        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"
    791794
    792795                        PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
     
    802805                                piccount=`expr $piccount + 1`
    803806
    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"
    808812                                echo "$LINE" >> $TMP/$PARSER.$INPUT.$FROM.$FILENAME.list
    809813                        fi
     
    839843#               <iframe scrolling="no" frameborder=0 width=700 height=480 src="http://shstream.co/stream5/live5.php"></iframe>
    840844
     845hoster1()
     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}
    841861
    842862hoster()
Note: See TracChangeset for help on using the changeset viewer.