Changeset 45037


Ignore:
Timestamp:
12/18/20 12:53:42 (2 years ago)
Author:
obi
Message:

tithek add proxy to settings and enable for intern curl

Location:
titan
Files:
3 edited

Legend:

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

    r44858 r45037  
    370370                        curl_easy_setopt(curl_handle, CURLOPT_REFERER, referer);
    371371
     372                if(getconfig("tithek_proxy", NULL) != NULL)
     373                        curl_easy_setopt(curl_handle, CURLOPT_PROXY, getconfig("tithek_proxy", NULL));
     374
    372375                /* get it! */
    373376                res = curl_easy_perform(curl_handle);
  • titan/plugins/tithek/tithek_settings.h

    r42657 r45037  
    2121        struct skin* kinox_pic = getscreennode(tithek_settings, "kinox_pic");
    2222        struct skin* kinox_localhoster = getscreennode(tithek_settings, "kinox_localhoster");
    23 
     23        struct skin* proxy = getscreennode(tithek_settings, "proxy");
     24       
    2425        struct skin* autoupdate = getscreennode(tithek_settings, "autoupdate");
    2526        struct skin* b3 = getscreennode(tithek_settings, "b3");
     
    8990        changemask(kinox_url, "abcdefghijklmnopqrstuvwxyz");
    9091        changeinput(kinox_url, getconfig("tithek_kinox_url", NULL));
     92
     93        changemask(proxy, "abcdefghijklmnopqrstuvwxyz0123456789://@");
     94        changeinput(proxy, getconfig("tithek_proxy", NULL));
    9195
    9296        addchoicebox(kinox_pic, "0", _("no"));
     
    127131                        addconfigscreencheck("tithek_kinox_pic", kinox_pic, NULL);
    128132                        addconfigscreencheck("tithek_kinox_localhoster", kinox_localhoster, NULL);
    129 
     133                        addconfigscreen("tithek_proxy", proxy);
    130134/*
    131135                        if(amazon_user->ret != NULL && ostrcmp(amazon_user->ret, "****") != 0)
  • titan/skins/tithek/skin.xml

    r42655 r45037  
    3737                <node parent="listbox" name="kinox_pic" text="KinoX Load Preview Pic" type="choicebox" valign="middle" width="100%" height="35">
    3838                <node parent="listbox" name="kinox_localhoster" text="KinoX Localhoster" type="choicebox" valign="middle" width="100%" height="35">
     39                <node parent="listbox" name="proxy" text="Proxy" type="inputbox" valign="middle" width="100%" height="35">
    3940        <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">
    4041                <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.