Changeset 29989
- Timestamp:
- 09/19/14 14:56:33 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/firedrive.h
r29546 r29989 73 73 goto end; 74 74 } 75 printf("111\n"); 75 76 76 srvid = string_resub("SRVID=", ";", tmpstr, 0); 77 77 cauth = string_resub("cauth=", ";", tmpstr, 0); 78 78 cfduid = string_resub("__cfduid=", ";", tmpstr, 0); 79 79 confirm = string_resub("name=\"confirm\" value=\"", "\"", tmpstr, 0); 80 printf("222\n");81 80 82 81 if(confirm == NULL) goto end; 83 printf("333\n");84 82 85 83 hashstr = htmlencode(confirm); 86 hashstr = string_replace_all("/", "% 5C", hashstr, 1);84 hashstr = string_replace_all("/", "%2F", hashstr, 1); 87 85 88 86 hash = ostrcat(hash, "confirm=", 1, 0); … … 90 88 debug(99, "hash: %s", hash); 91 89 92 printf("444\n");93 90 if(hash == NULL) goto end; 94 91 95 92 hashlen = oitoa(strlen(hash)); 96 93 debug(99, "hashlen: %s", hashlen); 97 printf("555\n");98 94 99 95 //create send string … … 114 110 send = ostrcat(send, hash, 1, 0); 115 111 debug(99, "send: %s", send); 116 printf("666\n");117 112 118 waitmsgbar(16, 0, _("Connect with Hoster wait 16 seconds"), 1); 119 printf("777\n"); 113 // waitmsgbar(16, 0, _("Connect with Hoster wait 16 seconds"), 1); 120 114 121 115 tmpstr = gethttpreal(tmphost, tmppath, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); … … 123 117 debug(99, "tmpstr: %s", tmpstr); 124 118 titheklog(debuglevel, "/tmp/firedrive2_tmpstr_post", NULL, NULL, NULL, tmpstr); 125 printf("888\n");126 119 127 120 if(tmpstr == NULL) … … 136 129 goto end; 137 130 } 138 printf("999\n");139 131 140 132 if(ostrstr(tmpstr, "warning_message") != NULL) … … 147 139 goto end; 148 140 } 149 printf("aaa\n");150 141 151 142 streamlink = string_resub("file: '", "'", tmpstr, 0); 152 143 titheklog(debuglevel, "/tmp/firedrive4_streamlink", NULL, NULL, NULL, streamlink1); 153 printf("bbb\n"); 144 145 if(streamlink == NULL) 146 { 147 streamlink = string_resub("file: loadURL('", "'", tmpstr, 0); 148 titheklog(debuglevel, "/tmp/firedrive4_streamlink", NULL, NULL, NULL, streamlink1); 149 } 150 151 if(streamlink == NULL) 152 { 153 streamlink = string_resub("create_PRO_Modal('", "'", tmpstr, 0); 154 titheklog(debuglevel, "/tmp/firedrive4_streamlink", NULL, NULL, NULL, streamlink1); 155 } 154 156 155 157 free(tmpstr); tmpstr = NULL; 156 printf("ccc\n");157 158 158 159 end:
Note: See TracChangeset
for help on using the changeset viewer.