Changeset 42659 for titan/plugins
- Timestamp:
- 08/13/18 22:24:07 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r42657 r42659 2313 2313 free(tmpstr); tmpstr = NULL; 2314 2314 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) 2316 2316 { 2317 2317 tithekpic = tithekdownload(((struct tithek*)tmp->handle)->pic, ((struct tithek*)tmp->handle)->localname, "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=", 1, 0); … … 2327 2327 */ 2328 2328 2329 changepic(tmp, tithekpic); 2329 if(getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6) 2330 changepic(tmp, tithekpic); 2330 2331 free(tithekpic); tithekpic = NULL; 2331 2332 } … … 2338 2339 if(tmp->pagecount != listbox->aktpage) break; 2339 2340 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) 2341 2342 { 2342 2343 tithekpic = tithekdownload(((struct tithek*)tmp->handle)->pic, ((struct tithek*)tmp->handle)->localname, "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=", 1, 0); … … 2351 2352 } 2352 2353 */ 2353 2354 changepic(tmp, tithekpic);2354 if(getconfigint("tithek_view", NULL) != 6 && getconfigint("tithek_cover", NULL) != 6) 2355 changepic(tmp, tithekpic); 2355 2356 free(tithekpic); tithekpic = NULL; 2356 2357 } … … 2365 2366 waitrcstart: 2366 2367 2368 /* 2369 printf("tithek_view: %d\n", getconfigint("tithek_view", NULL)); 2367 2370 // 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 */ 2385 2391 drawscreen(grid, 0, 0); 2386 2392
Note: See TracChangeset
for help on using the changeset viewer.