Changeset 38833 for titan/plugins


Ignore:
Timestamp:
09/16/16 13:49:40 (8 years ago)
Author:
obi
Message:

fix

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

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

    r38816 r38833  
    4747        debug(99, "chashvalue: %s", chashvalue);
    4848
    49         post = ostrcat(chashname, "=", 0, 0);
    50         post = ostrcat(post, extra, 1, 0);
    51         post = ostrcat(post, chashvalue, 1, 0);
    52         free(chashname), chashname = NULL;
    53         free(extra), extra = NULL;
    54         free(chashvalue), chashvalue = NULL;
     49        if(chashname != NULL)
     50        {
     51                post = ostrcat(chashname, "=", 0, 0);
     52                post = ostrcat(post, extra, 1, 0);
     53                post = ostrcat(post, chashvalue, 1, 0);
     54                free(chashname), chashname = NULL;
     55                free(extra), extra = NULL;
     56                free(chashvalue), chashvalue = NULL;
     57       
     58                debug(99, "post: %s", post);
     59       
     60                free(tmpstr), tmpstr = NULL;
     61                tmpstr = gethttps(tmplink, NULL, post, NULL, NULL, tmplink, 1);
     62                titheklog(debuglevel, "/tmp/promptfile2_post", NULL, NULL, NULL, tmpstr);
     63        }
    5564
    56         debug(99, "post: %s", post);
     65// src:  "http://www.promptfile.com/file/eyJpIjoiRDFEM0M1MEZGNC00MTBDRTA2RDY5IiwiZSI6MTQ3NDAxNTU0OSwidCI6Im1vYmlsZSIsImgiOiJlZmE1ZmQ2NzBlMDJiOWQ4ZjEzMTBlZjg5NzVlYTBlNzUzZjU1YzViIiwicyI6MX0=" }
     66        tmpstr2 = string_resub("flowplayer(container", "native_fullscreen", tmpstr, 0);
    5767
    58         tmpstr = gethttps(tmplink, NULL, post, NULL, NULL, tmplink, 1);
    59         titheklog(debuglevel, "/tmp/promptfile2_post", NULL, NULL, NULL, tmpstr);
     68        if(tmpstr2 != NULL)
     69                streamlink = oregex("src:.*\"(.*)\" }.*", tmpstr2);
    6070
    61         tmpstr2 = string_resub("flowplayer(container", "native_fullscreen", tmpstr, 0);
    62 // src:  "http://www.promptfile.com/file/eyJpIjoiRDFEM0M1MEZGNC00MTBDRTA2RDY5IiwiZSI6MTQ3NDAxNTU0OSwidCI6Im1vYmlsZSIsImgiOiJlZmE1ZmQ2NzBlMDJiOWQ4ZjEzMTBlZjg5NzVlYTBlNzUzZjU1YzViIiwicyI6MX0=" }
    63 
    64         streamlink = oregex("src:.*\"(.*)\" }.*", tmpstr);
     71        if(streamlink == NULL)
     72        {
     73// $f("player", getjspath()+"player.swf", {
     74                tmpstr2 = string_resub("function initPlayer", "autoBuffering", tmpstr, 0);
     75                streamlink = string_resub("url: '", "',", tmpstr2, 0);
     76        }
    6577        titheklog(debuglevel, "/tmp/promptfile3_streamlink", NULL, NULL, NULL, streamlink);
    66 
     78       
    6779end:
    6880
  • titan/plugins/tithek/vidzi.h

    r38827 r38833  
    3434        url = string_resub("<IFRAME SRC=\"", "\"", tmpstr, 0);
    3535
     36        free(tmpstr), tmpstr = NULL;
    3637        tmpstr = gethttps(url, NULL, NULL, NULL, NULL, NULL, 1);
    3738        titheklog(debuglevel, "/tmp/vidzi2_get", NULL, NULL, NULL, tmpstr);     
Note: See TracChangeset for help on using the changeset viewer.