Changeset 42580


Ignore:
Timestamp:
07/29/18 00:22:12 (6 years ago)
Author:
obi
Message:

tithek update streamcloud

File:
1 edited

Legend:

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

    r42464 r42580  
    5858{
    5959        echo "Kino#$SRC $SRC kino '/'#http://atemio.dyndns.tv/mediathek/menu/kino.jpg#kino.jpg#$NAME#0" >$TMP/$FILENAME.list
    60         echo "New#$SRC $SRC search '?c=movie&m=filter&keyword=&res=&genre=&cast=&year=&order_by=releases&series=&date=year&country=&per_page=' 0#http://atemio.dyndns.tv/mediathek/menu/all-newfirst.jpg#all-newfirst.jpg#$NAME#0" >>$TMP/$FILENAME.list
     60        echo "Neu#$SRC $SRC search '?c=movie&m=filter&keyword=&res=&genre=&cast=&year=&order_by=releases&series=&date=year&country=&per_page=' 0#http://atemio.dyndns.tv/mediathek/menu/all-newfirst.jpg#all-newfirst.jpg#$NAME#0" >>$TMP/$FILENAME.list
    6161        echo "Updates#$SRC $SRC search '?c=movie&m=filter&keyword=&res=&genre=&cast=&year=&order_by=updates&series=&date=year&country=&per_page=' 0#http://atemio.dyndns.tv/mediathek/menu/Movies.updates.jpg#Movies.updates.jpg#$NAME#0" >>$TMP/$FILENAME.list
    6262        echo "Beliebt#$SRC $SRC search '?c=movie&m=filter&keyword=&res=&genre=&cast=&year=&order_by=views&series=&date=year&country=&per_page=' 0#http://atemio.dyndns.tv/mediathek/menu/most.viewed.jpg#most.viewed.jpg#$NAME#0" >>$TMP/$FILENAME.list
     
    6464        echo "Genre#$SRC $SRC genre#http://atemio.dyndns.tv/mediathek/menu/Movies.genre.jpg#Movies.genre.jpg#$NAME#0" >>$TMP/$FILENAME.list
    6565        echo "Year#$SRC $SRC year#http://atemio.dyndns.tv/mediathek/menu/movie.year.jpg#movie.year.jpg#$NAME#0" >>$TMP/$FILENAME.list
     66        echo "Search#$SRC $SRC searchtv '?c=movie&m=quickSearch&key=%datakey%&keyword=%search%' 0#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#112" >>$TMP/$FILENAME.list
    6667        echo "$TMP/$FILENAME.list"
    6768}
     
    203204                        echo "$LINE" >> $TMP/$FILENAME.list
    204205                fi
     206
    205207                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    206208        fi
     
    208210}
    209211
     212
     213searchtv()
     214{
     215        rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     216        rm $TMP/$FILENAME.list
     217        if [ ! -e "$TMP/$FILENAME.list" ]; then
     218                piccount=0
     219#               FILENAME=`echo $FILENAME | sed "s/%datakey%//"`
     220                if [ -z "$NEXT" ]; then NEXT=0; fi
     221
     222                datakey=`$curlbin $URL | sed -nr 's/.*data-key="([^"]+)".*/\1/p'`
     223                if [ -z "$datakey" ]; then datakey=4164OPTZ98adf546874s4; fi
     224                PAGE=`echo $PAGE | sed "s/%datakey%/$datakey/"`
     225
     226                $curlbin -H "X-Requested-With: XMLHttpRequest" -X POST "$URL/$PAGE" -o $TMP/cache.$FILENAME.1
     227                cat $TMP/cache.$FILENAME.1 | sed 's!},{!\n!g' >$TMP/cache.$FILENAME.2
     228
     229                while read -u 3 ROUND; do
     230                        TITLE=$(echo $ROUND | sed -nr 's/.*"title":"([^"]+)".*/\1/p')
     231                        ID=$(echo $ROUND | sed -nr 's/.*"id":"([^"]+)".*/\1/p')
     232                        NEWPAGE=http://www.vodlocker.to/embed/movieStreams/?id=$ID
     233                        PIC=$(echo $ROUND | sed -nr 's/.*"img_link":"([^"]+)".*/\1/p' | sed 's/\\//g')
     234       
     235                        if [ -z "$PIC" ]; then
     236                                PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
     237                        fi
     238       
     239                        TITLE=`echo $TITLE | sed -e 's/&#038;/&/g' -e 's/&amp;/und/g' -e 's/&quot;/"/g' -e 's/&lt;/\</g' -e 's/&#034;/\"/g' -e 's/&#039;/\"/g' -e 's/#034;/\"/g' -e 's/#039;/\"/g' -e 's/&szlig;/\C3x/g' -e 's/&ndash;/-/g' -e 's/&Auml;/\C3
     240/g' -e 's/&Uuml;/\C3S/g' -e 's/&Ouml;/\C3/g' -e 's/&auml;/\E4/g' -e 's/&uuml;/\FC/g' -e 's/&ouml;/\F6/g' -e 's/&eacute;/\E9/g' -e 's/&egrave;/\E8/g' -e 's/%F6/\F6/g' -e 's/%FC/\FC/g' -e 's/%E4/\E4/g' -e 's/%26/&/g' -e 's/%C4/\C3
     241/g' -e 's/%D6/\C3/g' -e 's/%DC/\C3S/g' -e 's/%28/(/g' -e 's/%29/)/g' -e 's/%3A/:/g' -e 's/%40/@/g' -e 's/%2B/&/g' -e 's/%C3/A/g' -e 's/%B1/&/g' -e 's/%5B//g' -e 's/%5D//g' -e 's!%2F!/!g' -e 's/|/ /g' -e 's/(/ /g' -e 's/)/ /g' -e 's/+/ /g' -e 's/\//-/g' -e 's/,/ /g' -e 's/;/ /g' -e 's/:/ /g' -e 's/\.\+/./g'`
     242
     243                        if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
     244                                if [ ! -e $TMP/$FILENAME.list ];then
     245                                        touch $TMP/$FILENAME.list
     246                                fi
     247                                piccount=`expr $piccount + 1`
     248                                LINE="$TITLE#$SRC $SRC hosterlisttv $NEWPAGE#$PIC#$PARSER.$INPUT.$NEXT.$PAGE2.$FILENAME.$piccount.jpg#$NAME#0"
     249       
     250                                echo "$LINE" >> $TMP/$FILENAME.list
     251                        fi
     252       
     253                done 3<$TMP/cache.$FILENAME.2
     254
     255#               rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     256        fi
     257        echo "$TMP/$FILENAME.list"
     258}
     259
     260hosterlisttv()
     261{
     262        if [ ! -e "$TMP/$FILENAME.list" ]; then
     263                piccount=0
     264                $curlbin -v "$PAGE" -o "$TMP/cache.$FILENAME.1"
     265                cat $TMP/cache.$FILENAME.1 | tr '\n' ' ' | sed "s!</li></a><a!\nfound=!g" | grep -v javascript | grep ^found= >$TMP/cache.$FILENAME.2
     266
     267                while read -u 3 ROUND; do
     268
     269                        ID=$(echo $ROUND | sed -nr "s/.*-stream-([^-]+).html.*/\1/p")
     270                        PIC=$(echo $ROUND | grep $ID.jpg | sed -nr "s/.*<img src='([^']+)'.*/\1/p")
     271                        NEWPAGE=$(echo $ROUND | sed -nr "s/.*href='([^']+)'.*/\1/p")
     272                        TITLE=$(echo $NEWPAGE | sed -nr 's/.*[http|https]:\/\/([^\/]+)\/.*/\1/p' | sed 's/www.//' | tr [A-Z] [a-z])
     273                        PIC="http://atemio.dyndns.tv/mediathek/menu/"$TITLE".jpg"
     274                        EXTRA=$(echo $ROUND | sed -nr "s/.*title='([^']+)'.*/\1/p")
     275
     276                        if [ ! -z "$TITLE" ] && [ ! -z "$EXTRA" ];then
     277                                TITLE="$TITLE ($EXTRA)"
     278                        fi
     279
     280                        if [ -z "$PIC" ]; then
     281                                PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
     282                        fi
     283
     284                        TITLE=`echo $TITLE | sed -e 's/&#038;/&/g' -e 's/&amp;/und/g' -e 's/&quot;/"/g' -e 's/&lt;/\</g' -e 's/&#034;/\"/g' -e 's/&#039;/\"/g' -e 's/#034;/\"/g' -e 's/#039;/\"/g' -e 's/&szlig;/\C3x/g' -e 's/&ndash;/-/g' -e 's/&Auml;/\C3
     285/g' -e 's/&Uuml;/\C3S/g' -e 's/&Ouml;/\C3/g' -e 's/&auml;/\E4/g' -e 's/&uuml;/\FC/g' -e 's/&ouml;/\F6/g' -e 's/&eacute;/\E9/g' -e 's/&egrave;/\E8/g' -e 's/%F6/\F6/g' -e 's/%FC/\FC/g' -e 's/%E4/\E4/g' -e 's/%26/&/g' -e 's/%C4/\C3
     286/g' -e 's/%D6/\C3/g' -e 's/%DC/\C3S/g' -e 's/%28/(/g' -e 's/%29/)/g' -e 's/%3A/:/g' -e 's/%40/@/g' -e 's/%2B/&/g' -e 's/%C3/A/g' -e 's/%B1/&/g' -e 's/%5B//g' -e 's/%5D//g' -e 's!%2F!/!g' -e 's/|/ /g' -e 's/(/ /g' -e 's/)/ /g' -e 's/+/ /g' -e 's/\//-/g' -e 's/,/ /g' -e 's/;/ /g' -e 's/:/ /g' -e 's/\.\+/./g'`
     287
     288                        if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
     289                                if [ ! -e $TMP/$FILENAME.list ];then
     290                                        touch $TMP/$FILENAME.list
     291                                fi
     292                                piccount=`expr $piccount + 1`
     293                                LINE="$TITLE#$SRC $SRC hoster $NEWPAGE#$PIC#$PARSER.$INPUT.$NEXT.$PAGE2.$FILENAME.$piccount.jpg#$NAME#111"
     294
     295                                echo "$LINE" >> $TMP/$FILENAME.list
     296                        fi
     297
     298                done 3<$TMP/cache.$FILENAME.2
     299                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     300        fi
     301        echo "$TMP/$FILENAME.list"
     302}
     303
     304
    210305kino()
    211306{
    212307        if [ ! -e "$TMP/$FILENAME.list" ]; then
    213308                piccount=0
    214                 $curlbin "$URL/$PAGE" -o "$TMP/cache.$FILENAME.1"
     309                $curlbin -v "$URL/$PAGE" -o "$TMP/cache.$FILENAME.1"   
    215310                cat $TMP/cache.$FILENAME.1 | tr '\n' ' ' | sed "s!</li></a><a!\nfound=!g" | grep ^found= >$TMP/cache.$FILENAME.2
    216311
     
    344439}
    345440
    346 
    347441case $INPUT in
    348442        init) $INPUT;;
    349443        mainmenu) $INPUT;;
     444        hoster) $INPUT;;
    350445        hosterlist) $INPUT;;
    351         hoster) $INPUT;;
     446        hosterlisttv) $INPUT;;
    352447        search) $INPUT;;
     448        searchtv) $INPUT;;
    353449        kino) $INPUT;;
    354450        genre) $INPUT;;
Note: See TracChangeset for help on using the changeset viewer.