Changeset 44850
- Timestamp:
- 05/01/20 01:56:42 (4 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r44849 r44850 580 580 if(node->cmd != NULL) 581 581 system(node->cmd); 582 else if(node->link != NULL) 583 gethttps(link, node->filename, NULL, NULL, NULL, NULL, 0); 582 584 else 583 585 gethttpreal(node->host, node->page, node->port, node->filename, node->auth, NULL, 0, NULL, NULL, node->timeout, 0); … … 730 732 { 731 733 if(pic == 1) 732 { 733 if(ssl == 1) 734 gethttps(link, localfile, NULL, NULL, NULL, NULL, 0); 735 else if(usecmd == 0 && tithekdownloadcount >= 24) //start max 24 threads 734 { 735 // if(ssl == 1) 736 // gethttps(link, localfile, NULL, NULL, NULL, NULL, 0); 737 // else if(usecmd == 0 && tithekdownloadcount >= 24) //start max 24 threads 738 if(usecmd == 0 && ssl == 0 && tithekdownloadcount >= 24) //start max 24 threads 736 739 gethttp(ip, path, port, localfile, pw, timeout, NULL, 0); 737 740 else … … 741 744 if(dnode != NULL) 742 745 { 746 if(ssl == 1) 747 dnode->link = ostrcat(link, NULL, 0, 0); 743 748 if(usecmd == 1) 744 749 dnode->cmd = ostrcat(link, NULL, 0, 0); … … 2433 2438 else 2434 2439 { 2435 debug(99, "not found: %s use default ", tithekpic);2440 debug(99, "not found: %s use default /tmp/tithek/default.jpg", tithekpic); 2436 2441 free(tithekpic); tithekpic = NULL; 2437 tithekpic = ostrcat("/ var/usr/local/share/titan/plugins/tithek/default.jpg", NULL, 0, 0);2442 tithekpic = ostrcat("/tmp/tithek/default.jpg", NULL, 0, 0); 2438 2443 changepic(listbox->select, tithekpic); 2439 2444 } -
titan/titan/struct.h
r44757 r44850 696 696 struct download 697 697 { 698 char* link; 698 699 char* cmd; 699 700 char* host;
Note: See TracChangeset
for help on using the changeset viewer.