Changeset 38773


Ignore:
Timestamp:
09/14/16 14:52:30 (6 years ago)
Author:
obi
Message:

tithek fix thevideo

File:
1 edited

Legend:

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

    r38313 r38773  
    77        int debuglevel = getconfigint("debuglevel", NULL);
    88        char* tmphost = NULL, *tmplink = NULL, *tmppath = NULL, *tmpstr = NULL, *streamlink = NULL, *pos = NULL, *path = NULL, *url = NULL;
    9         char* vhash = NULL, *gfk = NULL, *fname = NULL, *hash = NULL, *post = NULL, *inhu = NULL, *op = NULL, *vt = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL;
     9        char* vhash = NULL, *gfk = NULL, *fname = NULL, *hash = NULL, *post = NULL, *inhu = NULL, *op = NULL, *vt = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL, *tmpstr4 = NULL;
    1010
    1111        if(link == NULL) return NULL;
     
    114114                streamlink = oregex(".*(http://.*v.mp4).*", tmpstr);
    115115
     116//      var mpri_Key='LCw2QFU8N0hRPFdBWi4zLVgK';
     117//      eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3.2(\'<0 4\'.1(\'8="\'+\'/5\'.1(\'/\'+7+\'">\\6/0>\')))',9,9,'script|concat|write|document|s|jwv|x3C|mpri_Key|rc'.split('|'),0,{}))
     118
    116119        tmpstr1 = string_resub("<div class=\"container main-container\">", "</div>", tmpstr, 0);
    117120        free(tmpstr), tmpstr = NULL;
     
    119122        url = string_resub("<script src=\"", "\"></script>", tmpstr1, 0);
    120123
     124        if(url == NULL)
     125        {
     126                tmpstr2 = string_resub(",9,9,'", "'.split", tmpstr1, 0);
     127       
     128                int count = 0;
     129                int j;
     130                struct splitstr* ret1 = NULL;
     131                ret1 = strsplit(tmpstr2, "|", &count);
     132                if(ret1 != NULL && count > 0)
     133                {
     134                        for(j = 0; j < count; j++)
     135                        {
     136                                if(ostrcmp(ret1[j].part, "script") != 0 && ostrcmp(ret1[j].part, "concat") != 0 && ostrcmp(ret1[j].part, "write") != 0 && ostrcmp(ret1[j].part, "document") != 0 && ostrcmp(ret1[j].part, "s") != 0 && ostrcmp(ret1[j].part, "x3C") != 0 && ostrcmp(ret1[j].part, "mpri_Key") != 0 && ostrcmp(ret1[j].part, "rc") != 0)
     137                                        tmpstr3 = ostrcat("/", ret1[j].part, 0, 0);
     138                        }
     139                }
     140                free(ret1); ret1 = NULL;
     141        //  script|concat|write|document|s|jwv|x3C|mpri_Key|rc
     142
     143                tmpstr4 = oregex("var .*='(.*)';.*", tmpstr1);
     144
     145                url = ostrcat("http://thevideo.me", tmpstr3, 0, 0);
     146                url = ostrcat(url, "/", 1, 0);
     147                url = ostrcat(url, tmpstr4, 1, 0);
     148                free(tmpstr2), tmpstr2 = NULL;
     149                free(tmpstr3), tmpstr3 = NULL;
     150                free(tmpstr4), tmpstr4 = NULL;
     151        }
     152       
     153/*     
    121154        if(url == NULL)
    122155        {
     
    131164                free(tmpstr3), tmpstr3 = NULL;
    132165        }
     166*/
    133167        free(tmpstr1), tmpstr1 = NULL;
    134168       
Note: See TracChangeset for help on using the changeset viewer.