Changeset 42140 for titan/mediathek


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

fix youtube

Location:
titan/mediathek
Files:
2 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
  • titan/mediathek/localparser_free/youtube.sh

    r41381 r42140  
    7979#                               LINE="$TITLE#$URL#$PIC#$FILENAME_$piccount.jpg#$NAME#14"
    8080#                               LINE="$TITLE#$SRC $SRC hoster '$NEWPAGE'#$PIC#$FILENAME.$piccount.jpg#$NAME#111"
    81                                 LINE="$TITLE#$SRC $SRC hosterlist '$NEWPAGE'#$PIC#$FILENAME.$piccount.jpg#$NAME#0"
     81#                               LINE="$TITLE#$SRC $SRC hosterlist '$NEWPAGE'#$PIC#$FILENAME.$piccount.jpg#$NAME#0"
     82                                LINE="$TITLE#$SRC $SRC play '$NEWPAGE'#$PIC#$FILENAME.$piccount.jpg#$NAME#111"
     83
    8284                                echo "$LINE" >> $TMP/$FILENAME.list
    8385                        fi
     
    121123play()
    122124{
    123         rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
    124         /tmp/localhoster/hoster.sh get $PAGE > $TMP/cache.$PARSER.$INPUT.1
    125         STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1`
    126         echo $STREAMURL
     125#       rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
     126#       /tmp/localhoster/hoster.sh get $PAGE > $TMP/cache.$PARSER.$INPUT.1
     127#       STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1`
     128#       echo $STREAMURL
     129        /tmp/localhoster/hoster.sh youtube_dl $PAGE
    127130}
    128131
Note: See TracChangeset for help on using the changeset viewer.