Changeset 40906


Ignore:
Timestamp:
09/04/17 09:16:45 (6 years ago)
Author:
obi
Message:

tithek fix

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

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

    r40893 r40906  
    374374                                                        hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1);
    375375                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    376                                                         pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0);
     376                                                        pathnewtmp = ostrcat("kinox.me/aGET/Mirror/", hlink, 0, 0);
    377377                                                        pathnew = ostrcat(pathnewtmp, NULL, 0, 0);
    378378                                                }
     
    382382                                                        hlink = ostrcat(hlink, "Mirror=", 0, 0);
    383383                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    384                                                         pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0);
     384                                                        pathnewtmp = ostrcat("kinox.me/aGET/Mirror/", hlink, 0, 0);
    385385                                                        pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1);
    386386                                                }
     
    396396                                                titheklog(debuglevel, "/tmp/kinox4_pathnew1", hname, NULL, NULL, pathnew);
    397397
    398                                                 tmpstr1 = gethttp("kinox.me", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     398
     399//                                              tmpstr1 = gethttp("kinox.me", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     400                                                tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
     401
    399402                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
    400403                                                {
    401404                                                        sleep(1);
    402                                                         tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     405//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     406                                                        tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    403407                                                }
    404408                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
    405409                                                {
    406410                                                        sleep(1);
    407                                                         tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     411//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     412                                                        tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    408413                                                }
    409414                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
    410415                                                {
    411416                                                        sleep(1);
    412                                                         tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     417//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     418                                                        tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    413419                                                }
    414420                                                if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL)
    415421                                                {
    416422                                                        sleep(1);
    417                                                         tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     423//                                                      tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     424                                                        tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    418425                                                }
    419426                                                free(pathnew), pathnew = NULL;
     
    826833                                                        hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1);
    827834                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    828                                                         pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0);
     835                                                        pathnewtmp = ostrcat("kinox.me/aGET/Mirror/", hlink, 0, 0);
    829836                                                        pathnew = ostrcat(pathnewtmp, NULL, 0, 0);
    830837                                                }
     
    834841                                                        hlink = ostrcat(hlink, "Mirror=", 0, 0);
    835842                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    836                                                         pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0);
     843                                                        pathnewtmp = ostrcat("kinox.me/aGET/Mirror/", hlink, 0, 0);
    837844                                                        pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1);
    838845                                                }
     
    865872                                                                               
    866873//                                              debug(99, "pathnew: %s", pathnew);
    867                                                 tmpstr1 = gethttp("kinox.me", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     874//                                              tmpstr1 = gethttp("kinox.me", pathnew, 80, NULL, NULL, 10000, NULL, 0);
     875                                                tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1);
    868876//                                              debug(99, "tmpstr1 1: %s", tmpstr1);
    869877
  • titan/plugins/tithek/tithek_global.h

    r40900 r40906  
    77{
    88        debug(99, "url: %s", url);
    9         char* streamurl = NULL, *tmplink = NULL;
     9        char* streamurl = NULL, *tmplink = NULL, *tmpstr = NULL;
    1010        struct skin* load = getscreen("loading");
    1111
     
    1414        else
    1515                tmplink = ostrcat(url, NULL, 0, 0);
     16       
     17        tmpstr = ostrcat(tmplink, NULL, 0, 0);
    1618        string_tolower(tmplink);
    1719
    1820        char* cmd = NULL;
    19         cmd = ostrcat("/tmp/localhoster/hoster.sh get \"", tmplink, 0, 0);
     21        cmd = ostrcat("/tmp/localhoster/hoster.sh get \"", tmpstr, 0, 0);
    2022        cmd = ostrcat(cmd, "\"", 1, 0);
    2123        streamurl = command(cmd);
     
    3032                if(ostrstr(tmplink, "streamcloud") != NULL)
    3133                {
    32                         streamurl = streamcloud(tmplink);
     34                        streamurl = streamcloud(tmpstr);
    3335                        skip = 1;
    3436                }
     
    119121                drawscreen(load, 0, 0);
    120122
    121                 cmd = ostrcat("/tmp/localhoster/hoster.sh youtube_dl \"", tmplink, 0, 0);
     123                cmd = ostrcat("/tmp/localhoster/hoster.sh youtube_dl \"", tmpstr, 0, 0);
    122124                cmd = ostrcat(cmd, "\"", 1, 0);
    123125                streamurl = command(cmd);
     
    133135                {
    134136                        if(ostrstr(tmplink, "sockshare") != NULL)
    135                                 streamurl = putlocker(tmplink);
     137                                streamurl = putlocker(tmpstr);
    136138                        else if(ostrstr(tmplink, "putlocker") != NULL)
    137                                 streamurl = firedrive(tmplink);
     139                                streamurl = firedrive(tmpstr);
    138140                        else if(ostrstr(tmplink, "filenuke") != NULL)
    139                                 streamurl = filenuke(tmplink);
     141                                streamurl = filenuke(tmpstr);
    140142                        else if(ostrstr(tmplink, "streamcloud") != NULL)
    141                                 streamurl = streamcloud(tmplink);
     143                                streamurl = streamcloud(tmpstr);
    142144                        else if(ostrstr(tmplink, "vidstream") != NULL)
    143                                 streamurl = vidstream(tmplink);
     145                                streamurl = vidstream(tmpstr);
    144146                        else if(ostrstr(tmplink, "flashx_disable") != NULL)
    145                                 streamurl = flashx(tmplink);
     147                                streamurl = flashx(tmpstr);
    146148                        else if(ostrstr(tmplink, "xvidstage") != NULL)
    147                                 streamurl = xvidstage(tmplink);
     149                                streamurl = xvidstage(tmpstr);
    148150                        else if(ostrstr(tmplink, "nowvideo") != NULL)
    149                                 streamurl = nowvideo(tmplink);
     151                                streamurl = nowvideo(tmpstr);
    150152                        else if(ostrstr(tmplink, "movshare") != NULL || ostrstr(tmplink, "wholecloud") != NULL)
    151                                 streamurl = movshare(tmplink);
     153                                streamurl = movshare(tmpstr);
    152154                        else if(ostrstr(tmplink, "movreel") != NULL)
    153                                 streamurl = movreel(tmplink);
     155                                streamurl = movreel(tmpstr);
    154156                        else if(ostrstr(tmplink, "novamov") != NULL || ostrstr(tmplink, "auroravid") != NULL)
    155                                 streamurl = novamov(tmplink);
     157                                streamurl = novamov(tmpstr);
    156158                        else if(ostrstr(tmplink, "divxstage") != NULL || ostrstr(tmplink, "cloudtime") != NULL)
    157                                 streamurl = divxstage(tmplink);
     159                                streamurl = divxstage(tmpstr);
    158160                        else if(ostrstr(tmplink, "primeshare") != NULL)
    159                                 streamurl = primeshare(tmplink);
     161                                streamurl = primeshare(tmpstr);
    160162                        else if(ostrstr(tmplink, "faststream") != NULL || ostrstr(tmplink, "fastvideo") != NULL)
    161                                 streamurl = faststream(tmplink);
     163                                streamurl = faststream(tmpstr);
    162164                        else if(ostrstr(tmplink, "played") != NULL)
    163                                 streamurl = played(tmplink);
     165                                streamurl = played(tmpstr);
    164166                        else if(ostrstr(tmplink, "videoweed") != NULL)
    165                                 streamurl = videoweed(tmplink);
     167                                streamurl = videoweed(tmpstr);
    166168                        else if(ostrstr(tmplink, "firedrive") != NULL)
    167                                 streamurl = firedrive(tmplink);
     169                                streamurl = firedrive(tmpstr);
    168170                        else if(ostrstr(tmplink, "shared") != NULL)
    169                                 streamurl = shared(tmplink);
     171                                streamurl = shared(tmpstr);
    170172                        else if(ostrstr(tmplink, "thefile") != NULL)
    171                                 streamurl = thefile(tmplink);
     173                                streamurl = thefile(tmpstr);
    172174                        else if(ostrstr(tmplink, "youtu_disable") != NULL)
    173                                 streamurl = youtube(tmplink);
     175                                streamurl = youtube(tmpstr);
    174176                        else if(ostrstr(tmplink, "myvideo") != NULL)
    175                                 streamurl = myvideo(tmplink);
     177                                streamurl = myvideo(tmpstr);
    176178                        else if(ostrstr(tmplink, "promptfile") != NULL)
    177                                 streamurl = promptfile(tmplink);
     179                                streamurl = promptfile(tmpstr);
    178180                        else if(ostrstr(tmplink, "letwatch") != NULL || ostrstr(tmplink, "realvid") != NULL)
    179                                 streamurl = letwatch(tmplink);
     181                                streamurl = letwatch(tmpstr);
    180182                        else if(ostrstr(tmplink, "vidbull") != NULL)
    181                                 streamurl = vidbull(tmplink);
     183                                streamurl = vidbull(tmpstr);
    182184                        else if(ostrstr(tmplink, "vodlocker") != NULL)
    183                                 streamurl = vodlocker(tmplink);
     185                                streamurl = vodlocker(tmpstr);
    184186                        else if(ostrstr(tmplink, "vidto") != NULL)
    185                                 streamurl = vidto(tmplink);
     187                                streamurl = vidto(tmpstr);
    186188                        else if(ostrstr(tmplink, "amazon") != NULL)
    187                                 streamurl = amazon(tmplink);
     189                                streamurl = amazon(tmpstr);
    188190                        else if(ostrstr(tmplink, "thevideo") != NULL)
    189                                 streamurl = thevideo(tmplink);
     191                                streamurl = thevideo(tmpstr);
    190192                        else if(ostrstr(tmplink, "mightyupload") != NULL)
    191                                 streamurl = mightyupload(tmplink);
     193                                streamurl = mightyupload(tmpstr);
    192194                        else if(ostrstr(tmplink, "cloudzilla") != NULL)
    193                                 streamurl = cloudzilla(tmplink);
     195                                streamurl = cloudzilla(tmpstr);
    194196                        else if(ostrstr(tmplink, "vivo") != NULL)
    195                                 streamurl = vivo(tmplink);
     197                                streamurl = vivo(tmpstr);
    196198                        else if(ostrstr(tmplink, "streamlive") != NULL)
    197                                 streamurl = streamlive(tmplink, -1);
     199                                streamurl = streamlive(tmpstr, -1);
    198200                        else if(ostrstr(tmplink, "cricfree") != NULL)
    199                                 streamurl = cricfree(tmplink, 0);
     201                                streamurl = cricfree(tmpstr, 0);
    200202                        else if(ostrstr(tmplink, "zerocast") != NULL)
    201                                 streamurl = zerocast(tmplink, 0);
     203                                streamurl = zerocast(tmpstr, 0);
    202204                        else if(ostrstr(tmplink, "p2pcast") != NULL)
    203                                 streamurl = p2pcast(tmplink);
     205                                streamurl = p2pcast(tmpstr);
    204206                        else if(ostrstr(tmplink, "vidzi") != NULL)
    205                                 streamurl = vidzi(tmplink);
     207                                streamurl = vidzi(tmpstr);
    206208                        else if(ostrstr(tmplink, "vid.ag") != NULL)
    207                                 streamurl = vidag(tmplink);
     209                                streamurl = vidag(tmpstr);
    208210                        debug(99, "Streamurl4: %s", streamurl);
    209211                }
Note: See TracChangeset for help on using the changeset viewer.