Changeset 45994


Ignore:
Timestamp:
04/04/22 19:21:52 (2 years ago)
Author:
obi
Message:

tithek fix nba/youtube

File:
1 edited

Legend:

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

    r45986 r45994  
    5555if [ -e /etc/.oebuild ];then
    5656        youtubebin="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format ytsearch:mp4 --restrict-filenames --ignore-errors -g"
     57        youtubebin2="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --restrict-filenames --ignore-errors -g"
    5758        youtubebinbg="/usr/bin/youtube-dl --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format ytsearch:mp4 --restrict-filenames --ignore-errors --output"
    5859else
     
    888889                        unset PYTHONHOME
    889890                        unset LD_LIBRARY_PATH
     891
    890892                        $youtubebin "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
     893            if [ `cat $TMP/$TYPE.$hoster.$FILENAME.streamlist | wc -l` -eq 0 ];then
     894                        $youtubebin2 "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
     895            fi
    891896                else
    892897                        $BIN $youtubebin "$INPUT" $USER $PASS > $TMP/$TYPE.$hoster.$FILENAME.streamlist
     
    923928                echo "$youtubebinbg $DEST $URL" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log
    924929                $youtubebinbg "$DEST" "$URL" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log
     930        if [ `cat /tmp/.last_hoster_${TYPE}_${CURTIME}.log | wc -l` -eq 0 ];then
     931                        $youtubebinbg2 "$DEST" "$URL" >> /tmp/.last_hoster_${TYPE}_${CURTIME}.log
     932        fi
    925933        else
    926934                echo "$BIN $youtubebinbg $DEST $INPUT" > /tmp/.last_hoster_${TYPE}_${CURTIME}.log
Note: See TracChangeset for help on using the changeset viewer.