Changeset 40108


Ignore:
Timestamp:
Feb 26, 2017, 1:07:35 AM (3 years ago)
Author:
obi
Message:

more debug

File:
1 edited

Legend:

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

    r40105 r40108  
    99ARCH=`cat /etc/.arch`
    1010BOX=`cat /etc/model`
     11TMP=/tmp/localcache
     12CMD=/tmp/localhoster
    1113USERAGENT='Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
    1214debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    1315curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
    1416curlbin2='curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     17youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT -g"
     18
    1519if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    1620if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi
     21if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi
     22
    1723wgetbin="wget -q -T2"
    18 TMP=/tmp/localcache
    19 CMD=/tmp/localhoster
    2024
    2125BIN="$CMD"/bin/python."$ARCH"
     
    200204{
    201205#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
    202         echo "$BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate -g $INPUT" > /tmp/.last_hoster_youtube_dl
    203         $BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate -g "$INPUT"
     206        echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl
     207        $BIN $youtubebin "$INPUT"
    204208}
    205209
Note: See TracChangeset for help on using the changeset viewer.