Changeset 22334 for titan/plugins


Ignore:
Timestamp:
07/11/13 21:31:40 (11 years ago)
Author:
obi
Message:

optimize movie4k serach cancel with exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/movie4k.h

    r22327 r22334  
    155155
    156156                folgen = string_resub("<TABLE id=\"tablemoviesindex\">", "</TABLE>", tmpstr, 0);
    157 //              folgen = string_replace_all("\n", "", folgen, 1);
     157                folgen = string_replace_all("1000\r\n", "", folgen, 1);
     158                folgen = string_replace_all("2000\r\n", "", folgen, 1);
    158159                stringreplacechar(folgen, '\n', ' ');
    159 //              folgen = string_replace_all("\t", "", folgen, 1);
    160160                stringreplacechar(folgen, '\t', ' ');
    161161                string_strip_whitechars(folgen);
    162162                folgen = string_replace_all("</TD> </TR> <TR id=\"coverPreview", "</TD> </TR>\n<TR id=\"cover1Preview", folgen, 1);
    163 
    164163                if(folgen != NULL)
    165164                {
     
    174173                                for(j = 0; j < max; j++)
    175174                                {
     175                                    int rcret = waitrc(NULL, 10, 0);
     176                                    if(rcret == getrcconfigint("rcexit", NULL)) break;
    176177                                        incount += 1;
    177178                                        link = string_resub("<a href=\"", "\">", ret1[j].part, 0);
    178179                                        name = string_resub(".html\">", "</a>", ret1[j].part, 0);
    179 
    180180                                        char* id = string_resub("online-film-", ".html", link, 0);
    181181                                        if(id == NULL)
     
    188188                                        pic = string_resub(from, from, tmpstr, 0);     
    189189                                        pic = string_resub("<img src='", "' alt=", pic, 1);     
    190                                        
     190                                        if(pic == NULL)
     191                                                pic = ostrcat("http://atemio.dyndns.tv/mediathek/menu/default.jpg", NULL, 0, 0);
     192
    191193                                        if(ostrstr(link, "online-serie-") != NULL)
    192194                                                type = ostrcat("40", NULL, 0, 0);
     
    222224                                        free(pic), pic = NULL;
    223225                                        free(type), type = NULL;
     226                                        if(j == 60)
     227                                                break;
    224228                                }
    225229                        }
Note: See TracChangeset for help on using the changeset viewer.