Ignore:
Timestamp:
Apr 2, 2018, 7:37:41 PM (2 years ago)
Author:
obi
Message:

fix youtube

File:
1 edited

Legend:

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

    r42135 r42140  
    664664        mkdir $TMP > /dev/null 2>&1
    665665
    666         echo "$BIN $youtubebin $INPUT --username $USER --password $PASS" > /tmp/.last_hoster_youtube_dl.log
    667 
    668         $BIN $youtubebin "$INPUT" --username "$USER" --password "$PASS" > $TMP/$TYPE.$hoster.$FILENAME.streamlist
     666        if [ ! -z "$USER" ];then USER="--username $USER";fi
     667        if [ ! -z "$PASS" ];then PASS="--password $PASS";fi
     668
     669        echo "$BIN $youtubebin $INPUT $USER $PASS" > /tmp/.last_hoster_youtube_dl.log
     670
     671        $BIN $youtubebin "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
    669672#       cat $TMP/$TYPE.$hoster.$FILENAME.streamlist
    670673        echo $TMP/$TYPE.$hoster.$FILENAME.streamlist
Note: See TracChangeset for help on using the changeset viewer.