Changeset 20271 for titan/plugins/tithek/tithek.h
- Timestamp:
- 03/01/13 06:31:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r20270 r20271 11 11 //flag 1 - menu pay hidden tithek_pay=0/1 0=hidden 12 12 //flag 2 - http (default streamurl) 13 //flag 3 - menu cover 13 14 //flag 4 - youtube 14 15 //flag 5 - rtl2now … … 578 579 } 579 580 580 int createtithekplay(char* titheklink, struct skin* grid, struct skin* listbox, struct skin* countlabel )581 int createtithekplay(char* titheklink, struct skin* grid, struct skin* listbox, struct skin* countlabel, int flag) 581 582 { 582 583 int gridbr = 0, posx = 0, count = 0, sumcount = 0, count1 = 0, pagecount = 0, skip = 0; … … 609 610 int fontsize = 25; 610 611 int pcount = 2; 611 612 if(getconfigint("tithek_view", NULL) == 0 || ((struct tithek*)listbox->select->handle)->flag == 0 || ((struct tithek*)listbox->select->handle)->flag == 1 || ((struct tithek*)listbox->select->handle)->flag == 1000 || ((struct tithek*)listbox->select->handle)->flag == 22 || ((struct tithek*)listbox->select->handle)->flag == 23 || ((struct tithek*)listbox->select->handle)->flag == 28)612 613 if(getconfigint("tithek_view", NULL) == 0 || flag != 3) 613 614 { 614 615 if(linecount > 2) … … 656 657 } 657 658 } 658 else if(getconfigint("tithek_view", NULL) == 1) 659 660 if(getconfigint("tithek_view", NULL) == 1 && flag == 3) 659 661 { 660 662 height = 500; … … 666 668 pcount = 2; 667 669 } 668 else if(getconfigint("tithek_view", NULL) == 2) 670 671 if(getconfigint("tithek_view", NULL) == 2 && flag == 3) 669 672 { 670 673 height = 280; … … 676 679 pcount = 6; 677 680 } 678 else if(getconfigint("tithek_view", NULL) == 3) 681 682 if(getconfigint("tithek_view", NULL) == 3 && flag == 3) 679 683 { 680 684 height = 180; … … 686 690 pcount = 12; 687 691 } 688 else if(getconfigint("tithek_view", NULL) == 4) 692 693 if(getconfigint("tithek_view", NULL) == 4 && flag == 3) 689 694 { 690 695 height = 140; … … 696 701 pcount = 20; 697 702 } 698 else if(getconfigint("tithek_view", NULL) == 5) 703 704 if(getconfigint("tithek_view", NULL) == 5 && flag == 3) 699 705 { 700 706 height = 111; … … 1357 1363 listbox->select = NULL; 1358 1364 1359 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) return; 1360 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel); 1365 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, first); 1361 1366 if(pagecount == 0) return; 1362 1367 … … 1458 1463 { 1459 1464 screentithek_settings(); 1460 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel); 1465 1466 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, first); 1461 1467 if(pagecount == 0 || tithekexit == 1) break; 1462 1468 … … 1506 1512 free(tmpstr); tmpstr = NULL; 1507 1513 free(tmpstr2); tmpstr2 = NULL; 1508 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1509 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1514 1515 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1510 1516 if(pagecount == 0 || tithekexit == 1) break; 1511 1517 … … 1544 1550 free(tmpstr); tmpstr = NULL; 1545 1551 free(tmpstr2); tmpstr2 = NULL; 1546 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1547 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1552 1553 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1548 1554 if(pagecount == 0 || tithekexit == 1) break; 1549 1555 … … 1567 1573 free(tmpstr); tmpstr = NULL; 1568 1574 free(tmpstr2); tmpstr2 = NULL; 1569 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1570 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1575 1576 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1571 1577 if(pagecount == 0 || tithekexit == 1) break; 1572 1578 … … 1590 1596 free(tmpstr); tmpstr = NULL; 1591 1597 free(tmpstr2); tmpstr2 = NULL; 1592 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1593 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1598 1599 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1594 1600 if(pagecount == 0 || tithekexit == 1) break; 1595 1601 … … 1613 1619 free(tmpstr); tmpstr = NULL; 1614 1620 free(tmpstr2); tmpstr2 = NULL; 1615 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1616 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1621 1622 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 3); 1617 1623 if(pagecount == 0 || tithekexit == 1) break; 1618 1624 … … 1636 1642 free(tmpstr); tmpstr = NULL; 1637 1643 free(tmpstr2); tmpstr2 = NULL; 1638 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1639 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1644 1645 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 3); 1640 1646 if(pagecount == 0 || tithekexit == 1) break; 1641 1647 … … 1659 1665 free(tmpstr); tmpstr = NULL; 1660 1666 free(tmpstr2); tmpstr2 = NULL; 1661 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1662 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1667 1668 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1663 1669 if(pagecount == 0 || tithekexit == 1) break; 1664 1670 … … 1674 1680 continue; 1675 1681 } 1682 else if((((struct tithek*)listbox->select->handle)->flag == 3)) 1683 { 1684 int pincheck = 0; 1685 if(((struct tithek*)listbox->select->handle)->flag == 1000) 1686 pincheck = screenpincheck(0, NULL); 1687 if(pincheck == 0) 1688 { 1689 oaktpage = listbox->aktpage; 1690 oaktline = listbox->aktline; 1691 ogridcol = listbox->gridcol; 1692 char* tmpstr = ostrcat(((struct tithek*)listbox->select->handle)->link, NULL, 0, 0); 1693 char* tmpstr1 = ostrcat(((struct tithek*)listbox->select->handle)->menutitle, " - ", 0, 0); 1694 char* tmpstr2 = ostrcat(tmpstr1, ((struct tithek*)listbox->select->handle)->title, 1, 0); 1695 screentithekplay(tmpstr, tmpstr2, 3); 1696 free(tmpstr); tmpstr = NULL; 1697 free(tmpstr2); tmpstr2 = NULL; 1698 1699 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1700 if(pagecount == 0 || tithekexit == 1) break; 1701 1702 listbox->aktpage = oaktpage; 1703 listbox->aktline = oaktline; 1704 listbox->gridcol = ogridcol; 1705 addscreenrc(grid, listbox); 1706 } 1707 } 1676 1708 else 1677 1709 { … … 1690 1722 free(tmpstr); tmpstr = NULL; 1691 1723 free(tmpstr2); tmpstr2 = NULL; 1692 // if(createtithekplay(titheklink, grid, listbox, countlabel) != 0) break; 1693 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel );1724 1725 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1694 1726 if(pagecount == 0 || tithekexit == 1) break; 1695 1727 … … 1709 1741 { 1710 1742 removefav(((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); 1711 int pagecount = createtithekplay( getconfig("tithek_fav", NULL), grid, listbox, countlabel);1743 int pagecount = createtithekplay(titheklink, grid, listbox, countlabel, 0); 1712 1744 if(pagecount == 0) return; 1713 1745
Note: See TracChangeset
for help on using the changeset viewer.