Changeset 40846 for titan/mediathek


Ignore:
Timestamp:
Aug 27, 2017, 2:43:35 AM (3 years ago)
Author:
obi
Message:

next

File:
1 edited

Legend:

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

    r40675 r40846  
    44TYPE=$1
    55INPUT=$2
     6DEST=$3
    67
    78INPUT=`echo $INPUT | sed 's!/Out/?s=!!g'`
     
    236237}
    237238
     239youtube_dlbg()
     240{
     241#       rm -f /tmp/_last_hoster_* > /dev/null 2>&1
     242        echo "$BIN $youtubebin $INPUT" > /tmp/.last_hoster_youtube_dlbg.log
     243#       $BIN $youtubebin "$INPUT"
     244#       $BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --all-formats -g "$INPUT"
     245        URL=`$BIN $CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent "$USERAGENT" --format mp4 --restrict-filenames --ignore-errors --output "$DEST" "$INPUT"`
     246        echo "$URL" >> /tmp/.last_hoster_youtube_dlbg.log
     247        echo $URL
     248}
    238249if [ "$TYPE" == "get" ];then
    239250        echo  "$INPUT" > /tmp/.last_hoster_$hoster.log
     
    270281        esac
    271282fi
     283
     284if [ "$TYPE" == "youtube_dlbg" ];then
     285        case $hoster in
     286                *) youtube_dlbg $INPUT;;
     287        esac
     288fi
Note: See TracChangeset for help on using the changeset viewer.