Changeset 24237
- Timestamp:
- 10/12/13 15:38:35 (10 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/ard.h
r24234 r24237 49 49 free(ip), ip = NULL; 50 50 51 51 titheklog(debuglevel, "/tmp/ard2_streamurl", NULL, streamurl); 52 52 53 53 // segfault munmap_chunk(): invalid pointer -
titan/plugins/tithek/beeg.h
r24235 r24237 29 29 free(ip), ip = NULL; 30 30 31 31 titheklog(debuglevel, "/tmp/beeg2_streamurl", NULL, streamurl); 32 32 33 33 // segfault munmap_chunk(): invalid pointer -
titan/plugins/tithek/filenuke.h
r24235 r24237 199 199 free(charlist), charlist = NULL; 200 200 201 201 titheklog(debuglevel, "/tmp/filenuke7_tmpstr_last", NULL, tmpstr); 202 202 203 203 streamlink = oregex(".*file.*(http:.*video.flv).*image.*", tmpstr); -
titan/plugins/tithek/flashx.h
r24236 r24237 35 35 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 36 36 37 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 53 titheklog(debuglevel, "/tmp/flashx2_tmpstr_get2", NULL, tmpstr); 54 54 55 55 free(tmpstr); tmpstr = NULL; … … 71 71 } 72 72 73 73 if(debuglevel == 99) system("cp -a /tmp/tithek/x9 /tmp/flashx3_tmpstr_get3"); 74 74 75 75 free(send); send = NULL; 76 76 tmpstr = command("cat /tmp/tithek/x9 | sed '1,1d' | zcat"); 77 77 78 78 titheklog(debuglevel, "/tmp/flashx4_tmpstr_get3_zcat", NULL, tmpstr); 79 79 80 80 streamlink = string_resub("<file>", "</file>", tmpstr, 0); -
titan/plugins/tithek/kinox.h
r22339 r24237 54 54 { 55 55 int ret = 1; 56 int debuglevel = getconfigint("debuglevel", NULL); 56 57 57 58 if(listbox == NULL || listbox->select == NULL || listbox->select->handle == NULL) … … 95 96 tmpstr = string_resub("<div id=\"beep\" class=\"beep\"></div>", "</table>", tmpstr, 0); 96 97 97 if(getconfigint("debuglevel", NULL) == 99) 98 writesys("/tmp/kinox1_tmpstr", tmpstr, 0); 99 100 98 titheklog(debuglevel, "/tmp/kinox1_tmpstr", NULL, tmpstr); 99 101 100 int count = 0; 102 101 int incount = 0; … … 198 197 { 199 198 debug(99, "link: %s", link); 199 int debuglevel = getconfigint("debuglevel", NULL); 200 200 int ret = 1, series = 0; 201 201 char* ip = NULL, *pos = NULL, *path = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL, *tmpstr4 = NULL, *tmpstr5 = NULL, *line = NULL, *url = NULL, *url2 = NULL, *url3 = NULL, *url4 = NULL, *pathnew = NULL; … … 215 215 216 216 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 217 if(getconfigint("debuglevel", NULL) == 99) 218 writesys("/tmp/kinox2_tmpstr", tmpstr, 0); 217 titheklog(debuglevel, "/tmp/kinox2_tmpstr", NULL, tmpstr); 219 218 220 219 if(tmpstr != NULL) … … 291 290 { 292 291 tmpstr = string_resub("<ul id=\"HosterList\" class=\"Sortable\">", "</ul>", tmpstr, 0); 293 if(getconfigint("debuglevel", NULL) == 99) 294 writesys("/tmp/kinox3_tmpstr", tmpstr, 0); 292 titheklog(debuglevel, "/tmp/kinox3_tmpstr", NULL, tmpstr); 295 293 296 294 int count = 0; … … 316 314 pathnew = ostrcat("/aGET/Mirror/", hlink, 0, 0); 317 315 318 char* logfile = ostrcat("/tmp/kinox4_pathnew1", hname, 0, 0); 319 if(getconfigint("debuglevel", NULL) == 99) 320 writesys(logfile, pathnew, 0); 321 free(logfile), logfile= NULL; 316 titheklog(debuglevel, "/tmp/kinox4_pathnew1", hname, pathnew); 322 317 323 318 tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 324 319 free(pathnew), pathnew = NULL; 325 320 326 logfile = ostrcat("/tmp/kinox5_tmpstr1", hname, 0, 0); 327 if(getconfigint("debuglevel", NULL) == 99) 328 writesys(logfile, tmpstr1, 0); 329 free(logfile), logfile= NULL; 321 titheklog(debuglevel, "/tmp/kinox5_tmpstr1", hname, tmpstr1); 330 322 331 323 tmpstr1 = string_replace_all("\\", "", tmpstr1, 1); … … 338 330 pathnew = ostrcat(pathnew, "&Part=2", 1, 0); 339 331 340 logfile = ostrcat("/tmp/kinox6_pathnew2", hname, 0, 0); 341 if(getconfigint("debuglevel", NULL) == 99) 342 writesys(logfile, pathnew, 0); 343 free(logfile), logfile= NULL; 332 titheklog(debuglevel, "/tmp/kinox6_pathnew2", hname, pathnew); 344 333 345 334 tmpstr3 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 346 335 free(pathnew), pathnew = NULL; 347 336 348 logfile = ostrcat("/tmp/kinox7_tmpstr3", hname, 0, 0); 349 if(getconfigint("debuglevel", NULL) == 99) 350 writesys(logfile, tmpstr3, 0); 351 free(logfile), logfile= NULL; 337 titheklog(debuglevel, "/tmp/kinox7_tmpstr3", hname, tmpstr3); 352 338 353 339 tmpstr3 = string_replace_all("\\", "", tmpstr3, 1); … … 360 346 pathnew = ostrcat(pathnew, "&Part=3", 1, 0); 361 347 362 logfile = ostrcat("/tmp/kinox6_pathnew3", hname, 0, 0); 363 if(getconfigint("debuglevel", NULL) == 99) 364 writesys(logfile, pathnew, 0); 365 free(logfile), logfile= NULL; 348 titheklog(debuglevel, "/tmp/kinox6_pathnew3", hname, pathnew); 366 349 367 350 tmpstr4 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 368 351 free(pathnew), pathnew = NULL; 369 352 370 logfile = ostrcat("/tmp/kinox7_tmpstr4", hname, 0, 0); 371 if(getconfigint("debuglevel", NULL) == 99) 372 writesys(logfile, tmpstr4, 0); 373 free(logfile), logfile= NULL; 353 titheklog(debuglevel, "/tmp/kinox7_tmpstr4", hname, tmpstr4); 374 354 375 355 tmpstr4 = string_replace_all("\\", "", tmpstr4, 1); … … 382 362 pathnew = ostrcat(pathnew, "&Part=4", 1, 0); 383 363 384 logfile = ostrcat("/tmp/kinox6_pathnew4", hname, 0, 0); 385 if(getconfigint("debuglevel", NULL) == 99) 386 writesys(logfile, pathnew, 0); 387 free(logfile), logfile= NULL; 364 titheklog(debuglevel, "/tmp/kinox6_pathnew4", hname, pathnew); 388 365 389 366 tmpstr5 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 390 367 free(pathnew), pathnew = NULL; 391 368 392 logfile = ostrcat("/tmp/kinox7_tmpstr5", hname, 0, 0); 393 if(getconfigint("debuglevel", NULL) == 99) 394 writesys(logfile, tmpstr5, 0); 395 free(logfile), logfile= NULL; 369 titheklog(debuglevel, "/tmp/kinox7_tmpstr5", hname, tmpstr5); 396 370 397 371 tmpstr5 = string_replace_all("\\", "", tmpstr5, 1); … … 818 792 writesys(tmpstr, line, 0); 819 793 820 if(getconfigint("debuglevel", NULL) == 99) 821 writesys("/tmp/kinox8_line", line, 0); 794 titheklog(debuglevel, "/tmp/kinox8_line", NULL, line); 822 795 823 796 struct tithek* tnode = (struct tithek*)listbox->select->handle; … … 832 805 { 833 806 debug(99, "link: %s", link); 807 int debuglevel = getconfigint("debuglevel", NULL); 834 808 int ret = 1; 835 809 char* ip = NULL, *pathnew = NULL, *seriesid = NULL, *searchname = NULL, *url = NULL, *session = NULL, *episode = NULL, *pos = NULL, *path = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *line = NULL; … … 1035 1009 writesys(tmpstr, line, 0); 1036 1010 1037 if(getconfigint("debuglevel", NULL) == 99) 1038 writesys("/tmp/kinox9_line", line, 0); 1011 titheklog(debuglevel, "/tmp/kinox9_line", NULL, line); 1039 1012 1040 1013 struct tithek* tnode = (struct tithek*)listbox->select->handle; -
titan/plugins/tithek/mlehd.h
r22199 r24237 5 5 { 6 6 debug(99, "link %s", link); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* ip = NULL, *pos = NULL, *path = NULL, *streamurl = NULL, *tmpstr = NULL, *tmppath = NULL; 8 9 … … 37 38 free(tmppath), tmppath = NULL; 38 39 39 if(getconfigint("debuglevel", NULL) == 99) 40 writesys("/tmp/mlehd2_streamurl", streamurl, 0); 40 titheklog(debuglevel, "/tmp/mlehd2_streamurl", NULL, streamurl); 41 41 42 42 // segfault munmap_chunk(): invalid pointer -
titan/plugins/tithek/movie4k.h
r23699 r24237 254 254 { 255 255 debug(99, "link: %s", link); 256 int debuglevel = getconfigint("debuglevel", NULL); 256 257 int ret = 1; 257 258 char* ip = NULL, *pos = NULL, *path = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *line = NULL, *url = NULL, *url2 = NULL, *url3 = NULL, *url4 = NULL, *pathnew = NULL, *hname = NULL, *id = NULL, *logfile = NULL, *tmphname = NULL, *hnamein = NULL, *nolinks = NULL; … … 271 272 272 273 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 273 if(getconfigint("debuglevel", NULL) == 99) 274 writesys("/tmp/movie4k2_tmpstr", tmpstr, 0); 274 titheklog(debuglevel, "/tmp/movie4k2_tmpstr", NULL, tmpstr); 275 275 276 276 if(tmpstr != NULL) … … 331 331 logfile = ostrcat("/tmp/movie4k4_pathnew1", id, 0, 0); 332 332 logfile = ostrcat(logfile, "_", 1, 0); 333 logfile = ostrcat(logfile, tmphname, 1, 0); 334 335 if(getconfigint("debuglevel", NULL) == 99) 336 writesys(logfile, pathnew, 0); 333 titheklog(debuglevel, logfile, tmphname, pathnew); 337 334 free(logfile), logfile= NULL; 335 338 336 url = ostrcat(pathnew, NULL, 0, 0); 339 337 } … … 667 665 { 668 666 debug(99, "link: %s", link); 667 int debuglevel = getconfigint("debuglevel", NULL); 669 668 int ret = 1, series = 0; 670 669 char* ip = NULL, *pos = NULL, *id = NULL, *tpath = NULL, *path = NULL, *tmpstr = NULL, *line = NULL, *episode = NULL; … … 704 703 tmpstr = gethttp(ip, tpath, 80, NULL, NULL, 10000, NULL, 0); 705 704 free(tpath), tpath = NULL; 706 if(getconfigint("debuglevel", NULL) == 99) 707 writesys("/tmp/movie4k2_tmpstr", tmpstr, 0); 705 titheklog(debuglevel, "/tmp/movie4k2_tmpstr", NULL, tmpstr); 708 706 709 707 if(tmpstr != NULL) … … 799 797 writesys(tmpstr, line, 0); 800 798 801 if(getconfigint("debuglevel", NULL) == 99) 802 writesys("/tmp/movie4k8_line", line, 0); 799 titheklog(debuglevel, "/tmp/movie4k8_line", NULL, line); 803 800 804 801 struct tithek* tnode = (struct tithek*)listbox->select->handle; … … 812 809 { 813 810 debug(99, "link: %s", link); 811 int debuglevel = getconfigint("debuglevel", NULL); 814 812 int ret = 1; 815 813 char* ip = NULL, *pos = NULL, *tpath = NULL, *path = NULL, *tmpstr = NULL, *line = NULL; … … 836 834 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 837 835 free(tpath), tpath = NULL; 838 if(getconfigint("debuglevel", NULL) == 99) 839 writesys("/tmp/movie4k2_tmpstr", tmpstr, 0); 836 titheklog(debuglevel, "/tmp/movie4k2_tmpstr", NULL, tmpstr); 840 837 841 838 if(tmpstr != NULL) … … 912 909 writesys(tmpstr, line, 0); 913 910 914 if(getconfigint("debuglevel", NULL) == 99) 915 writesys("/tmp/movie4k8_line", line, 0); 911 titheklog(debuglevel, "/tmp/movie4k8_line", NULL, line); 916 912 917 913 struct tithek* tnode = (struct tithek*)listbox->select->handle; … … 925 921 { 926 922 debug(99, "link: %s", link); 923 int debuglevel = getconfigint("debuglevel", NULL); 927 924 int ret = 1; 928 925 char* ip = NULL, *pos = NULL, *tpath = NULL, *path = NULL, *tmpstr = NULL, *line = NULL; … … 950 947 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 951 948 free(tpath), tpath = NULL; 952 if(getconfigint("debuglevel", NULL) == 99) 953 writesys("/tmp/movie4k2_tmpstr", tmpstr, 0); 949 titheklog(debuglevel, "/tmp/movie4k2_tmpstr", NULL, tmpstr); 954 950 955 951 if(tmpstr != NULL) … … 1035 1031 writesys(tmpstr, line, 0); 1036 1032 1037 if(getconfigint("debuglevel", NULL) == 99) 1038 writesys("/tmp/movie4k8_line", line, 0); 1033 titheklog(debuglevel, "/tmp/movie4k8_line", NULL, line); 1039 1034 1040 1035 struct tithek* tnode = (struct tithek*)listbox->select->handle; -
titan/plugins/tithek/myvideo.h
r23760 r24237 7 7 { 8 8 debug(99, "link(%d): %s", flag, input); 9 int debuglevel = getconfigint("debuglevel", NULL); 9 10 char* ip = NULL, *pos = NULL, *path = NULL, *pageUrl = NULL, *playpath = NULL, *video_id = NULL, *source = NULL, *streamurl = NULL, *tmpstr_uni = NULL, *b64 = NULL, *key = NULL, *newurl = NULL, *link = NULL, *tmpstr = NULL, *tmppath = NULL, *error = NULL; 10 11 … … 43 44 unlink("/tmp/myvideo_tmpstr_error"); 44 45 45 if(getconfigint("debuglevel", NULL) == 99) 46 writesys("/tmp/myvideo_tmpstr_error", tmpstr, 0); 46 titheklog(debuglevel, "/tmp/myvideo_tmpstr_error", NULL, tmpstr); 47 47 48 48 if(ostrstr(error, "<div class='error sBold' id='error_screen_body'>") == NULL) … … 62 62 debug(99, "link: http://%s/%s", ip, path); 63 63 64 if(getconfigint("debuglevel", NULL) == 99) 65 writesys("/tmp/myvideo_tmpstr", tmpstr, 0); 64 titheklog(debuglevel, "/tmp/myvideo_tmpstr", NULL, tmpstr); 66 65 67 66 /* … … 119 118 htmldecode(tmpstr_uni, tmpstr_uni); 120 119 121 if(getconfigint("debuglevel", NULL) == 99) 122 writesys("/tmp/myvideo_tmpstr_uni", tmpstr_uni, 0); 120 titheklog(debuglevel, "/tmp/myvideo_tmpstr_uni", NULL, tmpstr_uni); 123 121 124 122 if(ostrstr(tmpstr_uni, "connectionurl='rtmp")) -
titan/plugins/tithek/nowvideo.h
r20021 r24237 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; … … 32 33 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 33 34 34 if(getconfigint("debuglevel", NULL) == 99) 35 writesys("/tmp/nowvideo1", tmpstr, 0); 35 titheklog(debuglevel, "/tmp/nowvideo1", NULL, tmpstr); 36 36 37 37 if(ostrstr(tmpstr, "The file is being transfered to our other servers. This may take few minutes.") != NULL) … … 59 59 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 60 60 61 if(getconfigint("debuglevel", NULL) == 99) 62 writesys("/tmp/nowvideo2", tmpstr, 0); 61 titheklog(debuglevel, "/tmp/nowvideo2", NULL, tmpstr); 63 62 64 63 sleep(1);
Note: See TracChangeset
for help on using the changeset viewer.