Changeset 32113
- Timestamp:
- 01/05/15 18:55:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r31945 r32113 1204 1204 debug(99, "local: %s", file); 1205 1205 debug(99, "---------------------------------------"); 1206 1207 ret = startbgdownload(host, path, port, file, NULL, 30000, 1); 1206 1207 if(ostrstr(path, "|User-Agent=") != NULL) 1208 { 1209 stringreplacechar(path, '|', '\0'); 1210 printf("page changed: %s\n", path); 1211 1212 char* cmd = NULL; 1213 cmd = ostrcat("wget --user-agent=\'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0\' \'http://", host, 0, 0); 1214 cmd = ostrcat(cmd, "/", 1, 0); 1215 cmd = ostrcat(cmd, path, 1, 0); 1216 cmd = ostrcat(cmd, "\' -O \'", 1, 0); 1217 cmd = ostrcat(cmd, file, 1, 0); 1218 cmd = ostrcat(cmd, "\' &", 1, 0); 1219 printf("cmd: %s\n", cmd); 1220 ret = system(cmd); 1221 free(cmd), cmd = NULL; 1222 } 1223 else 1224 ret = startbgdownload(host, path, port, file, NULL, 30000, 1); 1225 1208 1226 if(ret == 1) 1209 1227 textbox(_("Message"), _("Can't start download.\nPlease try later."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
Note: See TracChangeset
for help on using the changeset viewer.