Changeset 42136


Ignore:
Timestamp:
04/02/18 02:04:47 (5 years ago)
Author:
phillipsd2
Message:

fix for new page layout thx obi and tit4spk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/foxx.sh

    r41970 r42136  
    180180        TEMP=$(cat $TMP/cache.$PARSER.$INPUT.2)
    181181        $curlbin $TEMP -o $TMP/cache.$PARSER.$INPUT.3
    182         cat $TMP/cache.$PARSER.$INPUT.3 | grep -E "sources:*" >$TMP/cache.$PARSER.$INPUT.4
    183         cat $TMP/cache.$PARSER.$INPUT.4 | grep -o "http[^ ]*"| sed -e 's/,/ /g' -e 's/}//g' -e 's/{//g' -e 's/\"//g' -e 's/file/\nfile/g' -e 's/file://g' -e 's/type:mp4//g' -e 's/default:true//g' -e 's/\]//g' >$TMP/cache.$PARSER.$INPUT.5
     182        cat $TMP/cache.$PARSER.$INPUT.3 | grep -A 10 "var decodeABC" >$TMP/cache.$PARSER.$INPUT.4
     183        echo "print(decodeABC(jbdaskgs));" >> $TMP/cache.$PARSER.$INPUT.4
     184        $DUKBIN $TMP/cache.$PARSER.$INPUT.4 > $TMP/cache.$PARSER.$INPUT.5
     185        cat $TMP/cache.$PARSER.$INPUT.5 | grep -o "http[^ ]*"| sed -e 's!{! !g' -e 's/}//g' -e 's/{//g' -e 's/\"//g' -e 's/file/\nfile/g' -e 's/file://g' -e 's/type:mp4//g' -e 's/default:true//g' -e 's/\]//g' >$TMP/cache.$PARSER.$INPUT.6
     186        echo >> $TMP/cache.$PARSER.$INPUT.6
    184187        while read -u 3 ROUND; do
    185                 NEWPAGE=$(echo $ROUND | cut -d" " -f1)
    186                 TITLE=$(echo $ROUND | cut -d" " -f2 | cut -d":" -f2)
     188                NEWPAGE=$(echo $ROUND | grep -o "http[^ ]*" | cut -d "," -f1)
     189                TITLE=$(echo $ROUND | grep -o "label[^ ]*" | cut -d "," -f1 | sed -e 's!label:!!g' -e 's!"!!g')
    187190                if [ ! -z "$TITLE" ] && [ "$TITLE" != " " ] && [ ! -z "$NEWPAGE" ];then
    188191                        PIC=`echo $TITLE | tr [A-Z] [a-z]`
     
    190193                        echo "$LINE" >> $TMP/$PARSER.$INPUT.list
    191194                fi
    192         done 3<$TMP/cache.$PARSER.$INPUT.5
     195        done 3<$TMP/cache.$PARSER.$INPUT.6
    193196        rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
    194197
     
    221224        $curlbin $TEMP -o $TMP/cache.$PARSER.$INPUT.3
    222225        cat $TMP/cache.$PARSER.$INPUT.3 | grep -E "sources:*" >$TMP/cache.$PARSER.$INPUT.4
    223         cat $TMP/cache.$PARSER.$INPUT.4 | grep -o "http[^ ]*"| sed -e 's/,/ /g' -e 's/}//g' -e 's/{//g' -e 's/\"//g' -e 's/file/\nfile/g' -e 's/file://g' -e 's/type:mp4//g' -e 's/default:true//g' -e 's/\]//g' | cut -d" " -f1 >$TMP/cache.$PARSER.$INPUT.5
     226        cat $TMP/cache.$PARSER.$INPUT.4 | grep -o "http[^ ]*"| sed -e 's/,/ /g' -e 's/}//g' -e 's/{//g' -e 's/\"//g' -e 's/file/\nfile/g' -e 's/file://g' -e 's/type:mp4//g' -e 's/default:true//g' -e 's/\]//g' >$TMP/cache.$PARSER.$INPUT.5
    224227
    225228        cat $TMP/cache.$PARSER.$INPUT.5 > $TMP/$PARSER.playlist.list
Note: See TracChangeset for help on using the changeset viewer.