Changeset 41320
- Timestamp:
- 11/28/17 16:15:46 (6 years ago)
- Location:
- titan/mediathek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r41303 r41320 5 5 INPUT=$2 6 6 DEST=$3 7 USER=$DEST 8 PASS=$4 7 9 8 10 INPUT=`echo $INPUT | sed 's!/Out/?s=!!g'` … … 418 420 mkdir $TMP > /dev/null 2>&1 419 421 420 echo "$BIN $youtubebin $INPUT " > /tmp/.last_hoster_youtube_dl.log421 422 $BIN $youtubebin "$INPUT" > $TMP/$TYPE.$hoster.$FILENAME.streamlist422 echo "$BIN $youtubebin $INPUT --username $USER --password $PASS" > /tmp/.last_hoster_youtube_dl.log 423 424 $BIN $youtubebin "$INPUT" --username "$USER" --password "$PASS" > $TMP/$TYPE.$hoster.$FILENAME.streamlist 423 425 echo $TMP/$TYPE.$hoster.$FILENAME.streamlist 424 426 } … … 509 511 echo "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log 510 512 case $hoster in 511 *) youtube_dl $INPUT ;;513 *) youtube_dl $INPUT $USER $PASS;; 512 514 esac 513 515 fi -
titan/mediathek/localparser_secret/sportsondemand.sh
r41305 r41320 560 560 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6 | sed 's#//#\nhttps://#' | grep ^"https://"` 561 561 if [ "$debug" = "1" ]; then echo $INPUT 999999 $URLTMP; fi 562 562 #echo $INPUT 999999 $URLTMP 563 563 email=`cat /mnt/config/titan.cfg | grep vk_user | cut -d"=" -f2` 564 564 pass=`cat /mnt/config/titan.cfg | grep vk_pass | cut -d"=" -f2` 565 566 URLYDL=$(cat $(/tmp/localhoster/hoster.sh youtube_dl "$URLTMP" $email $pass)) 565 567 566 568 $curlbin2 "$URLTMP" --referer "$URL$PAGE" -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.7 … … 594 596 curl "$URLTMP" --referer "$referer" -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 595 597 596 if [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 | grep "This video has been removed from public access." | wc -l` -eq 1 ];then598 if [ -z "$URLYDL" ] && [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 | grep "This video has been removed from public access." | wc -l` -eq 1 ];then 597 599 URL="errormsg=This video has been removed from public access." 598 elif [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 | grep "This video is protected by privacy settings and is not available for viewing." | wc -l` -eq 1 ];then600 elif [ -z "$URLYDL" ] && [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 | grep "This video is protected by privacy settings and is not available for viewing." | wc -l` -eq 1 ];then 599 601 URL="errormsg=This video is protected by privacy settings and is not available for viewing." 600 elif [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 | grep "Authorization required" | wc -l` -eq 1 ];then602 elif [ -z "$URLYDL" ] && [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 | grep "Authorization required" | wc -l` -eq 1 ];then 601 603 URL="errormsg=You need access to https://vk.com to use this full stream, add VK User/Pass on Tithek Settings" 602 604 else … … 626 628 rm -f $STREAMLIST 627 629 fi 628 for ROUND in $URL HLS2 $URLHLS $URL720 $URL360 $URLMP4; do630 for ROUND in $URLYDL $URLHLS2 $URLHLS $URL720 $URL360 $URLMP4; do 629 631 echo "$ROUND" >> $STREAMLIST 630 632 done … … 783 785 echo "$LINE" >> $TMP/$PARSER.$INPUT.$FROM.$FILENAME.list 784 786 fi 785 786 787 done 3<$TMP/cache.$PARSER.$FROM.$FILENAME.2 787 788 # rm $TMP/cache.* > /dev/null 2>&1
Note: See TracChangeset
for help on using the changeset viewer.