Changeset 44850


Ignore:
Timestamp:
05/01/20 01:56:42 (4 years ago)
Author:
obi
Message:

fix

Location:
titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r44849 r44850  
    580580                if(node->cmd != NULL)
    581581                        system(node->cmd);
     582                else if(node->link != NULL)
     583                        gethttps(link, node->filename, NULL, NULL, NULL, NULL, 0);
    582584                else
    583585                        gethttpreal(node->host, node->page, node->port, node->filename, node->auth, NULL, 0, NULL, NULL, node->timeout, 0);
     
    730732                {
    731733                        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
    736739                                        gethttp(ip, path, port, localfile, pw, timeout, NULL, 0);
    737740                                else
     
    741744                                        if(dnode != NULL)
    742745                                        {
     746                                        if(ssl == 1)
     747                                                        dnode->link = ostrcat(link, NULL, 0, 0);
    743748                                                if(usecmd == 1)
    744749                                                        dnode->cmd = ostrcat(link, NULL, 0, 0);
     
    24332438                                        else
    24342439                                        {
    2435                         debug(99, "not found: %s use default", tithekpic);
     2440                        debug(99, "not found: %s use default /tmp/tithek/default.jpg", tithekpic);
    24362441                                                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);
    24382443                                                changepic(listbox->select, tithekpic);
    24392444                                        }
  • titan/titan/struct.h

    r44757 r44850  
    696696struct download
    697697{
     698        char* link;
    698699        char* cmd;
    699700        char* host;
Note: See TracChangeset for help on using the changeset viewer.