Changeset 38833
- Timestamp:
- 09/16/16 13:49:40 (7 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/promptfile.h
r38816 r38833 47 47 debug(99, "chashvalue: %s", chashvalue); 48 48 49 post = ostrcat(chashname, "=", 0, 0); 50 post = ostrcat(post, extra, 1, 0); 51 post = ostrcat(post, chashvalue, 1, 0); 52 free(chashname), chashname = NULL; 53 free(extra), extra = NULL; 54 free(chashvalue), chashvalue = NULL; 49 if(chashname != NULL) 50 { 51 post = ostrcat(chashname, "=", 0, 0); 52 post = ostrcat(post, extra, 1, 0); 53 post = ostrcat(post, chashvalue, 1, 0); 54 free(chashname), chashname = NULL; 55 free(extra), extra = NULL; 56 free(chashvalue), chashvalue = NULL; 57 58 debug(99, "post: %s", post); 59 60 free(tmpstr), tmpstr = NULL; 61 tmpstr = gethttps(tmplink, NULL, post, NULL, NULL, tmplink, 1); 62 titheklog(debuglevel, "/tmp/promptfile2_post", NULL, NULL, NULL, tmpstr); 63 } 55 64 56 debug(99, "post: %s", post); 65 // src: "http://www.promptfile.com/file/eyJpIjoiRDFEM0M1MEZGNC00MTBDRTA2RDY5IiwiZSI6MTQ3NDAxNTU0OSwidCI6Im1vYmlsZSIsImgiOiJlZmE1ZmQ2NzBlMDJiOWQ4ZjEzMTBlZjg5NzVlYTBlNzUzZjU1YzViIiwicyI6MX0=" } 66 tmpstr2 = string_resub("flowplayer(container", "native_fullscreen", tmpstr, 0); 57 67 58 tmpstr = gethttps(tmplink, NULL, post, NULL, NULL, tmplink, 1);59 titheklog(debuglevel, "/tmp/promptfile2_post", NULL, NULL, NULL, tmpstr);68 if(tmpstr2 != NULL) 69 streamlink = oregex("src:.*\"(.*)\" }.*", tmpstr2); 60 70 61 tmpstr2 = string_resub("flowplayer(container", "native_fullscreen", tmpstr, 0); 62 // src: "http://www.promptfile.com/file/eyJpIjoiRDFEM0M1MEZGNC00MTBDRTA2RDY5IiwiZSI6MTQ3NDAxNTU0OSwidCI6Im1vYmlsZSIsImgiOiJlZmE1ZmQ2NzBlMDJiOWQ4ZjEzMTBlZjg5NzVlYTBlNzUzZjU1YzViIiwicyI6MX0=" } 63 64 streamlink = oregex("src:.*\"(.*)\" }.*", tmpstr); 71 if(streamlink == NULL) 72 { 73 // $f("player", getjspath()+"player.swf", { 74 tmpstr2 = string_resub("function initPlayer", "autoBuffering", tmpstr, 0); 75 streamlink = string_resub("url: '", "',", tmpstr2, 0); 76 } 65 77 titheklog(debuglevel, "/tmp/promptfile3_streamlink", NULL, NULL, NULL, streamlink); 66 78 67 79 end: 68 80 -
titan/plugins/tithek/vidzi.h
r38827 r38833 34 34 url = string_resub("<IFRAME SRC=\"", "\"", tmpstr, 0); 35 35 36 free(tmpstr), tmpstr = NULL; 36 37 tmpstr = gethttps(url, NULL, NULL, NULL, NULL, NULL, 1); 37 38 titheklog(debuglevel, "/tmp/vidzi2_get", NULL, NULL, NULL, tmpstr);
Note: See TracChangeset
for help on using the changeset viewer.