Changeset 42569


Ignore:
Timestamp:
Jul 28, 2018, 6:23:00 PM (17 months ago)
Author:
obi
Message:

tithek add erros msg foxx

File:
1 edited

Legend:

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

    r42568 r42569  
    4444mainmenu()
    4545{
    46         echo "Kinofilme#$SRC $SRC new 0 0 '?get=movies'#http://atemio.dyndns.tv/mediathek/menu/all-newfirst.jpg#all-newfirst.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
     46        echo "Random Movie#$SRC $SRC new 0 0 '?get=movies'#http://atemio.dyndns.tv/mediathek/menu/all-newfirst.jpg#all-newfirst.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    4747        #echo "Serien#$SRC $SRC new 0 0 '?get=tv'#http://atemio.dyndns.tv/mediathek/menu/Movies.jpg#Movies.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    4848        echo "Search#$SRC $SRC search 1 0 '?s='#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#112" >> $TMP/$PARSER.$INPUT.list
     
    202202        echo "print(decodeABC(jbdaskgs));" >> $TMP/cache.$PARSER.$INPUT.4
    203203        $DUKBIN $TMP/cache.$PARSER.$INPUT.4 > $TMP/cache.$PARSER.$INPUT.5
     204
     205#[{"file":"https://lh3.googleusercontent.com/_KqlWWPoaC4gfQ0z_z9bK1y99QsnvN2eTSBz32Kd78Y7xLO_KoXveMe7TkimM0wpJl56HNTY=m18","label":"360p","type":"mp4"},{"file":"https://lh3.googleusercontent.com/_KqlWWPoaC4gfQ0z_z9bK1y99QsnvN2eTSBz32Kd78Y7xLO_KoXveMe7TkimM0wpJl56HNTY=m22","label":"720p","type":"mp4"}]
     206#{"error":"status=fail&hl=uk&allow_embed=0&ps=docs&partnerid=30&errorcode=100&reason=Це+відео+не+існує.&timestamp=1532793394463"}
     207        errorcode=`cat /tmp/localcache/cache.foxx.hosterlist.5 | sed -nr 's/.*errorcode=([^=]+)&.*/\1/p'`
     208
    204209        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
    205210        echo >> $TMP/cache.$PARSER.$INPUT.6
     
    215220        rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
    216221
     222        if [ ! -z "$errorcode" ];then
     223                ERRORMSG="Foxx Website error, this video file cannot be played. (Error Code: $errorcode)"
     224                LINE="$ERRORMSG#$NEWPAGE#$PIC#kinox_$piccount.jpg#Foxx#0"
     225                echo "$LINE" > $TMP/$PARSER.$INPUT.list
     226        fi
    217227        echo $TMP/$PARSER.$INPUT.list
     228
    218229}
    219230
Note: See TracChangeset for help on using the changeset viewer.