Changeset 41933


Ignore:
Timestamp:
02/24/18 20:50:46 (6 years ago)
Author:
obi
Message:

fix kino

File:
1 edited

Legend:

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

    r41932 r41933  
    5454                char* menu = NULL;
    5555                char* newurl = NULL;
     56                char *cmd = NULL;
     57
    5658                search = strstrip(search);
    5759                search = stringreplacechar(search, ' ', '+');
     
    7274//              tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
    7375// new start
    74                 char *cmd = NULL;
    7576                cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0);
    7677                debug(99, "cmd: %s", cmd);
    7778                tmpstr = command(cmd);
    78                 free(cmd), cmd = NULL;
    79 
    8079                free(cmd), cmd = NULL;
    8180// new end
     
    121120                                        newurl = ostrcat(newurl, path, 1, 0);
    122121//                                      tmpstr1 = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
    123 
    124                                         char *cmd = NULL;
     122// new start
    125123                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0);
    126124                                        debug(99, "cmd: %s", cmd);
    127125                                        tmpstr1 = command(cmd);
    128126                                        free(cmd), cmd = NULL;
    129 
     127// new end
    130128                                        free(newurl), newurl = NULL;
    131129
     
    290288//      tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
    291289//      tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
     290// new start
    292291        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", link, 0, 0);
    293292        debug(99, "cmd: %s", cmd);
    294293        tmpstr = command(cmd);
    295294        free(cmd), cmd = NULL;
    296 
     295// new end
    297296        titheklog(debuglevel, "/tmp/kinox2_tmpstr", NULL, NULL, NULL, tmpstr);
    298297       
     
    440439//                                              tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    441440//                                              tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     441// new start
    442442                                                cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    443443                                                debug(99, "cmd: %s", cmd);
    444444                                                tmpstr1 = command(cmd);
    445445                                                free(cmd), cmd = NULL;
    446 
     446// new end
    447447                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
    448448                                                {
     
    450450//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    451451//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     452// new start
    452453                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    453454                                                        debug(99, "cmd: %s", cmd);
    454455                                                        tmpstr1 = command(cmd);
    455456                                                        free(cmd), cmd = NULL;
     457// new end
    456458                                                }
    457459                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
     
    460462//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    461463//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     464// new start
    462465                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    463466                                                        debug(99, "cmd: %s", cmd);
    464467                                                        tmpstr1 = command(cmd);
    465468                                                        free(cmd), cmd = NULL;
     469// new end
    466470                                                }
    467471                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
     
    470474//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    471475//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     476// new start
    472477                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    473478                                                        debug(99, "cmd: %s", cmd);
    474479                                                        tmpstr1 = command(cmd);
    475480                                                        free(cmd), cmd = NULL;
     481// new end
    476482                                                }
    477483                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
     
    480486//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    481487//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     488// new start
    482489                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    483490                                                        debug(99, "cmd: %s", cmd);
    484491                                                        tmpstr1 = command(cmd);
    485492                                                        free(cmd), cmd = NULL;
     493// new end
    486494                                                }
    487495                                                free(pathnew), pathnew = NULL;
     
    836844//      tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
    837845//      tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
     846// new start
    838847        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", link, 0, 0);
    839848        debug(99, "cmd: %s", cmd);
    840849        tmpstr = command(cmd);
    841850        free(cmd), cmd = NULL;
     851// new end
    842852
    843853        debug(99, "tmpstr: %s", tmpstr);
     
    866876                newurl = ostrcat(newurl, pathnew, 1, 0);
    867877//              tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
    868 
     878// new start
    869879                cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0);
    870880                debug(99, "cmd: %s", cmd);
    871881                tmpstr = command(cmd);
    872882                free(cmd), cmd = NULL;
    873 
     883// new end
    874884                free(newurl), newurl = NULL;
    875885
     
    975985//                                              tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
    976986//                                              tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     987// new start
    977988                                                cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    978989                                                debug(99, "cmd: %s", cmd);
    979990                                                tmpstr1 = command(cmd);
    980991                                                free(cmd), cmd = NULL;
     992// new end
    981993//                                              debug(99, "tmpstr1 1: %s", tmpstr1);
    982994
     
    9971009                                                        free(tmpstr1), tmpstr1 = NULL;
    9981010//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     1011// new start
    9991012                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
    10001013                                                        debug(99, "cmd: %s", cmd);
    10011014                                                        tmpstr1 = command(cmd);
    10021015                                                        free(cmd), cmd = NULL;
    1003 
     1016// new end
    10041017//                                                      debug(99, "iframe2.2 tmpstr1: %s", tmpstr1);
    10051018                                                        tmpstr1 = string_replace_all("\\", "", tmpstr1, 1);
Note: See TracChangeset for help on using the changeset viewer.