Changeset 39566
- Timestamp:
- 12/31/16 18:15:12 (7 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r39416 r39566 1156 1156 } 1157 1157 1158 int showinfo(struct skin* listbox, char* title, char* link, char* pic, char* localname, char* menutitle, int flag) 1159 { 1160 int ret = 1; 1161 char* tmpstr = NULL; 1162 tmpstr = ostrcat(tmpstr, title, 1, 0); 1163 tmpstr = ostrcat(tmpstr, "#", 1, 0); 1164 tmpstr = ostrcat(tmpstr, link, 1, 0); 1165 tmpstr = ostrcat(tmpstr, "#", 1, 0); 1166 tmpstr = ostrcat(tmpstr, pic, 1, 0); 1167 tmpstr = ostrcat(tmpstr, "#", 1, 0); 1168 tmpstr = ostrcat(tmpstr, localname, 1, 0); 1169 tmpstr = ostrcat(tmpstr, "#", 1, 0); 1170 tmpstr = ostrcat(tmpstr, menutitle, 1, 0); 1171 tmpstr = ostrcat(tmpstr, "#", 1, 0); 1172 tmpstr = ostrcat(tmpstr, oitoa(flag), 1, 1); 1173 // tithek security 1174 // tmpstr = string_replace_all("http://atemio.dyndns.tv/", "http://imageshack.us/md/up/grd/", tmpstr, 1); 1175 tmpstr = ostrcat(tmpstr, "\n", 1, 0); 1176 1177 char* savefile = ostrcat("/tmp/tithek/infomenu.list", NULL, 0, 0); 1178 1179 writesys(savefile, tmpstr, 0); 1180 free(tmpstr), tmpstr = NULL; 1181 1182 if(file_exist(savefile)) 1183 { 1184 struct tithek* tnode = (struct tithek*)listbox->select->handle; 1185 createtithek(tnode, tnode->title, savefile, tnode->pic, tnode->localname, tnode->menutitle, tnode->flag); 1186 ret = 0; 1187 } 1188 1189 return ret; 1190 } 1191 1158 1192 void cacheplay(char* link, char* filename, int flag) 1159 1193 { … … 2417 2451 } 2418 2452 } 2453 else if(rcret == getrcconfigint("rcinfo", NULL)) 2454 { 2455 if(listbox->select != NULL && listbox->select->handle != NULL) 2456 { 2457 if(showinfo(listbox, ((struct tithek*)listbox->select->handle)->title, ((struct tithek*)listbox->select->handle)->link, ((struct tithek*)listbox->select->handle)->pic, ((struct tithek*)listbox->select->handle)->localname, ((struct tithek*)listbox->select->handle)->menutitle, ((struct tithek*)listbox->select->handle)->flag) == 0) 2458 if(screenlistbox(grid, listbox, countlabel, title, titheklink, &pagecount, &tithekexit, &oaktpage, &oaktline, &ogridcol, 0, 0) == 0) break; 2459 } 2460 2461 } 2419 2462 // else if(rcret == getrcconfigint("rcyellow", NULL) && ostrcmp(title, _("Tithek - Mainmenu - Favoriten")) == 0) 2420 2463 else if(rcret == getrcconfigint("rcyellow", NULL) && ostrstr(title, _("Tithek - Mainmenu - Favoriten")) != NULL) … … 2460 2503 } 2461 2504 } 2505 2506 printf("listbox->aktpage=%d\n", listbox->aktpage); 2507 printf("listbox->aktline=%d\n", listbox->aktline); 2508 printf("listbox->gridcol=%d\n", listbox->gridcol); 2462 2509 2463 2510 // if(ostrcmp(title, _("Tithek - Mainmenu - Favoriten")) == 0) -
titan/plugins/tithek/tithek_global.h
r39560 r39566 460 460 } 461 461 462 int screeninfolistbox(struct skin* grid, struct skin* listbox,struct skin* countlabel, char* title, char* titheklink, int* pagecount, int* tithekexit, int* oaktpage, int* oaktline, int* ogridcol, int flag, int cflag) 463 { 464 char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL; 465 466 *oaktpage = listbox->aktpage; 467 *oaktline = listbox->aktline; 468 *ogridcol = listbox->gridcol; 469 tmpstr = ostrcat(((struct tithek*)listbox->select->handle)->link, NULL, 0, 0); 470 471 if(title != NULL) 472 tmpstr1 = ostrcat(title, " - ", 0, 0); 473 else 474 tmpstr1 = ostrcat(((struct tithek*)listbox->select->handle)->menutitle, " - ", 0, 0); 475 476 tmpstr2 = ostrcat(tmpstr1, ((struct tithek*)listbox->select->handle)->title, 1, 0); 477 screentithekplay(tmpstr, tmpstr2, flag); 478 free(tmpstr); tmpstr = NULL; 479 free(tmpstr2); tmpstr2 = NULL; 480 481 *pagecount = createtithekplay(titheklink, grid, listbox, countlabel, cflag); 482 // if(pagecount == 0 || tithekexit == 1) break; 483 if(*pagecount == 0 || *tithekexit == 1) return 0; 484 485 listbox->aktpage = *oaktpage; 486 listbox->aktline = *oaktline; 487 listbox->gridcol = *ogridcol; 488 addscreenrc(grid, listbox); 489 490 return 1; 491 } 492 462 493 int all_search_local(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag) 463 494 {
Note: See TracChangeset
for help on using the changeset viewer.