Changeset 40404


Ignore:
Timestamp:
05/10/17 21:49:34 (6 years ago)
Author:
obi
Message:

more debug

File:
1 edited

Legend:

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

    r40403 r40404  
    1515curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
    1616curlbin2='curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
    17 youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent '$USERAGENT' -g"
     17youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent '$USERAGENT' --format mp4 --restrict-filenames --ignore-errors -g"
    1818
    1919if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
     
    210210{
    211211#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
    212         echo "$BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --format mp4 --restrict-filenames -g $INPUT" > /tmp/.last_hoster_youtube_dl.log
     212        echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dl.log
    213213#       $BIN $youtubebin "$INPUT"
    214214#       $BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --all-formats -g "$INPUT"
    215         $BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --format mp4 --restrict-filenames --ignore-errors -g "$INPUT"
     215        URL=`$BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --format mp4 --restrict-filenames --ignore-errors -g "$INPUT"`
     216        echo "$URL" >> /tmp/.last_hoster_youtube_dl.log
     217        echo $URL
    216218}
    217219
Note: See TracChangeset for help on using the changeset viewer.