Changeset 42659 for titan/plugins


Ignore:
Timestamp:
08/13/18 22:24:07 (6 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r42657 r42659  
    23132313                                free(tmpstr); tmpstr = NULL;
    23142314
    2315                                 if(tmp->handle != NULL && getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6)
     2315                                if(tmp->handle != NULL)// && getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6)
    23162316                                {
    23172317                                        tithekpic = tithekdownload(((struct tithek*)tmp->handle)->pic, ((struct tithek*)tmp->handle)->localname, "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=", 1, 0);
     
    23272327                                        */
    23282328
    2329                                         changepic(tmp, tithekpic);
     2329                                        if(getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6)
     2330                                                changepic(tmp, tithekpic);
    23302331                                        free(tithekpic); tithekpic = NULL;
    23312332                                }
     
    23382339                                if(tmp->pagecount != listbox->aktpage) break;
    23392340
    2340                                 if(tmp->handle != NULL && getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6)
     2341                                if(tmp->handle != NULL)// && getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6)
    23412342                                {
    23422343                                        tithekpic = tithekdownload(((struct tithek*)tmp->handle)->pic, ((struct tithek*)tmp->handle)->localname, "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=", 1, 0);
     
    23512352                                        }
    23522353                                        */
    2353 
    2354                                         changepic(tmp, tithekpic);
     2354                                        if(getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6)
     2355                                                changepic(tmp, tithekpic);
    23552356                                        free(tithekpic); tithekpic = NULL;
    23562357                                }
     
    23652366waitrcstart:
    23662367
     2368/*
     2369printf("tithek_view: %d\n", getconfigint("tithek_view", NULL));
    23672370                // reload selected pic
    2368                 if(listbox->select != NULL && listbox->select->handle != NULL)
    2369                 {
    2370                         if(((struct tithek*)listbox->select->handle)->pic != NULL && ((struct tithek*)listbox->select->handle)->localname != NULL)
    2371                         {
    2372                                 tithekpic = tithekdownload(((struct tithek*)listbox->select->handle)->pic, ((struct tithek*)listbox->select->handle)->localname, "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=", 1, 0);
    2373 //                              if(file_exist(tithekpic))
    2374                                         changepic(listbox->select, tithekpic);
    2375 //                              else
    2376 //                              {
    2377 //                                      free(tithekpic); tithekpic = NULL;
    2378 //                                      tithekpic = ostrcat("/var/usr/local/share/titan/plugins/tithek/default.jpg", NULL, 0, 0);
    2379 //                                      changepic(listbox->select, tithekpic);
    2380 //                              }
    2381                                 free(tithekpic); tithekpic = NULL;
    2382                         }
    2383                 }
    2384 
     2371                if(getconfigint("tithek_view", NULL) == 7 || getconfigint("tithek_cover", NULL) == 7)
     2372                {
     2373                        if(listbox->select != NULL && listbox->select->handle != NULL)
     2374                        {
     2375                                if(((struct tithek*)listbox->select->handle)->pic != NULL && ((struct tithek*)listbox->select->handle)->localname != NULL)
     2376                                {
     2377                                        tithekpic = tithekdownload(((struct tithek*)listbox->select->handle)->pic, ((struct tithek*)listbox->select->handle)->localname, "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=", 1, 0);
     2378        //                              if(file_exist(tithekpic))
     2379                                                changepic(listbox->select, tithekpic);
     2380        //                              else
     2381        //                              {
     2382        //                                      free(tithekpic); tithekpic = NULL;
     2383        //                                      tithekpic = ostrcat("/var/usr/local/share/titan/plugins/tithek/default.jpg", NULL, 0, 0);
     2384        //                                      changepic(listbox->select, tithekpic);
     2385        //                              }
     2386                                        free(tithekpic); tithekpic = NULL;
     2387                                }
     2388                        }
     2389                }
     2390*/
    23852391                drawscreen(grid, 0, 0);
    23862392
Note: See TracChangeset for help on using the changeset viewer.