Changeset 24236 for titan/plugins/tithek/flashx.h
- Timestamp:
- 10/12/13 15:06:29 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/flashx.h
r19881 r24236 5 5 { 6 6 debug(99, "in host: %s file: %s", host, file); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* tmphost = NULL; 8 9 char* tmpfile = NULL; … … 34 35 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 35 36 36 if(getconfigint("debuglevel", NULL) == 99) 37 writesys("/tmp/flashx1_tmpstr_get1", tmpstr, 0); 37 titheklog(debuglevel, "/tmp/flashx1_tmpstr_get1", NULL, tmpstr); 38 38 39 39 free(tmpstr); tmpstr = NULL; … … 51 51 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 52 52 53 if(getconfigint("debuglevel", NULL) == 99) 54 writesys("/tmp/flashx2_tmpstr_get2", tmpstr, 0); 53 titheklog(debuglevel, "/tmp/flashx2_tmpstr_get2", NULL, tmpstr); 55 54 56 55 free(tmpstr); tmpstr = NULL; … … 72 71 } 73 72 74 if(getconfigint("debuglevel", NULL) == 99) 75 system("cp -a /tmp/tithek/x9 /tmp/flashx3_tmpstr_get3"); 73 if(debuglevel == 99) system("cp -a /tmp/tithek/x9 /tmp/flashx3_tmpstr_get3"); 76 74 77 75 free(send); send = NULL; 78 76 tmpstr = command("cat /tmp/tithek/x9 | sed '1,1d' | zcat"); 79 77 80 if(getconfigint("debuglevel", NULL) == 99) 81 writesys("/tmp/flashx4_tmpstr_get3_zcat", tmpstr, 0); 78 titheklog(debuglevel, "/tmp/flashx4_tmpstr_get3_zcat", NULL, tmpstr); 82 79 83 80 streamlink = string_resub("<file>", "</file>", tmpstr, 0); 84 if(getconfigint("debuglevel", NULL) == 99) 85 writesys("/tmp/flashx5_streamlink", streamlink, 0); 81 titheklog(debuglevel, "/tmp/flashx5_streamlink", NULL, streamlink); 86 82 87 83 end:
Note: See TracChangeset
for help on using the changeset viewer.