Changeset 41941


Ignore:
Timestamp:
02/25/18 00:22:32 (6 years ago)
Author:
obi
Message:

fix kino

File:
1 edited

Legend:

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

    r41939 r41941  
    6464                else
    6565                {
    66                         path = string_replace_all("kinox.to", "", search, 0);
    67                         path = string_replace_all(getconfig("tithek_kinox_url", NULL), "", search, 0);
    68                         path = string_replace_all("http:///", "", search, 0);
    69                         path = string_replace_all("https:///", "", search, 0);
     66                        path = ostrcat(search, NULL, 0, 0);
     67//                      path = string_replace_all("kinox.to", "", path, 0);
     68//                      path = string_replace_all(getconfig("tithek_kinox_url", NULL), "", path, 0);
     69//                      path = string_replace_all("http:///", "", path, 0);
     70//                      path = string_replace_all("https:///", "", path, 0);
    7071                }
    7172//              tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
     
    7475//              tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
    7576// new start
    76                 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0);
     77                cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", newurl, 0, 0);
     78                cmd = ostrcat(cmd, "'", 1, 0);
    7779                debug(99, "cmd: %s", cmd);
    7880                tmpstr = command(cmd);
     
    121123//                                      tmpstr1 = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
    122124// new start
    123                                         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0);
     125                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", newurl, 0, 0);
     126                                        cmd = ostrcat(cmd, "'", 1, 0);
    124127                                        debug(99, "cmd: %s", cmd);
    125128                                        tmpstr1 = command(cmd);
     
    289292//      tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
    290293// new start
    291         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", link, 0, 0);
     294        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", link, 0, 0);
     295        cmd = ostrcat(cmd, "'", 1, 0);
    292296        debug(99, "cmd: %s", cmd);
    293297        tmpstr = command(cmd);
     
    440444//                                              tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    441445// new start
    442                                                 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     446                                                cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     447                                                cmd = ostrcat(cmd, "'", 1, 0);
    443448                                                debug(99, "cmd: %s", cmd);
    444449                                                tmpstr1 = command(cmd);
     
    451456//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    452457// new start
    453                                                         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     458                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     459                                                        cmd = ostrcat(cmd, "'", 1, 0);
    454460                                                        debug(99, "cmd: %s", cmd);
    455461                                                        tmpstr1 = command(cmd);
     
    463469//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    464470// new start
    465                                                         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     471                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     472                                                        cmd = ostrcat(cmd, "'", 1, 0);
    466473                                                        debug(99, "cmd: %s", cmd);
    467474                                                        tmpstr1 = command(cmd);
     
    475482//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    476483// new start
    477                                                         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     484                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     485                                                        cmd = ostrcat(cmd, "'", 1, 0);
    478486                                                        debug(99, "cmd: %s", cmd);
    479487                                                        tmpstr1 = command(cmd);
     
    487495//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    488496// new start
    489                                                         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     497                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     498                                                        cmd = ostrcat(cmd, "'", 1, 0);
    490499                                                        debug(99, "cmd: %s", cmd);
    491500                                                        tmpstr1 = command(cmd);
     
    845854//      tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
    846855// new start
    847         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", link, 0, 0);
     856        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", link, 0, 0);
     857        cmd = ostrcat(cmd, "'", 1, 0);
    848858        debug(99, "cmd: %s", cmd);
    849859        tmpstr = command(cmd);
     
    877887//              tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
    878888// new start
    879                 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0);
     889                cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", newurl, 0, 0);
     890                cmd = ostrcat(cmd, "'", 1, 0);
    880891                debug(99, "cmd: %s", cmd);
    881892                tmpstr = command(cmd);
     
    986997//                                              tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    987998// new start
    988                                                 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     999                                                cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     1000                                                cmd = ostrcat(cmd, "'", 1, 0);
    9891001                                                debug(99, "cmd: %s", cmd);
    9901002                                                tmpstr1 = command(cmd);
     
    10101022//                                                      tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    10111023// new start
    1012                                                         cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0);
     1024                                                        cmd = ostrcat("/tmp/localhoster/hoster.sh get 'http://", pathnew, 0, 0);
     1025                                                        cmd = ostrcat(cmd, "'", 1, 0);
    10131026                                                        debug(99, "cmd: %s", cmd);
    10141027                                                        tmpstr1 = command(cmd);
     
    11811194                                        incount++;
    11821195                                        line = ostrcat(line, name, 1, 0);
    1183                                         line = ostrcat(line, "#http://", 1, 0);
    1184                                         line = ostrcat(line, getconfig("tithek_kinox_url", NULL), 1, 0);
    1185                                         line = ostrcat(line, "/People/", 1, 0);
     1196//                                      line = ostrcat(line, "#http://", 1, 0);
     1197//                                      line = ostrcat(line, getconfig("tithek_kinox_url", NULL), 1, 0);
     1198                                        line = ostrcat(line, "#/People/", 1, 0);
    11861199                                        line = ostrcat(line, url, 1, 0);
    11871200                                        line = ostrcat(line, "#", 1, 0);
Note: See TracChangeset for help on using the changeset viewer.