Changeset 41320 for titan/mediathek/localparser_secret/sportsondemand.sh
- Timestamp:
- 11/28/17 16:15:46 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.