Changeset 41460


Ignore:
Timestamp:
12/18/17 18:43:08 (6 years ago)
Author:
obi
Message:

add curl to hoster

File:
1 edited

Legend:

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

    r41443 r41460  
    2525BIN="$CMD"/bin/python."$ARCH"
    2626HLSBIN="$CMD"/bin/hlsdl."$ARCH"
     27CURLBIN="$CMD"/bin/curl."$ARCH"
     28if [ ! -e "$CURLBIN" ];then CURLBIN=curl; fi
    2729#USERAGENT='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
    2830USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
    2931debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    30 curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
    31 curlbin2="curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
     32curlbin="$CURLBIN -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
     33curlbin2="$CURLBIN -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
    3234youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
    3335youtubebinbg="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
Note: See TracChangeset for help on using the changeset viewer.