Changeset 38266


Ignore:
Timestamp:
08/21/16 20:39:49 (7 years ago)
Author:
obi
Message:

fix thevideo change

File:
1 edited

Legend:

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

    r38198 r38266  
    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;
     9        char* vhash = NULL, *gfk = NULL, *fname = NULL, *hash = NULL, *post = NULL, *inhu = NULL, *op = NULL, *vt = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL;
    1010
    1111        if(link == NULL) return NULL;
     
    115115
    116116        tmpstr1 = string_resub("<div class=\"container main-container\">", "</div>", tmpstr, 0);
     117        free(tmpstr), tmpstr = NULL;
    117118        debug(99, "tmpstr1: %s", tmpstr1);
    118         free(tmpstr), tmpstr = NULL;
     119        url = string_resub("<script src=\"", "\"></script>", tmpstr1, 0);
    119120
    120         url = string_resub("<script src=\"", "\"></script>", tmpstr1, 0);
     121        if(url == NULL)
     122        {
     123                tmpstr2 = string_resub("' + '", "'.concat", tmpstr1, 0);
     124                tmpstr3 = string_resub("var tksucks='", "';", tmpstr1, 0);
     125                url = ostrcat("http://thevideo.me", tmpstr2, 0, 0);
     126                url = ostrcat(url, "/", 1, 0);
     127                url = ostrcat(url, tmpstr3, 1, 0);
     128                free(tmpstr2), tmpstr2 = NULL;
     129                free(tmpstr3), tmpstr3 = NULL;
     130        }
    121131        free(tmpstr1), tmpstr1 = NULL;
    122 
     132       
    123133/*
    124134        <script src="https://thevideo.me/jwjsv/sfqlqb288ft2"></script>
    125135        https://thevideo.me/jwjsv/sfqlqb288ft2
     136
     137
     138        var tksucks='LDw2JVcsJyVSPEchUz4zMUcK';document.write('<script s'.concat( 'rc="' + '/jwv'.concat( '/'+tksucks+'">\x3C/script>' ) ) )
     139        http://thevideo.me/jwv/LDlHJFE+RihWPEMtUz5DKUM
    126140*/
    127141
Note: See TracChangeset for help on using the changeset viewer.