Changeset 41939


Ignore:
Timestamp:
02/24/18 21:52:22 (6 years ago)
Author:
obi
Message:

fix kino

Location:
titan
Files:
4 edited

Legend:

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

    r41933 r41939  
    6565                {
    6666                        path = string_replace_all("kinox.to", "", search, 0);
    67                         path = string_replace_all(getconfig("kinox_url", NULL), "", search, 0);
     67                        path = string_replace_all(getconfig("tithek_kinox_url", NULL), "", search, 0);
    6868                        path = string_replace_all("http:///", "", search, 0);
    6969                        path = string_replace_all("https:///", "", search, 0);
    7070                }
    7171//              tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
    72                 newurl = ostrcat(getconfig("kino_url", NULL), "/", 0, 0);
     72                newurl = ostrcat(getconfig("tithek_kinox_url", NULL), "/", 0, 0);
    7373                newurl = ostrcat(newurl, path, 1, 0);
    7474//              tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
     
    117117                                                                                                                                       
    118118//                                      tmpstr1 = gethttp("kinox.to", path, 80, NULL, NULL, 10000, NULL, 0);
    119                                         newurl = ostrcat(getconfig("kinox_url", NULL), "/", 0, 0);
     119                                        newurl = ostrcat(getconfig("tithek_kinox_url", NULL), "/", 0, 0);
    120120                                        newurl = ostrcat(newurl, path, 1, 0);
    121121//                                      tmpstr1 = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
     
    142142                                        title = ostrcat(title , lang, 1, 0);
    143143
    144                                         url = ostrcat(getconfig("kinox_url", NULL), "/", 0, 0);
     144                                        url = ostrcat(getconfig("tithek_kinox_url", NULL), "/", 0, 0);
    145145                                        url = ostrcat(url, path, 1, 0);
    146146
     
    159159                                                line = ostrcat(line, url, 1, 0);
    160160                                                line = ostrcat(line, "#http://", 1, 0);
    161                                                 line = ostrcat(line, getconfig("kinox_url", NULL), 1, 0);
     161                                                line = ostrcat(line, getconfig("tithek_kinox_url", NULL), 1, 0);
    162162                                                line = ostrcat(line, "/", 1, 0);
    163163                                                line = ostrcat(line, pic, 1, 0);
     
    412412                                                        hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1);
    413413                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    414                                                         pathnewtmp = ostrcat(getconfig("kinox_url", NULL), "/aGET/Mirror/", 0, 0);
     414                                                        pathnewtmp = ostrcat(getconfig("tithek_kinox_url", NULL), "/aGET/Mirror/", 0, 0);
    415415                                                        pathnewtmp = ostrcat(pathnewtmp, hlink, 1, 0);
    416416                                                        pathnew = ostrcat(pathnewtmp, NULL, 0, 0);
     
    421421                                                        hlink = ostrcat(hlink, "Mirror=", 0, 0);
    422422                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    423                                                         pathnewtmp = ostrcat(getconfig("kinox_url", NULL), "/aGET/Mirror/", 0, 0);
     423                                                        pathnewtmp = ostrcat(getconfig("tithek_kinox_url", NULL), "/aGET/Mirror/", 0, 0);
    424424                                                        pathnewtmp = ostrcat(pathnewtmp, hlink, 1, 0);
    425425                                                        pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1);
     
    818818
    819819                searchname = string_replace("kinox.to", "", searchname, 0);
    820                 searchname = string_replace(getconfig("kinox_url", NULL), "", searchname, 0);
     820                searchname = string_replace(getconfig("tithek_kinox_url", NULL), "", searchname, 0);
    821821                searchname = string_replace("http:////Stream/", "", searchname, 0);
    822822                searchname = string_replace("http:///Stream/", "", searchname, 0);
     
    872872       
    873873                free(tmpstr), tmpstr = NULL;
    874 //              tmpstr = gethttp(getconfig("kinox_url", NULL, pathnew, 80, NULL, NULL, 10000, NULL, 0);
    875                 newurl = ostrcat(getconfig("kinox_url", NULL), "/", 0, 0);
     874//              tmpstr = gethttp(getconfig("tithek_kinox_url", NULL, pathnew, 80, NULL, NULL, 10000, NULL, 0);
     875                newurl = ostrcat(getconfig("tithek_kinox_url", NULL), "/", 0, 0);
    876876                newurl = ostrcat(newurl, pathnew, 1, 0);
    877877//              tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1);
     
    938938                                                        hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1);
    939939                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    940                                                         pathnewtmp = ostrcat(getconfig("kinox_url", NULL), "/aGET/Mirror/", 0, 0);
     940                                                        pathnewtmp = ostrcat(getconfig("tithek_kinox_url", NULL), "/aGET/Mirror/", 0, 0);
    941941                                                        pathnewtmp = ostrcat(pathnewtmp, hlink, 1, 0);
    942942                                                        pathnew = ostrcat(pathnewtmp, NULL, 0, 0);
     
    947947                                                        hlink = ostrcat(hlink, "Mirror=", 0, 0);
    948948                                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
    949                                                         pathnewtmp = ostrcat(getconfig("kinox_url", NULL), "/aGET/Mirror/", 0, 0);
     949                                                        pathnewtmp = ostrcat(getconfig("tithek_kinox_url", NULL), "/aGET/Mirror/", 0, 0);
    950950                                                        pathnewtmp = ostrcat(pathnewtmp, hlink, 1, 0);
    951951                                                        pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1);
     
    976976
    977977                                                hlink = string_replace("kinox.to", "", hlink, 1);                                       
    978                                                 hlink = string_replace(getconfig("kinox_url", NULL), "", hlink, 1);                                     
     978                                                hlink = string_replace(getconfig("tithek_kinox_url", NULL), "", hlink, 1);                                     
    979979                                                hlink = string_replace("http:////Stream/", "", hlink, 1);                                       
    980980                                                hlink = string_replace("http:///Stream/", "", hlink, 1);
     
    10041004                                                {
    10051005                                                        free(pathnew), pathnew = NULL;
    1006                                                         pathnew = ostrcat(getconfig("kinox_url", NULL), "/aGET/Mirror/", 0, 0);
     1006                                                        pathnew = ostrcat(getconfig("tithek_kinox_url", NULL), "/aGET/Mirror/", 0, 0);
    10071007                                                        pathnew = ostrcat(pathnew, hlink, 1, 0);
    10081008//                                                      debug(99, "iframe2.1 pathnew: %s", pathnew);
     
    11821182                                        line = ostrcat(line, name, 1, 0);
    11831183                                        line = ostrcat(line, "#http://", 1, 0);
    1184                                         line = ostrcat(line, getconfig("kinox_url", NULL), 1, 0);
     1184                                        line = ostrcat(line, getconfig("tithek_kinox_url", NULL), 1, 0);
    11851185                                        line = ostrcat(line, "/People/", 1, 0);
    11861186                                        line = ostrcat(line, url, 1, 0);
  • titan/plugins/tithek/tithek.c

    r41935 r41939  
    123123        status.listboxselectcol = convertcol("tithek_selectcol");
    124124
    125         if(getconfig("kino_url", NULL) == NULL)
    126                 addconfigtmp("kino_url", "kinox.io");
     125        if(getconfig("tithek_kinox_url", NULL) == NULL)
     126                addconfigtmp("tithek_kinox_url", "kinox.io");
    127127
    128128//      if(checkbox("WHITEBOX") == 1)
  • titan/plugins/tithek/tithek_settings.h

    r41862 r41939  
    1818        struct skin* vk_user = getscreennode(tithek_settings, "vk_user");
    1919        struct skin* vk_pass = getscreennode(tithek_settings, "vk_pass");
    20         struct skin* kino_url = getscreennode(tithek_settings, "kino_url");
     20        struct skin* kinox_url = getscreennode(tithek_settings, "kinox_url");
    2121        struct skin* autoupdate = getscreennode(tithek_settings, "autoupdate");
    2222        struct skin* b3 = getscreennode(tithek_settings, "b3");
     
    5858/*
    5959        changemask(amazon_user, "abcdefghijklmnopqrstuvwxyz");
    60         if(getconfig("amazon_pass", NULL) == NULL)
    61                 changeinput(amazon_user, getconfig("amazon_user", NULL));
     60        if(getconfig("tithek_amazon_pass", NULL) == NULL)
     61                changeinput(amazon_user, getconfig("tithek_amazon_user", NULL));
    6262        else
    6363                changeinput(amazon_user, "****");
    6464
    6565        changemask(amazon_pass, "abcdefghijklmnopqrstuvwxyz");
    66         if(getconfig("amazon_pass", NULL) == NULL)
    67                 changeinput(amazon_pass, getconfig("amazon_pass", NULL));
     66        if(getconfig("tithek_amazon_pass", NULL) == NULL)
     67                changeinput(amazon_pass, getconfig("tithek_amazon_pass", NULL));
    6868        else
    6969                changeinput(amazon_pass, "****");
    7070*/
    7171        changemask(vk_user, "abcdefghijklmnopqrstuvwxyz");
    72         if(getconfig("vk_pass", NULL) == NULL)
    73                 changeinput(vk_user, getconfig("vk_user", NULL));
     72        if(getconfig("tithek_vk_pass", NULL) == NULL)
     73                changeinput(vk_user, getconfig("tithek_vk_user", NULL));
    7474        else
    7575                changeinput(vk_user, "****");
    7676
    7777        changemask(vk_pass, "abcdefghijklmnopqrstuvwxyz");
    78         if(getconfig("vk_pass", NULL) == NULL)
    79                 changeinput(vk_pass, getconfig("vk_pass", NULL));
     78        if(getconfig("tithek_vk_pass", NULL) == NULL)
     79                changeinput(vk_pass, getconfig("tithek_vk_pass", NULL));
    8080        else
    8181                changeinput(vk_pass, "****");
    8282
    83         changemask(kino_url, "abcdefghijklmnopqrstuvwxyz");
    84         changeinput(kino_url, getconfig("kino_url", NULL));
     83        changemask(kinox_url, "abcdefghijklmnopqrstuvwxyz");
     84        changeinput(kinox_url, getconfig("tithek_kinox_url", NULL));
    8585
    8686        if(!file_exist("/mnt/swapextensions/etc/.codecpack") && !file_exist("/var/swap/etc/.codecpack") && !file_exist("/var/etc/.codecpack"))
    87                 kino_url->hidden = YES;
     87                kinox_url->hidden = YES;
    8888
    8989        b3->hidden = YES;
     
    109109                        addconfigscreencheck("tithek_hid_xxx", hidxxx, NULL);
    110110                        addconfigscreencheck("tithek_autoupdate", autoupdate, NULL);
    111                         addconfigscreen("kino_url", kino_url);
     111                        addconfigscreen("tithek_kinox_url", kinox_url);
    112112/*
    113113                        if(amazon_user->ret != NULL && ostrcmp(amazon_user->ret, "****") != 0)
     
    115115                                debug(99, "amazon_user: write");
    116116                                debug(99, "amazon_user: %s", amazon_user->ret);
    117                                 addconfigscreen("amazon_user", amazon_user);
     117                                addconfigscreen("tithek_amazon_user", amazon_user);
    118118                        }
    119119                        else
     
    125125                                debug(99, "amazon_pass: write");
    126126                                debug(99, "amazon_pass: %s", amazon_pass->ret);
    127                                 addconfigscreen("amazon_pass", amazon_pass);
     127                                addconfigscreen("tithek_amazon_pass", amazon_pass);
    128128                        }
    129129                        else
     
    136136                                debug(99, "vk_user: write");
    137137                                debug(99, "vk_user: %s", vk_user->ret);
    138                                 addconfigscreen("vk_user", vk_user);
     138                                addconfigscreen("tithek_vk_user", vk_user);
    139139                        }
    140140                        else
     
    146146                                debug(99, "vk_pass: write");
    147147                                debug(99, "vk_pass: %s", vk_pass->ret);
    148                                 addconfigscreen("vk_pass", vk_pass);
     148                                addconfigscreen("tithek_vk_pass", vk_pass);
    149149                        }
    150150                        else
     
    158158//                      debug(99, "amazon_pass read: %s", getconfig("amazon_pass", NULL));
    159159
    160                         debug(99, "vk_user read: %s", getconfig("vk_user", NULL));
    161                         debug(99, "vk_pass read: %s", getconfig("vk_pass", NULL));
     160                        debug(99, "vk_user read: %s", getconfig("tithek_vk_user", NULL));
     161                        debug(99, "vk_pass read: %s", getconfig("tithek_vk_pass", NULL));
    162162                       
    163163                        break;
  • titan/skins/tithek/skin.xml

    r41863 r41939  
    3131                <node parent="listbox" name="vk_user" text="VK User" type="inputbox" valign="middle" width="100%" height="35">
    3232                <node parent="listbox" name="vk_pass" text="VK Pass" type="inputbox" valign="middle" width="100%" height="35">
    33                 <node parent="listbox" name="kino_url" text="KinoX Url" type="inputbox" valign="middle" width="100%" height="35">
     33                <node parent="listbox" name="kinox_url" text="KinoX Url" type="inputbox" valign="middle" width="100%" height="35">
    3434        <node name="buttonbar" posx="0" posy="0" width="100%" height="50" hspace="5" fontcol="black" fontsize="25" bordercol="titlebgcol" bordersize="1" borderradius="8" bgcol="titlebgcol" bgcol2="white" gradient="topmiddle">
    3535                <node parent="buttonbar" name="b1" picmem="skin/key_ok_70x40.png"    posx="0"   posy="center" width="70" height="40">
Note: See TracChangeset for help on using the changeset viewer.