Ignore:
Timestamp:
02/07/21 02:57:31 (3 years ago)
Author:
obi
Message:

fix sportsondemand livestream

File:
1 edited

Legend:

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

    r45126 r45320  
    3737AUTH='aUtzhFRTzuDFa:JNHZbghnjuz'
    3838USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
     39USERAGENT2='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
     40
    3941debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    4042PROXY=""
    4143proxy=`cat /mnt/config/titan.cfg | grep tithek_proxy | cut -d"=" -f2`
    4244if [ ! -z "$proxy" ];then PROXY="--proxy $proxy"; fi
    43 curlbin="$CURLBIN $PROXY -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
     45curlbin="${CURLBIN} ${PROXY} -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A ${USERAGENT} -u ${AUTH}"
    4446curlbin2="$CURLBIN $PROXY -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
    4547youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
     
    753755        fi
    754756
    755         $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
     757        $curlbin -A "$USERAGENT2" "$INPUT" -o $TMP/cache.hoster.$hoster.1
    756758        #pl.init('http://87.120.36.57:8080/hls/streama113535/index.m3u8?st=VsL7dEPX4fBHn3tcJmmcKw');
    757759        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | grep pl.init | cut -d"'" -f2)
Note: See TracChangeset for help on using the changeset viewer.