Changeset 22712


Ignore:
Timestamp:
08/07/13 17:06:45 (10 years ago)
Author:
obi
Message:

[tithek] add xxx filter in menu

Location:
titan
Files:
3 edited

Legend:

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

    r22674 r22712  
    9191int addtithekcontent(struct tithek* node, char *line, int len, int count, int pay)
    9292{
    93         int ret = 0, i = 0, skip = 0;
     93        int ret = 0, i = 0, skip = 0, hid = 0;
    9494        char* tmpstr = NULL, *flag = NULL, *cmd = NULL, *tmp = NULL;
    9595        if(node == NULL) return 1;
     
    140140
    141141        if(flag != NULL) node->flag = atoi(flag);
    142 
     142       
     143        hid = getconfigint("tithek_hid_xxx", NULL);
     144        if((node->flag == 1000 && hid = 1)
     145                skip = 1;
    143146        if((node->flag == 9996 || node->flag == 9997 || node->flag == 9998 || node->flag == 9999) && !file_exist("/var/swap/etc/.codecpack"))
    144147                skip = 1;
     
    516519
    517520        if(link == NULL) return NULL;
     521        if(ostrncmp("http://", link, 7)) return NULL;
    518522
    519523        ip = string_replace("http://", "", (char*)link, 0);
  • titan/plugins/tithek/tithek_settings.h

    r20365 r22712  
    1313        struct skin* pay = getscreennode(tithek_settings, "pay");
    1414        struct skin* picratio = getscreennode(tithek_settings, "picratio");
     15        struct skin* hidxxx = getscreennode(tithek_settings, "hidxxx");
    1516
    1617        addchoicebox(cover, "0", _("show auto entrys"));
     
    3839        setchoiceboxselection(pay, getconfig("tithek_pay", NULL));
    3940
     41        addchoicebox(hidxxx, "0", _("no"));
     42        addchoicebox(hidxxx, "1", _("yes"));   
     43        setchoiceboxselection(hidxxx, getconfig("tithek_hid_xxx", NULL));
     44
    4045        drawscreen(tithek_settings, 0, 0);
    4146        addscreenrc(tithek_settings, listbox);
     
    5560                        addconfigscreencheck("tithek_pay", pay, NULL);
    5661                        addconfigscreencheck("tithek_pic_ratio", picratio, NULL);
     62                        addconfigscreencheck("tithek_hid_xxx", hidxxx, NULL);
    5763                        break;
    5864                }
  • titan/skins/tithek/skin.xml

    r20365 r22712  
    2424<node name=picratio type=choicebox parent=listbox valign=middle posx=0 text="Pic Ratio" bordercol=bordercol bordersize=1 width=100% height=25>
    2525<node name=pay type=choicebox parent=listbox valign=middle posx=0 text="Show Pay Streams" bordercol=bordercol bordersize=1 width=100% height=25>
     26<node name=hidxxx type=choicebox parent=listbox valign=middle posx=0 text="Show XXX Streams" bordercol=bordercol bordersize=1 width=100% height=25>
    2627
    2728<node name="buttonbar" posx=center posy="660" width="1220" height="50" bordercol="black" bordersize="1" borderradius="8" bgcol="titlebgcol" bgcol2="white" gradient="topmiddle">
Note: See TracChangeset for help on using the changeset viewer.