Changeset 40900
- Timestamp:
- 09/03/17 01:13:24 (7 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.c
r40848 r40900 116 116 amazonlogin = 0; 117 117 python = 0; 118 ytbgdownload = 0; 118 119 119 120 //change markcolor -
titan/plugins/tithek/tithek.h
r40893 r40900 14 14 int amazonlogin = 0; 15 15 int python = 0; 16 int ytbgdownload = 0; 16 17 17 18 //flag 0 - menu … … 1458 1459 if(ret == 1) 1459 1460 textbox(_("Message"), _("Can't start download.\nPlease try later."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0); 1460 1461 else 1462 ytbgdownload = 1; 1461 1463 } 1462 1464 … … 1661 1663 else if(tmpstr1 != NULL) 1662 1664 { 1663 char* title2 = ostrcat(((struct tithek*)listbox->select->handle)->title, NULL, 0, 0);1664 char* filename = createfilename(title, title2, 0);1665 // char* title2 = ostrcat(((struct tithek*)listbox->select->handle)->title, NULL, 0, 0); 1666 // char* filename = createfilename(title, title2, 0); 1665 1667 // char* filename = createfilename(title, ((struct tithek*)listbox->select->handle)->title); 1666 free(title2), title2 = NULL; 1667 debug(99, "filename: %s", filename); 1668 1669 debug(99, "::: START :::::::::::::::::::::::::::::::::::::::::::::::::::"); 1670 debug(99, "flag: %d", ((struct tithek*)listbox->select->handle)->flag); 1671 debug(99, "title: %s", ((struct tithek*)listbox->select->handle)->title); 1672 debug(99, "menutitle: %s", ((struct tithek*)listbox->select->handle)->menutitle); 1673 1674 char* filename = NULL; 1675 filename = createfilename(title, ((struct tithek*)listbox->select->handle)->title, 0); 1668 1676 1669 1677 if(!file_exist(filename)) … … 1672 1680 debug(99, "create newfile %s", filename); 1673 1681 } 1682 free(filename), filename = NULL; 1683 1684 // filename = createfilename(((struct tithek*)listbox->select->handle)->menutitle, ((struct tithek*)listbox->select->handle)->title, ((struct tithek*)listbox->select->handle)->flag); 1685 // free(filename), filename = NULL; 1686 1687 // filename = createfilename(title, NULL, ((struct tithek*)listbox->select->handle)->flag); 1688 // free(filename), filename = NULL; 1689 1690 filename = createfilename(title, ((struct tithek*)listbox->select->handle)->title, ((struct tithek*)listbox->select->handle)->flag); 1691 debug(99, "::: END ::::::::::::::::::::::::::::::::::::::::::::::::::::"); 1674 1692 1675 1693 char* keyconf = NULL; … … 2651 2669 freetithek(); 2652 2670 delallfiles("/tmp/tithek", NULL); 2653 system("rm -rf /tmp/localhoster"); 2671 if(ytbgdownload == 0) 2672 system("rm -rf /tmp/localhoster"); 2654 2673 system("rm -rf /tmp/localparser"); 2655 2674 system("rm -rf /tmp/localcache"); -
titan/plugins/tithek/tithek_global.h
r40893 r40900 689 689 char* filename = NULL; 690 690 char* tmpstr = NULL; 691 char* tmpstr2 = NULL; 691 692 692 693 if(title2 != NULL) … … 698 699 tmpstr = ostrcat(title, NULL, 0, 0); 699 700 700 tmpstr = string_replace_all(" - ", "_", tmpstr, 1); 701 // filename = string_replace_all(") (", ")_(", filename, 1); 702 tmpstr = string_replace_all(" ", "-", tmpstr, 1); 703 tmpstr = string_replace_all("(", "", tmpstr, 1); 704 tmpstr = string_replace_all(")", "", tmpstr, 1); 705 tmpstr = string_replace_all("/", "-", tmpstr, 1); 701 if(flag >= 1) 702 { 703 tmpstr2 = ostrcat(_("Tithek - Mainmenu - Favoriten"), " - ", 0, 0); 704 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 705 free(tmpstr2); tmpstr2 = NULL; 706 707 tmpstr2 = ostrcat(_("Tithek - Mainmenu"), " - ", 0, 0); 708 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 709 free(tmpstr2); tmpstr2 = NULL; 710 711 tmpstr = string_replace_all("Tips und Tricks - ", "", tmpstr, 1); 712 tmpstr = string_replace_all("Internet TV - ", "", tmpstr, 1); 713 tmpstr = string_replace_all("Internet Radio - ", "", tmpstr, 1); 714 tmpstr = string_replace_all("ARD - ", "", tmpstr, 1); 715 tmpstr = string_replace_all("ZDF - ", "", tmpstr, 1); 716 tmpstr = string_replace_all("FilmOn - ", "", tmpstr, 1); 717 tmpstr = string_replace_all("MyVideo - ", "", tmpstr, 1); 718 tmpstr = string_replace_all("Netzkino - ", "", tmpstr, 1); 719 tmpstr = string_replace_all("KinoX - ", "", tmpstr, 1); 720 tmpstr = string_replace_all("Movie4k - ", "", tmpstr, 1); 721 tmpstr = string_replace_all("Movie2k - ", "", tmpstr, 1); 722 723 tmpstr = string_replace_all("Beeg ", "", tmpstr, 1); 724 tmpstr = string_replace_all("Burning Series ", "", tmpstr, 1); 725 tmpstr = string_replace_all("CricFree ", "", tmpstr, 1); 726 tmpstr = string_replace_all("Giga ", "", tmpstr, 1); 727 tmpstr = string_replace_all("KKiste ", "", tmpstr, 1); 728 tmpstr = string_replace_all("NBA-On-Demand ", "", tmpstr, 1); 729 tmpstr = string_replace_all("StreamLive ", "", tmpstr, 1); 730 tmpstr = string_replace_all("TheSolarMovie ", "", tmpstr, 1); 731 tmpstr = string_replace_all("Youtube ", "", tmpstr, 1); 732 733 tmpstr2 = ostrcat(_("Category"), " - ", 0, 0); 734 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 735 free(tmpstr2); tmpstr2 = NULL; 736 737 tmpstr2 = ostrcat(_("Cine Films"), " - ", 0, 0); 738 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 739 free(tmpstr2); tmpstr2 = NULL; 740 741 tmpstr2 = ostrcat(_("Search (local)"), " - ", 0, 0); 742 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 743 free(tmpstr2); tmpstr2 = NULL; 744 745 tmpstr2 = ostrcat(_("Search (20)"), " - ", 0, 0); 746 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 747 free(tmpstr2); tmpstr2 = NULL; 748 749 tmpstr2 = ostrcat(_("Search Cast"), " - ", 0, 0); 750 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 751 free(tmpstr2); tmpstr2 = NULL; 752 753 tmpstr2 = ostrcat(_("Search"), " - ", 0, 0); 754 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 755 free(tmpstr2); tmpstr2 = NULL; 756 757 tmpstr2 = ostrcat(_("All Sorted"), " - ", 0, 0); 758 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 759 free(tmpstr2); tmpstr2 = NULL; 760 761 tmpstr2 = ostrcat(_("A-Z"), " - ", 0, 0); 762 tmpstr = string_replace_all(tmpstr2, "", tmpstr, 1); 763 free(tmpstr2); tmpstr2 = NULL; 764 765 tmpstr = string_replace_all("(Flash - Shell script) - ", "", tmpstr, 1); 766 tmpstr = string_replace_all("Genres - ", "", tmpstr, 1); 767 tmpstr = string_replace_all("All Series - ", "", tmpstr, 1); 768 tmpstr = string_replace_all("Channels - ", "", tmpstr, 1); 769 tmpstr = string_replace_all("Kinofilme - ", "", tmpstr, 1); 770 tmpstr = string_replace_all("Neue Filme - ", "", tmpstr, 1); 771 tmpstr = string_replace_all("Movies (Year) - ", "", tmpstr, 1); 772 tmpstr = string_replace_all("Movies (Genre) - ", "", tmpstr, 1); 773 tmpstr = string_replace_all("Series - ", "", tmpstr, 1); 774 775 // tmpstr = ostrcat(tmpstr, ((struct tithek*)listbox->select->handle)->title, 1, 0); 776 // tmpstr = ostrcat(tmpstr, title2, 1, 0); 777 778 tmpstr = ostrcat(tmpstr, ".mp4", 1, 0); 779 tmpstr = string_replace_all("/", ".", tmpstr, 1); 780 tmpstr = string_replace_all(" ", ".", tmpstr, 1); 781 tmpstr = string_replace_all("-", "_", tmpstr, 1); 782 tmpstr = string_replace_all("._.", "_", tmpstr, 1); 783 tmpstr = string_replace_all(".._", "_", tmpstr, 1); 784 tmpstr = string_replace_all("..", ".", tmpstr, 1); 785 } 786 else 787 { 788 tmpstr = string_replace_all(" - ", "_", tmpstr, 1); 789 // filename = string_replace_all(") (", ")_(", filename, 1); 790 tmpstr = string_replace_all(" ", ".", tmpstr, 1); 791 tmpstr = string_replace_all("(", "", tmpstr, 1); 792 tmpstr = string_replace_all(")", "", tmpstr, 1); 793 tmpstr = string_replace_all("/", ".", tmpstr, 1); 794 795 } 706 796 707 797 if(flag == 0) 708 798 filename = ostrcat("/mnt/swapextensions/player/", tmpstr, 0, 0); 709 if(flag == 1)799 else if(flag == 1) 710 800 filename = ostrcat("/mnt/swapextensions/player/FAV_", tmpstr, 0, 0); 801 else 802 filename = ostrcat(tmpstr, NULL, 0, 0); 711 803 712 804 free(tmpstr), tmpstr = NULL;
Note: See TracChangeset
for help on using the changeset viewer.