Changeset 40900 for titan/plugins/tithek/tithek_global.h
- Timestamp:
- 09/03/17 01:13:24 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.