Ignore:
Timestamp:
Nov 20, 2017, 4:38:34 PM (4 years ago)
Author:
obi
Message:

FIX

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.