Changeset 40947


Ignore:
Timestamp:
09/11/17 00:08:34 (6 years ago)
Author:
obi
Message:

tithek fix kino and opti movie hosterlist

Location:
titan
Files:
2 edited

Legend:

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

    r40917 r40947  
    6363genre()
    6464{
    65         watchlist="
    66                 movies-genre-1-Action.html
    67                 movies-genre-58-Adult.html
    68                 movies-genre-4-Adventure.html
    69                 movies-genre-5-Animation.html
    70                 movies-genre-6-Biography.html
    71                 movies-genre-27-Bollywood.html
    72                 movies-genre-3-Comedy.html
    73                 movies-genre-7-Crime.html
    74                 movies-genre-8-Documentary.html
    75                 movies-genre-2-Drama.html
    76                 movies-genre-9-Family.html
    77                 movies-genre-10-Fantasy.html
    78                 movies-genre-13-History.html
    79                 movies-genre-14-Horror.html
    80                 movies-genre-15-Music.html
    81                 movies-genre-56-Musical.html
    82                 movies-genre-17-Mystery.html
    83                 movies-genre-26-Other.html
    84                 movies-genre-59-Reality-TV.html
    85                 movies-genre-20-Romance.html
    86                 movies-genre-21-Sci-Fi.html
    87                 movies-genre-55-Short.html
    88                 movies-genre-22-Sport.html
    89                 movies-genre-23-Thriller.html
    90                 movies-genre-24-War.html
    91                 movies-genre-25-Western.html
    92                 "
    93         rm $TMP/$FILENAME.list > /dev/null 2>&1
    94 
    95         for ROUND0 in $watchlist; do
    96                 TITLE=`echo $ROUND0 | cut -d"-" -f4 | sed 's/.html//'`
    97                 NUMMER=`echo $ROUND0 | cut -d"-" -f3`
    98 
    99                 filename=`echo $TITLE | tr [A-Z] [a-z]`
    100                 echo "$TITLE#$SRC $SRC search 'movies-genre-$NUMMER-' 1 '.html'#http://atemio.dyndns.tv/mediathek/menu/$filename.jpg#$filename.jpg#$NAME#0" >> $TMP/$FILENAME.list
    101         done
     65        if [ ! -e "$TMP/$FILENAME.list" ]; then
     66                watchlist="
     67                        movies-genre-1-Action.html
     68                        movies-genre-58-Adult.html
     69                        movies-genre-4-Adventure.html
     70                        movies-genre-5-Animation.html
     71                        movies-genre-6-Biography.html
     72                        movies-genre-27-Bollywood.html
     73                        movies-genre-3-Comedy.html
     74                        movies-genre-7-Crime.html
     75                        movies-genre-8-Documentary.html
     76                        movies-genre-2-Drama.html
     77                        movies-genre-9-Family.html
     78                        movies-genre-10-Fantasy.html
     79                        movies-genre-13-History.html
     80                        movies-genre-14-Horror.html
     81                        movies-genre-15-Music.html
     82                        movies-genre-56-Musical.html
     83                        movies-genre-17-Mystery.html
     84                        movies-genre-26-Other.html
     85                        movies-genre-59-Reality-TV.html
     86                        movies-genre-20-Romance.html
     87                        movies-genre-21-Sci-Fi.html
     88                        movies-genre-55-Short.html
     89                        movies-genre-22-Sport.html
     90                        movies-genre-23-Thriller.html
     91                        movies-genre-24-War.html
     92                        movies-genre-25-Western.html
     93                        "
     94                rm $TMP/$FILENAME.list > /dev/null 2>&1
     95
     96                for ROUND0 in $watchlist; do
     97                        TITLE=`echo $ROUND0 | cut -d"-" -f4 | sed 's/.html//'`
     98                        NUMMER=`echo $ROUND0 | cut -d"-" -f3`
     99
     100                        filename=`echo $TITLE | tr [A-Z] [a-z]`
     101                        echo "$TITLE#$SRC $SRC search 'movies-genre-$NUMMER-' 1 '.html'#http://atemio.dyndns.tv/mediathek/menu/$filename.jpg#$filename.jpg#$NAME#0" >> $TMP/$FILENAME.list
     102                done
     103        fi
    102104        echo "$TMP/$FILENAME.list"
    103105}
     
    105107sorted()
    106108{
    107         watchlist="0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
    108 
    109         rm $TMP/$FILENAME.list > /dev/null 2>&1
    110 
    111         for ROUND0 in $watchlist; do
    112                 TITLE=`echo $ROUND0`
    113                 filename=`echo $TITLE | tr [A-Z] [a-z]`
    114                 echo "$TITLE#$SRC $SRC search 'movies-all-$ROUND0-' 1 '.html'#http://atemio.dyndns.tv/mediathek/menu/$filename.jpg#$filename.jpg#$NAME#0" >> $TMP/$FILENAME.list
    115         done
     109        if [ ! -e "$TMP/$FILENAME.list" ]; then
     110                watchlist="0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
     111
     112                rm $TMP/$FILENAME.list > /dev/null 2>&1
     113
     114                for ROUND0 in $watchlist; do
     115                        TITLE=`echo $ROUND0`
     116                        filename=`echo $TITLE | tr [A-Z] [a-z]`
     117                        echo "$TITLE#$SRC $SRC search 'movies-all-$ROUND0-' 1 '.html'#http://atemio.dyndns.tv/mediathek/menu/$filename.jpg#$filename.jpg#$NAME#0" >> $TMP/$FILENAME.list
     118                done
     119        fi
    116120        echo "$TMP/$FILENAME.list"
    117121}
     
    194198kino()
    195199{
    196         if [ -e "$TMP/$FILENAME.list" ] ; then
    197                 rm $TMP/$FILENAME.list
    198         fi
    199 
    200         piccount=0
    201 #       /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
    202         $curlbin "$URL/$PAGE" -o "$TMP/cache.$FILENAME.1"
    203         cat $TMP/cache.$FILENAME.1 | grep ^"<a href=" | grep "<img src=" >$TMP/cache.$FILENAME.2
    204 
    205         while read -u 3 ROUND; do
    206                 ID=`echo $ROUND | cut -d'"' -f1 | tail -n1`
    207                 PIC=`echo $ROUND | sed 's!<img src=!\nurl=!g' | grep ^url= | cut -d'"' -f2 | tail -n1`
    208                 TITLE=`echo $ROUND | sed 's!title=!\nfound=>!g' | grep ^found= | cut -d'"' -f2 | tail -n1 | sed 's/ kostenlos//'`
    209                 NEWPAGE=`echo $ROUND | sed 's!<a href=!\nfound=!g' | grep ^found= | cut -d'"' -f2 | tail -n1`
    210 
    211 #echo ID $ID
    212 #echo PIC $PIC
    213 #echo TITLE $TITLE
    214 #echo NEWPAGE $NEWPAGE
    215 
    216                 if [ -z "$PIC" ]; then
    217                         PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    218                 fi
    219 
    220                 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
     200        if [ ! -e "$TMP/$FILENAME.list" ]; then
     201
     202#       if [ -e "$TMP/$FILENAME.list" ] ; then
     203#               rm $TMP/$FILENAME.list
     204#       fi
     205
     206                piccount=0
     207        #       /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
     208                $curlbin "$URL/$PAGE" -o "$TMP/cache.$FILENAME.1"
     209                cat $TMP/cache.$FILENAME.1 | grep ^"<a href=" | grep "<img src=" >$TMP/cache.$FILENAME.2
     210
     211                while read -u 3 ROUND; do
     212                        ID=`echo $ROUND | cut -d'"' -f1 | tail -n1`
     213                        PIC=`echo $ROUND | sed 's!<img src=!\nurl=!g' | grep ^url= | cut -d'"' -f2 | tail -n1`
     214                        TITLE=`echo $ROUND | sed 's!title=!\nfound=>!g' | grep ^found= | cut -d'"' -f2 | tail -n1 | sed 's/ kostenlos//'`
     215                        NEWPAGE=`echo $ROUND | sed 's!<a href=!\nfound=!g' | grep ^found= | cut -d'"' -f2 | tail -n1`
     216
     217        #echo ID $ID
     218        #echo PIC $PIC
     219        #echo TITLE $TITLE
     220        #echo NEWPAGE $NEWPAGE
     221
     222                        if [ -z "$PIC" ]; then
     223                                PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
     224                        fi
     225
     226                        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
    221227/g' -e 's/&Uuml;/\C3S/g' -e 's/&Ouml;/\C3/g' -e 's/&auml;/ä/g' -e 's/&uuml;/ü/g' -e 's/&ouml;/ö/g' -e 's/&eacute;/é/g' -e 's/&egrave;/è/g' -e 's/%F6/ö/g' -e 's/%FC/ü/g' -e 's/%E4/ä/g' -e 's/%26/&/g' -e 's/%C4/\C3
    222228/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'`
    223229
    224                 if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
    225                         if [ ! -e $TMP/$FILENAME.list ];then
    226                                 touch $TMP/$FILENAME.list
    227                         fi
    228                         piccount=`expr $piccount + 1`
    229                         LINE="$TITLE#$SRC $SRC hosterlist $NEWPAGE#$PIC#$PARSER.$INPUT.$NEXT.$PAGE2.$FILENAME.$piccount.jpg#$NAME#0"
    230 
    231                         echo "$LINE" >> $TMP/$FILENAME.list
    232                 fi
    233 
    234         done 3<$TMP/cache.$FILENAME.2
    235         rm $TMP/cache.* > /dev/null 2>&1
    236 
     230                        if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
     231                                if [ ! -e $TMP/$FILENAME.list ];then
     232                                        touch $TMP/$FILENAME.list
     233                                fi
     234                                piccount=`expr $piccount + 1`
     235                                LINE="$TITLE#$SRC $SRC hosterlist $NEWPAGE#$PIC#$PARSER.$INPUT.$NEXT.$PAGE2.$FILENAME.$piccount.jpg#$NAME#0"
     236
     237                                echo "$LINE" >> $TMP/$FILENAME.list
     238                        fi
     239
     240                done 3<$TMP/cache.$FILENAME.2
     241                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     242        fi
    237243        echo "$TMP/$FILENAME.list"
    238244}
     
    240246hosterlist()
    241247{
    242         if [ -e "$TMP/$FILENAME.list" ] ; then
    243                 rm $TMP/$FILENAME.list
    244         fi
    245 #       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
    246         /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$FILENAME.1
    247 
    248         cat $TMP/cache.$FILENAME.1 | grep ^"links\[" >$TMP/cache.$FILENAME.2
    249 
    250         while read -u 3 ROUND; do
    251                 NEWPAGE="`echo $ROUND | cut -d '"' -f9 | sed 's/;/%3B/g'`"
    252                 TITLE=`echo $ROUND | sed 's!&nbsp;!\nfound=<!g' | grep ^"found=<" | cut -d"<" -f2`             
    253        
    254                 if [ ! -z "$TITLE" ] && [ "$TITLE" != " " ] && [ ! -z "$NEWPAGE" ];then
    255                         PIC=`echo $TITLE | tr [A-Z] [a-z] | cut -d"." -f1 | sed 's/streamclou/streamcloud/'`
    256 #                       LINE="$TITLE#$SRC $SRC hoster $NEWPAGE '--referer $URL/$PAGE'#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
    257                         LINE="$TITLE#$SRC $SRC hoster $NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
    258 
    259 #                       LINE="$TITLE#$URL/$NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#41"
    260 
    261                         echo "$LINE" >> $TMP/$FILENAME.list
    262                 fi
    263         done 3<$TMP/cache.$FILENAME.2
    264 #       rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
     248        if [ ! -e "$TMP/$FILENAME.list" ]; then
     249        #       if [ -e "$TMP/$FILENAME.list" ] ; then
     250        #               rm $TMP/$FILENAME.list
     251        #       fi
     252        #       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
     253                /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$FILENAME.1
     254
     255                cat $TMP/cache.$FILENAME.1 | grep ^"links\[" >$TMP/cache.$FILENAME.2
     256
     257                while read -u 3 ROUND; do
     258                        NEWPAGE="`echo $ROUND | cut -d '"' -f9 | sed 's/;/%3B/g'`"
     259                        TITLE=`echo $ROUND | sed 's!&nbsp;!\nfound=<!g' | grep ^"found=<" | cut -d"<" -f2`             
     260       
     261                        if [ ! -z "$TITLE" ] && [ "$TITLE" != " " ] && [ ! -z "$NEWPAGE" ];then
     262                                PIC=`echo $TITLE | tr [A-Z] [a-z] | cut -d"." -f1 | sed 's/streamclou/streamcloud/'`
     263        #                       LINE="$TITLE#$SRC $SRC hoster $NEWPAGE '--referer $URL/$PAGE'#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
     264                                LINE="$TITLE#$SRC $SRC hoster $NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
     265
     266        #                       LINE="$TITLE#$URL/$NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#41"
     267
     268                                echo "$LINE" >> $TMP/$FILENAME.list
     269                        fi
     270                done 3<$TMP/cache.$FILENAME.2
     271                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     272        fi
    265273        echo "$TMP/$FILENAME.list"
    266274}
     
    268276hoster()
    269277{
    270         rm $TMP/$TMP/cache.$FILENAME.* > /dev/null 2>&1
     278        rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    271279#       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
    272280        /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$FILENAME.1
  • titan/plugins/tithek/kinox.h

    r40906 r40947  
    845845                                                }
    846846                                                debug(99, "(%d/%d) (%d/%d)hnr: %s hlink: %s hname: %s pathnewtmp: %s",i ,max ,j ,mirrormax ,hnr ,hlink ,hname ,pathnewtmp);
    847                                                 free(pathnewtmp), pathnewtmp= NULL;
     847                                                free(pathnewtmp), pathnewtmp = NULL;
    848848//////////
    849                                                 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    850                                                 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0);
     849//                                              hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
     850//                                              pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0);
    851851
    852852                                                season = string_resub("&amp;Season=", "\">", ret1[i].part, 0);
    853853                                                season = string_replace_all("amp;", "", season, 1);
    854854
    855                                                 pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1);
     855//                                              pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1);
    856856                                                pathnew = ostrcat(pathnew, "&Season=", 1, 0);
    857857                                                pathnew = ostrcat(pathnew, season, 1, 0);
     
    860860 
    861861                                                free(season), season= NULL;
    862                                                 free(pathnewtmp), pathnewtmp= NULL;
     862                                                free(pathnewtmp), pathnewtmp = NULL;
    863863
    864864                                                pichname = ostrcat(hname, NULL, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.