Changeset 29545 for titan/plugins


Ignore:
Timestamp:
07/24/14 09:17:09 (10 years ago)
Author:
obi
Message:

add debug

File:
1 edited

Legend:

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

    r29543 r29545  
    7373                goto end;
    7474        }
    75 
     75printf("111\n");
    7676        srvid = string_resub("SRVID=", ";", tmpstr, 0);
    7777        cauth = string_resub("cauth=", ";", tmpstr, 0);
    7878        cfduid = string_resub("__cfduid=", ";", tmpstr, 0);
    7979        confirm = string_resub("name=\"confirm\" value=\"", "\"", tmpstr, 0);
     80printf("222\n");
     81
     82        if(confirm == NULL) goto end;
     83printf("333\n");
    8084
    8185        hashstr = htmlencode(confirm);
     
    8690        debug(99, "hash: %s", hash);
    8791
     92printf("444\n");
     93        if(hash == NULL) goto end;
     94
    8895        hashlen = oitoa(strlen(hash));
    8996        debug(99, "hashlen: %s", hashlen);
     97printf("555\n");
    9098
    9199        //create send string
     
    106114        send = ostrcat(send, hash, 1, 0);
    107115        debug(99, "send: %s", send);
     116printf("666\n");
    108117
    109         waitmsgbar(12, 0, _("Connect with Hoster wait 12 seconds"), 1);
     118        waitmsgbar(16, 0, _("Connect with Hoster wait 12 seconds"), 1);
     119printf("777\n");
    110120
    111121        tmpstr = gethttpreal(tmphost, tmppath, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
     
    113123        debug(99, "tmpstr: %s", tmpstr);
    114124        titheklog(debuglevel, "/tmp/firedrive2_tmpstr_post", NULL, NULL, NULL, tmpstr);
     125printf("888\n");
    115126
    116127        if(tmpstr == NULL)
     
    125136                goto end;
    126137        }
     138printf("999\n");
    127139       
    128140        if(ostrstr(tmpstr, "warning_message") != NULL)
     
    135147                goto end;
    136148        }
     149printf("aaa\n");
    137150
    138151        streamlink = string_resub("file: '", "'", tmpstr, 0);
    139152        titheklog(debuglevel, "/tmp/firedrive4_streamlink", NULL, NULL, NULL, streamlink1);
     153printf("bbb\n");
    140154
    141155        free(tmpstr); tmpstr = NULL;
     156printf("ccc\n");
    142157
    143158end:
Note: See TracChangeset for help on using the changeset viewer.