Ignore:
Timestamp:
11/19/16 23:11:47 (7 years ago)
Author:
obi
Message:

tithek next test

File:
1 edited

Legend:

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

    r39364 r39365  
    376376                                                tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    377377                                        }
    378 
     378                                        if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
     379                                        {
     380                                                sleep(1);
     381                                                tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     382                                        }
     383                                        if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
     384                                        {
     385                                                sleep(1);
     386                                                tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     387                                        }
    379388                                        free(pathnew), pathnew = NULL;
    380389
     
    446455                                                debug(99, "(%d/%d) %s url: %s extra: %s",i ,max , hname, url, extra);
    447456                                        }
    448                                        
     457
    449458                                        incount += 1;
    450459                                        line = ostrcat(line, hname, 1, 0);
    451                                         if((url != NULL || url2 != NULL) && ostrcmp(url, url2) != 0)
     460                                        if(url == NULL)
     461                                                line = ostrcat(line, " (Error)", 1, 0);
     462                                       
     463                                        if(url2 != NULL && ostrcmp(url, url2) != 0)
    452464                                                line = ostrcat(line, " (Part1)", 1, 0);
    453465                                        if(extra != NULL)
Note: See TracChangeset for help on using the changeset viewer.