Changeset 37484


Ignore:
Timestamp:
Mar 28, 2016, 2:59:00 AM (5 years ago)
Author:
obi
Message:

[tithek] fix divxstage flashx movshare novamov nowvideo videoweed cloudtime

Location:
titan/plugins/tithek
Files:
6 edited

Legend:

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

    r34102 r37484  
    6464        debug(99, "tmppath: %s", tmppath);
    6565*/
     66
     67        tmppath = string_replace("/video/", "/embed/?v=", tmppath, 1);
     68        tmphost = ostrcat("www.cloudtime.to", NULL, 0, 0);
     69
    6670        send = ostrcat(send, "GET ", 1, 0);
    6771        send = ostrcat(send, tmppath, 1, 0);
     
    8185        }
    8286
    83         file = string_replace("/video/", "", tmppath, 0);
     87        file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
     88        if(file == NULL)
     89                file = string_replace("/video/", "", tmppath, 0);
    8490        if(file == NULL)
    8591                file = string_resub("login.php?return=/video/", "\">Log In", tmpstr, 0);
    8692        if(file == NULL)
    8793                file = string_resub("<a href=\"/share.php?id=", "&title=", tmpstr, 0);
    88         if(file == NULL)
    89                 file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
    9094       
    9195        char* r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL;
  • titan/plugins/tithek/flashx.h

    r35527 r37484  
    3737
    3838        tmppath = ostrcat("/embed-", path, 0, 0);
    39         tmphost = string_replace("www.", "", tmphost, 0);
     39//      tmphost = string_replace("www.", "", tmphost, 0);
     40        char* tmpurl = ostrcat(tmphost, "/", 0, 0);
     41        tmpurl = ostrcat(tmpurl, tmppath, 1, 0);
    4042
    41         send = ostrcat(send, "GET ", 1, 0);
    42         send = ostrcat(send, tmppath, 1, 0);
    43         send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0);     
    44         send = ostrcat(send, tmphost, 1, 0);
    45         send = ostrcat(send, "\r\n", 1, 0);     
    46         send = ostrcat(send, "User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\n", 1, 0);     
    47         send = ostrcat(send, "Referer: http://flashx.tv", 1, 0);
    48         send = ostrcat(send, tmppath, 1, 0);
    49         send = ostrcat(send, "\r\n", 1, 0);     
    50         send = ostrcat(send, "Connection: close\r\n", 1, 0);   
    51         send = ostrcat(send, "Accept-Encoding: gzip\r\n\r\n", 1, 0);   
    52 
    53         debug(99, "#############################################################################################################");
    54         debug(99, "send1: %s", send);
    55         debug(99, "#############################################################################################################");
    56 
    57         tmpstr = gethttpreal(tmphost, tmppath, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
    58         debug(99, "tmpstr: %s", tmpstr);
    59         titheklog(debuglevel, "/tmp/flashx_tmpstr_get1", NULL, NULL, NULL, tmpstr);
     43        tmpstr = gethttps(tmpurl, NULL, NULL, NULL, NULL, NULL, 1);
     44        titheklog(debuglevel, "/tmp/flashx_tmpstr_get1", NULL, NULL, NULL, tmpstr);     
     45        free(tmpurl), tmpurl = NULL;
     46        tmpstr = jsunpack(tmpstr);
     47        titheklog(debuglevel, "/tmp/flashx_tmpstr_get2_jsunpack", NULL, NULL, NULL, tmpstr);   
    6048
    6149        if(tmpstr == NULL || ostrstr(tmpstr, "<center>Video not found, deleted or abused, sorry!<br") != NULL)
     
    7058        }
    7159
    72 //      tmpstr2 = oregex(".*(luq4qk.*)\|.*", tmpstr);
    73         tmpstr2 = string_resub("|luq4", "|", tmpstr, 0);
    74         tmpstr2 = ostrcat("/luq4", tmpstr2, 0, 1);
    75         tmpstr2 = ostrcat(tmpstr2, ".smil", 1, 0);
    76         free(tmpstr), tmpstr = NULL;
    77         free(send), send = NULL;
     60        streamlink = oregex(".*(http://.*normal.mp4).*", tmpstr);
    7861
    79         send = ostrcat(send, "GET ", 1, 0);
    80         send = ostrcat(send, tmpstr2, 1, 0);
    81         send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0);     
    82         send = ostrcat(send, tmphost, 1, 0);
    83         send = ostrcat(send, "\r\n", 1, 0);     
    84         send = ostrcat(send, "User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\n", 1, 0);     
    85         send = ostrcat(send, "Referer: http://flashx.tv", 1, 0);
    86         send = ostrcat(send, tmppath, 1, 0);
    87         send = ostrcat(send, "\r\n", 1, 0);     
    88         send = ostrcat(send, "Connection: close\r\n", 1, 0);   
    89         send = ostrcat(send, "Accept-Encoding: gzip\r\n\r\n", 1, 0);   
    90 
    91         debug(99, "#############################################################################################################");
    92         debug(99, "send2: %s", send);
    93         debug(99, "#############################################################################################################");
    94 
    95         tmpstr = gethttpreal(tmphost, tmpstr2, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
    96         debug(99, "tmpstr: %s", tmpstr);
    97         titheklog(debuglevel, "/tmp/flashx_tmpstr_get2", NULL, NULL, NULL, tmpstr);
    98 
    99         playurl = string_resub("<meta base=\"", "vod/\"", tmpstr, 0);
    100         app = ostrcat("vod/", NULL, 0, 0);
    101         playpath = string_resub("<video src=\"", "\"", tmpstr, 0);
    102         swfUrl= ostrcat("http://static.flashx.tv/player6/jwplayer.flash.swf", NULL, 0, 0);
    103         pageUrl = ostrcat(link, NULL, 0, 0);
    104         swfVfy = ostrcat("true", NULL, 0, 0);
     62        if(streamlink == NULL)
     63        {
     64        //      tmpstr2 = oregex(".*(luq4qk.*)\|.*", tmpstr);
     65                tmpstr2 = string_resub("|luq4", "|", tmpstr, 0);
     66                tmpstr2 = ostrcat("/luq4", tmpstr2, 0, 1);
     67                tmpstr2 = ostrcat(tmpstr2, ".smil", 1, 0);
     68                free(tmpstr), tmpstr = NULL;
     69                free(send), send = NULL;
    10570       
    106         streamlink = ostrcat(streamlink, playurl, 1, 0);
    107         streamlink = ostrcat(streamlink, " app=", 1, 0);
    108         streamlink = ostrcat(streamlink, app, 1, 0);
    109         streamlink = ostrcat(streamlink, " playpath=", 1, 0);
    110         streamlink = ostrcat(streamlink, playpath, 1, 0);
    111         streamlink = ostrcat(streamlink, " swfUrl=", 1, 0);
    112         streamlink = ostrcat(streamlink, swfUrl, 1, 0);
    113         streamlink = ostrcat(streamlink, " pageUrl=", 1, 0);
    114         streamlink = ostrcat(streamlink, pageUrl, 1, 0);
    115         streamlink = ostrcat(streamlink, " swfVfy=", 1, 0);
    116         streamlink = ostrcat(streamlink, swfVfy, 1, 0);
    117 
     71                send = ostrcat(send, "GET ", 1, 0);
     72                send = ostrcat(send, tmpstr2, 1, 0);
     73                send = ostrcat(send, " HTTP/1.1\r\nHost: ", 1, 0);     
     74                send = ostrcat(send, tmphost, 1, 0);
     75                send = ostrcat(send, "\r\n", 1, 0);     
     76                send = ostrcat(send, "User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\n", 1, 0);     
     77                send = ostrcat(send, "Referer: http://flashx.tv", 1, 0);
     78                send = ostrcat(send, tmppath, 1, 0);
     79                send = ostrcat(send, "\r\n", 1, 0);     
     80                send = ostrcat(send, "Connection: close\r\n", 1, 0);   
     81                send = ostrcat(send, "Accept-Encoding: gzip\r\n\r\n", 1, 0);   
     82       
     83                debug(99, "#############################################################################################################");
     84                debug(99, "send2: %s", send);
     85                debug(99, "#############################################################################################################");
     86       
     87                tmpstr = gethttpreal(tmphost, tmpstr2, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
     88                debug(99, "tmpstr: %s", tmpstr);
     89                titheklog(debuglevel, "/tmp/flashx_tmpstr_get2", NULL, NULL, NULL, tmpstr);
     90       
     91                playurl = string_resub("<meta base=\"", "vod/\"", tmpstr, 0);
     92                app = ostrcat("vod/", NULL, 0, 0);
     93                playpath = string_resub("<video src=\"", "\"", tmpstr, 0);
     94                swfUrl= ostrcat("http://static.flashx.tv/player6/jwplayer.flash.swf", NULL, 0, 0);
     95                pageUrl = ostrcat(link, NULL, 0, 0);
     96                swfVfy = ostrcat("true", NULL, 0, 0);
     97               
     98                streamlink = ostrcat(streamlink, playurl, 1, 0);
     99                streamlink = ostrcat(streamlink, " app=", 1, 0);
     100                streamlink = ostrcat(streamlink, app, 1, 0);
     101                streamlink = ostrcat(streamlink, " playpath=", 1, 0);
     102                streamlink = ostrcat(streamlink, playpath, 1, 0);
     103                streamlink = ostrcat(streamlink, " swfUrl=", 1, 0);
     104                streamlink = ostrcat(streamlink, swfUrl, 1, 0);
     105                streamlink = ostrcat(streamlink, " pageUrl=", 1, 0);
     106                streamlink = ostrcat(streamlink, pageUrl, 1, 0);
     107                streamlink = ostrcat(streamlink, " swfVfy=", 1, 0);
     108                streamlink = ostrcat(streamlink, swfVfy, 1, 0);
     109        }
    118110        titheklog(debuglevel, "flashx_streamlink", NULL, NULL, NULL, tmpstr);
    119111
  • titan/plugins/tithek/movshare.h

    r30013 r37484  
    5757        tmppath = string_replace("/video/", "/embed.php?v=", tmppath, 1);
    5858        free(tmphost), tmphost = NULL;
    59         tmphost = ostrcat("embed.movshare.net", NULL, 0, 0);
     59//      tmphost = ostrcat("embed.movshare.net", NULL, 0, 0);
     60        tmphost = ostrcat("www.wholecloud.net", NULL, 0, 0);
     61
    6062/////////////
    6163/*
     
    8082        }
    8183
    82         file = string_replace("/embed.php?v=", "", tmppath, 0);
     84        file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
    8385        if(file == NULL)
    84                 file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
     86                file = string_replace("/embed.php?v=", "", tmppath, 0);
    8587       
    8688        char* r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL;
  • titan/plugins/tithek/novamov.h

    r35616 r37484  
    7878        }
    7979
     80        if(ostrstr(link, "auroravid.to/video/") != NULL)
     81                tmppath = string_replace("/video/", "/embed/?v=", tmppath, 1);
     82
    8083        send = ostrcat(send, "GET ", 1, 0);
    8184        send = ostrcat(send, tmppath, 1, 0);
     
    100103                goto end;
    101104        }
    102        
    103         file = string_replace("/video/", "", tmppath, 0);
     105
     106        file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);     
     107        if(file == NULL)
     108                file = string_replace("/video/", "", tmppath, 0);
    104109        if(file == NULL)
    105110                file = string_resub("login.php?return=/video/", "\"", tmpstr, 0);
    106111        if(file == NULL)
    107112                file = string_resub("<a href=\"/share.php?id=", "&title=", tmpstr, 0);
    108         if(file == NULL)
    109                 file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
    110113       
    111114        char* r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL;
  • titan/plugins/tithek/nowvideo.h

    r29526 r37484  
    3636//[titan] send: GET /video/17ba02abf1b74 HTTP/1.1
    3737
    38         if(ostrstr(link, "/embed.php?v=") != NULL)
    39                 tmplink = string_replace("/embed.php?v=", "/video/", tmplink, 1);
    40 
     38//      if(ostrstr(link, "/embed.php?v=") != NULL)
     39//              tmplink = string_replace("/embed.php?v=", "/video/", tmplink, 1);
    4140
    4241        if(tmplink == NULL || ostrncmp("http://", tmplink, 7))
     
    7574        }
    7675
     76        tmppath = string_replace("/video/", "/embed/?v=", tmppath, 1);
     77        tmphost = ostrcat("embed.nowvideo.sx", NULL, 0, 0);
    7778/*
    7879        tmphost = ostrcat(host, NULL, 0, 0);
     
    107108        }
    108109
    109   file = string_replace("/video/", "", tmppath, 0);
     110        file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
     111        if(file == NULL)
     112                file = string_replace("/video/", "", tmppath, 0);
    110113        if(file == NULL)
    111114                file = string_resub("login.php?return=/video/", "\">Log In", tmpstr, 0);
    112115        if(file == NULL)
    113116                file = string_resub("<a href=\"/share.php?id=", "&title=", tmpstr, 0);
    114         if(file == NULL)
    115                 file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
    116117       
    117118        char* r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL;
  • titan/plugins/tithek/videoweed.h

    r30279 r37484  
    6565        debug(99, "tmppath: %s", tmppath);
    6666*/
     67
     68        tmppath = string_replace("/video/", "/embed/?v=", tmppath, 1);
     69        tmppath = string_replace("/file/", "/embed/?v=", tmppath, 1);
     70        tmphost = ostrcat("www.bitvid.sx", NULL, 0, 0);
     71
    6772        send = ostrcat(send, "GET ", 1, 0);
    6873        send = ostrcat(send, tmppath, 1, 0);
     
    8186                goto end;
    8287        }
    83        
    84         file = string_replace("/video/", "", tmppath, 0);
     88
     89        file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
     90        if(file == NULL)
     91                file = string_replace("/video/", "", tmppath, 0);
    8592        if(file == NULL)
    8693                file = string_resub("login.php?return=/video/", "\"", tmpstr, 0);
    8794        if(file == NULL)
    8895                file = string_resub("<a href=\"/share.php?id=", "&title=", tmpstr, 0);
    89         if(file == NULL)
    90                 file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
    9196       
    9297        char* r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL;
Note: See TracChangeset for help on using the changeset viewer.