Changeset 19879
- Timestamp:
- 02/01/13 15:43:21 (11 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/beeg.h
r19878 r19879 19 19 tmpstr = gethttp(ip, path, 80, NULL, NULL, NULL, 0); 20 20 if(getconfigint("debuglevel", NULL) == 99) 21 writesys("/ var/usr/local/share/titan/plugins/tithek/tmpstr", tmpstr, 0);21 writesys("/tmp/beeg1_tmpstr", tmpstr, 0); 22 22 23 23 if(tmpstr != NULL) … … 28 28 free(tmpstr); tmpstr = NULL; 29 29 free(ip), ip = NULL; 30 31 if(getconfigint("debuglevel", NULL) == 99) 32 writesys("/tmp/beeg2_streamurl", streamurl, 0); 30 33 31 34 // segfault munmap_chunk(): invalid pointer -
titan/plugins/tithek/filenuke.h
r19878 r19879 38 38 sleep(2); 39 39 if(getconfigint("debuglevel", NULL) == 99) 40 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_gethttp", tmpstr, 0);40 writesys("/tmp/filenuke1_tmpstr", tmpstr, 0); 41 41 42 42 if(ostrstr(tmpstr, "<title>The page is temporarily unavailable</title>") != NULL) … … 92 92 post = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0); 93 93 if(getconfigint("debuglevel", NULL) == 99) 94 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_post1", post, 0);94 writesys("/tmp/filenuke2_tmpstr_post1", post, 0); 95 95 96 96 // gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/post", NULL, NULL, 0, send, NULL, 5000, 0); … … 98 98 // debug(99, "cmd: %s", cmd); 99 99 // post = command(cmd); 100 // writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_post1", post, 0);100 // writesys("/tmp/filenuke2_post1", post, 0); 101 101 // free(cmd); cmd = NULL; 102 102 … … 104 104 tmpstr = string_resub(";return p}('", ");'", post, 0); 105 105 if(getconfigint("debuglevel", NULL) == 99) 106 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_tmpstr1", tmpstr, 0);106 writesys("/tmp/filenuke3_tmpstr1", tmpstr, 0); 107 107 108 108 post = string_replace_all(tmpstr, "", post, 1); 109 109 post = string_replace_all(";return p}(');'", "", post, 1); 110 110 if(getconfigint("debuglevel", NULL) == 99) 111 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_post2", post, 0);111 writesys("/tmp/filenuke4_post2", post, 0); 112 112 113 113 free(tmpstr),tmpstr = NULL; … … 115 115 tmpstr = string_resub(";return p}('", ");'", post, 0); 116 116 if(getconfigint("debuglevel", NULL) == 99) 117 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_tmpstr2", tmpstr, 0);117 writesys("/tmp/filenuke5_tmpstr2", tmpstr, 0); 118 118 119 119 b36code = oregex(".*;',[0-9]{2,2},[0-9]{2,2},'(.*)'.split.*", post); … … 121 121 b36code = string_replace_all("||", "| |", b36code, 1); 122 122 if(getconfigint("debuglevel", NULL) == 99) 123 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_b36code2", b36code, 0);123 writesys("/tmp/filenuke6_b36code2", b36code, 0); 124 124 125 125 struct splitstr* ret1 = NULL; … … 201 201 202 202 if(getconfigint("debuglevel", NULL) == 99) 203 writesys("/ var/usr/local/share/titan/plugins/tithek/filenuke_tmpstr_last", tmpstr, 0);203 writesys("/tmp/filenuke7_tmpstr_last", tmpstr, 0); 204 204 205 205 streamlink = oregex(".*file.*(http:.*video.flv).*image.*", tmpstr); … … 230 230 if(streamlink == NULL) 231 231 streamlink = oregex(".*value=.*(http:.*video.avi).*\".*", tmpstr); 232 233 if(getconfigint("debuglevel", NULL) == 99) 234 writesys("/tmp/filenuke8_streamlink", streamlink, 0); 232 235 233 236 free(tmpstr); tmpstr = NULL; -
titan/plugins/tithek/flashx.h
r19878 r19879 11 11 char* ip = NULL; 12 12 char* streamlink = NULL; 13 14 unlink("/tmp/tithek/x9"); 13 15 14 16 if(host == NULL || file == NULL) return NULL; … … 33 35 34 36 if(getconfigint("debuglevel", NULL) == 99) 35 writesys("/ var/usr/local/share/titan/plugins/tithek/flashx1", tmpstr, 0);37 writesys("/tmp/flashx1_tmpstr_get1", tmpstr, 0); 36 38 37 39 free(tmpstr); tmpstr = NULL; … … 50 52 51 53 if(getconfigint("debuglevel", NULL) == 99) 52 writesys("/ var/usr/local/share/titan/plugins/tithek/flashx2", tmpstr, 0);54 writesys("/tmp/flashx2_tmpstr_get2", tmpstr, 0); 53 55 54 56 free(tmpstr); tmpstr = NULL; … … 64 66 gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/x9", NULL, NULL, 0, send, NULL, 5000, 0); 65 67 68 if(!file_exist("/tmp/tithek/x9")) 69 { 70 textbox(_("Message"), _("This file doesn't exist, or has been removed") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 71 goto end; 72 } 73 74 if(getconfigint("debuglevel", NULL) == 99) 75 system("cp -a /tmp/tithek/x9 /tmp/flashx3_tmpstr_get3", tmpstr, 0); 76 66 77 free(send); send = NULL; 67 78 tmpstr = command("cat /tmp/tithek/x9 | sed '1,1d' | zcat"); 68 79 69 80 if(getconfigint("debuglevel", NULL) == 99) 70 writesys("/ var/usr/local/share/titan/plugins/tithek/flashx4", tmpstr, 0);81 writesys("/tmp/flashx4_tmpstr_get3_zcat", tmpstr, 0); 71 82 72 83 streamlink = string_resub("<file>", "</file>", tmpstr, 0); 84 if(getconfigint("debuglevel", NULL) == 99) 85 writesys("/tmp/flashx5_streamlink", streamlink, 0); 73 86 87 end: 74 88 free(tmphost); tmphost = NULL; 75 89 free(tmpfile); tmpfile = NULL; -
titan/plugins/tithek/putlocker.h
r19841 r19879 22 22 char* streamlink1 = NULL; 23 23 24 unlink("/tmp/tithek/get"); 25 unlink("/tmp/tithek/x9"); 26 24 27 if(host == NULL || file == NULL) return NULL; 25 28 … … 50 53 goto end; 51 54 } 52 55 if(getconfigint("debuglevel", NULL) == 99) 56 system("cp -a /tmp/tithek/get /tmp/putlocker1_tmpstr_get"); 57 53 58 char* header = NULL; 54 59 header = command("cat /tmp/tithek/get"); … … 82 87 free(cmd); cmd = NULL; 83 88 free(lines); lines = NULL; 89 if(getconfigint("debuglevel", NULL) == 99) 90 writesys("/tmp/putlocker2_tmpstr_zcat", tmpstr, 0); 84 91 85 92 //get hash from tmpstr … … 119 126 gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/x9", NULL, NULL, 0, send, NULL, 5000, 0); 120 127 sleep(1); 128 if(getconfigint("debuglevel", NULL) == 99) 129 system("cp -a /tmp/tithek/x9 /tmp/putlocker3_tmpstr_post"); 121 130 122 131 free(send); send = NULL; 123 132 tmpstr = command("cat /tmp/tithek/x9 | sed '1,1d' | zcat"); 133 if(getconfigint("debuglevel", NULL) == 99) 134 writesys("/tmp/putlocker4_tmpstr_post_zcat", tmpstr, 0); 124 135 125 136 if(ostrstr(tmpstr, "warning_message") != NULL) … … 171 182 free(send); send = NULL; 172 183 184 if(getconfigint("debuglevel", NULL) == 99) 185 writesys("/tmp/putlocker5_tmpstr_get", tmpstr, 0); 186 173 187 //Streaming version of this file is currently not available. You can download it below. 174 188 175 189 //get streamlink1 176 190 streamlink1 = getxmlentry(tmpstr, "url="); 191 if(getconfigint("debuglevel", NULL) == 99) 192 writesys("/tmp/putlocker5_streamlink", streamlink1, 0); 193 177 194 free(tmpstr); tmpstr = NULL; 178 195 -
titan/plugins/tithek/streamcloud.h
r19841 r19879 42 42 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 43 43 44 if(getconfigint("debuglevel", NULL) == 99) 45 writesys("/tmp/streamcould1_tmpstr", tmpstr, 0); 44 46 /* 45 47 old code … … 121 123 free(tmpstr), tmpstr = NULL; 122 124 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0); 123 debug(99, "tmpstr: %s", tmpstr); 125 if(getconfigint("debuglevel", NULL) == 99) 126 writesys("/tmp/streamcould2_tmpstr_post", tmpstr, 0); 127 124 128 // streamlink = oregex(".*file: \".*(http:.*video.mp4).*\".*", tmpstr); 125 129 streamlink = string_resub("file: \"", "\"", tmpstr, 0); 130 if(getconfigint("debuglevel", NULL) == 99) 131 writesys("/tmp/streamcould3_streamlink", streamlink, 0); 132 126 133 free(tmpstr); tmpstr = NULL; 127 134 -
titan/plugins/tithek/tithek.h
r19878 r19879 1268 1268 // addmenulist(&mlist, "File Caching Playback (20MB / 240s)", NULL, NULL, 0, 0); 1269 1269 // addmenulist(&mlist, "File Caching Playback (30MB / 360s)", NULL, NULL, 0, 0); 1270 if( status.expertmodus >= 11)1270 if(file_exist("/var/swap/etc/.tithekdownload") || status.expertmodus >= 11) 1271 1271 addmenulist(&mlist, "Download Full File", NULL, NULL, 0, 0); 1272 1272 } -
titan/plugins/tithek/vidstream.h
r19878 r19879 43 43 44 44 if(getconfigint("debuglevel", NULL) == 99) 45 writesys("/ var/usr/local/share/titan/plugins/tithek/vidstream1", tmpstr, 0);45 writesys("/tmp/vidstream1_tmpstr", tmpstr, 0); 46 46 47 47 sleep(1); … … 119 119 120 120 if(getconfigint("debuglevel", NULL) == 99) 121 writesys("/ var/usr/local/share/titan/plugins/tithek/vidstream2", tmpstr, 0);121 writesys("/tmp/vidstream2_tmpstr_post", tmpstr, 0); 122 122 123 123 sleep(1); 124 124 streamlink = string_resub("file: \"", "\",", tmpstr, 0); 125 126 if(getconfigint("debuglevel", NULL) == 99) 127 writesys("/tmp/vidstream3_streamlink", streamlink, 0); 125 128 126 129 end: -
titan/plugins/tithek/xvidstage.h
r19878 r19879 32 32 char* charlist = NULL; 33 33 34 unlink("/tmp/tithek/get"); 35 unlink("/tmp/tithek/post"); 36 34 37 if(host == NULL || file == NULL) return NULL; 35 38 … … 57 60 sleep(1); 58 61 free(send); send = NULL; 59 // system("cp /tmp/tithek/get /var/usr/local/share/titan/plugins/tithek/xvidstage4");60 62 if(!file_exist("/tmp/tithek/get")) 61 63 { … … 64 66 } 65 67 68 if(getconfigint("debuglevel", NULL) == 99) 69 system("cp -a /tmp/tithek/get /tmp/xvidstage1_tmpstr_get", tmpstr, 0); 70 66 71 tmpstr = command("cat /tmp/tithek/get"); 67 72 cookie = string_resub("Set-Cookie: afc=", ";", tmpstr, 0); … … 69 74 70 75 if(getconfigint("debuglevel", NULL) == 99) 71 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage1", tmpstr, 0);76 writesys("/tmp/xvidstage2_tmpstr", tmpstr, 0); 72 77 73 78 free(tmpstr), tmpstr = NULL; … … 95 100 96 101 if(getconfigint("debuglevel", NULL) == 99) 97 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage2", tmpstr, 0);102 writesys("/tmp/xvidstage3_tmpstr_zcat", tmpstr, 0); 98 103 99 104 sleep(1); … … 167 172 /// 168 173 gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/post", NULL, NULL, 0, send, NULL, 5000, 0); 174 175 if(!file_exist("/tmp/tithek/post")) 176 { 177 textbox(_("Message"), _("This file doesn't exist, or has been removed") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 178 goto end; 179 } 180 181 if(getconfigint("debuglevel", NULL) == 99) 182 system("cp -a /tmp/tithek/post /tmp/xvidstage4_tmpstr_post"); 183 169 184 cmd = ostrcat(cmd, "cat /tmp/tithek/post | zcat", 1, 0); 170 185 debug(99, "cmd: %s", cmd); 171 186 post = command(cmd); 172 187 if(getconfigint("debuglevel", NULL) == 99) 173 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage_post1", post, 0);188 writesys("/tmp/xvidstage5_tmpstr_post1_zcat", post, 0); 174 189 free(cmd); cmd = NULL; 175 190 … … 177 192 tmpstr = string_resub(";return p}('", ");'", post, 0); 178 193 if(getconfigint("debuglevel", NULL) == 99) 179 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage_tmpstr1", tmpstr, 0);194 writesys("/tmp/xvidstage6_tmpstr_post1_zcat_resub", tmpstr, 0); 180 195 181 196 post = string_replace_all(tmpstr, "", post, 1); 182 197 post = string_replace_all(";return p}(');'", "", post, 1); 183 198 if(getconfigint("debuglevel", NULL) == 99) 184 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage_post2", post, 0);199 writesys("/tmp/xvidstage7_tmpstr_post2", post, 0); 185 200 186 201 free(tmpstr),tmpstr = NULL; … … 188 203 tmpstr = string_resub(";return p}('", ");'", post, 0); 189 204 if(getconfigint("debuglevel", NULL) == 99) 190 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage_tmpstr2", tmpstr, 0);205 writesys("/tmp/xvidstage8_tmpstr_post2_resub", tmpstr, 0); 191 206 192 207 b36code = oregex(".*;',[0-9]{2,2},[0-9]{2,2},'(.*)'.split.*", post); … … 194 209 b36code = string_replace_all("||", "| |", b36code, 1); 195 210 if(getconfigint("debuglevel", NULL) == 99) 196 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage_b36code2", b36code, 0);211 writesys("/tmp/xvidstage9_tmpstr_post2_resub_b36code2", b36code, 0); 197 212 198 213 struct splitstr* ret1 = NULL; … … 274 289 275 290 if(getconfigint("debuglevel", NULL) == 99) 276 writesys("/ var/usr/local/share/titan/plugins/tithek/xvidstage_tmpstr_last", tmpstr, 0);291 writesys("/tmp/xvidstage10_tmpstr_last", tmpstr, 0); 277 292 278 293 streamlink = oregex(".*file.*(http:.*video.flv).*image.*", tmpstr); … … 303 318 if(streamlink == NULL) 304 319 streamlink = oregex(".*value=.*(http:.*video.avi).*\".*", tmpstr); 320 321 if(getconfigint("debuglevel", NULL) == 99) 322 writesys("/tmp/xvidstage11_streamlink", streamlink, 0); 305 323 306 324 free(tmpstr); tmpstr = NULL;
Note: See TracChangeset
for help on using the changeset viewer.