Ignore:
Timestamp:
Oct 12, 2013, 4:00:09 PM (6 years ago)
Author:
nit
Message:

[titan] tithek optimize

File:
1 edited

Legend:

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

    r19879 r24238  
    55{
    66        debug(99, "in host: %s file: %s", host, file);
     7        int debuglevel = getconfigint("debuglevel", NULL);
    78        char* tmphost = NULL;
    89        char* tmpfile = NULL;
     
    105106        debug(99, "hash: %s", hash);
    106107        hashlen = oitoa(strlen(hash));
    107        
     108
    108109        //create send string
    109110        free(send), send = NULL;
     
    123124        free(tmpstr), tmpstr = NULL;
    124125        tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0);
    125         if(getconfigint("debuglevel", NULL) == 99)
    126                 writesys("/tmp/streamcould2_tmpstr_post", tmpstr, 0);
     126        titheklog(debuglevel, "/tmp/streamcould2_tmpstr_post", NULL, tmpstr);
    127127
    128128//      streamlink = oregex(".*file: \".*(http:.*video.mp4).*\".*", tmpstr);
    129129        streamlink = string_resub("file: \"", "\"", tmpstr, 0);
    130         if(getconfigint("debuglevel", NULL) == 99)
    131                 writesys("/tmp/streamcould3_streamlink", streamlink, 0);
     130        titheklog(debuglevel, "/tmp/streamcould3_streamlink", NULL, streamlink);
    132131
    133132        free(tmpstr); tmpstr = NULL;
Note: See TracChangeset for help on using the changeset viewer.