Ignore:
Timestamp:
08/27/17 17:39:35 (5 years ago)
Author:
obi
Message:

update tithek

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek_global.h

    r40836 r40856  
    556556        free(tmpstr2); tmpstr2 = NULL;
    557557
    558         *pagecount = createtithekplay(titheklink, grid, listbox, countlabel, cflag);
     558        *pagecount = createtithekplay(titheklink, grid, listbox, countlabel, tmpstr1, cflag);
    559559//      if(pagecount == 0 || tithekexit == 1) break;
    560560        if(*pagecount == 0 || *tithekexit == 1) return 0;
     
    566566
    567567        return 1;
     568}
     569
     570//char* createfilename(char* title, struct skin* listbox)
     571char* createfilename(char* title, char* title2)
     572{
     573        char* filename = NULL;
     574        char* tmpstr2 = NULL;
     575
     576        filename = ostrcat(title, "_", 0, 0);
     577
     578        tmpstr2 = ostrcat(_("Tithek - Mainmenu - Favoriten"), " - ", 0, 0);
     579        filename = string_replace_all(tmpstr2, "", filename, 1);
     580        free(tmpstr2); tmpstr2 = NULL;
     581
     582        tmpstr2 = ostrcat(_("Tithek - Mainmenu"), " - ", 0, 0);
     583        filename = string_replace_all(tmpstr2, "", filename, 1);
     584        free(tmpstr2); tmpstr2 = NULL;
     585
     586        filename = string_replace_all("Tips und Tricks - ", "", filename, 1);
     587        filename = string_replace_all("Internet TV - ", "", filename, 1);
     588        filename = string_replace_all("Internet Radio - ", "", filename, 1);
     589        filename = string_replace_all("ARD - ", "", filename, 1);
     590        filename = string_replace_all("ZDF - ", "", filename, 1);
     591        filename = string_replace_all("FilmOn - ", "", filename, 1);
     592        filename = string_replace_all("MyVideo - ", "", filename, 1);
     593        filename = string_replace_all("Netzkino - ", "", filename, 1);
     594        filename = string_replace_all("KinoX - ", "", filename, 1);
     595        filename = string_replace_all("Movie4k - ", "", filename, 1);
     596        filename = string_replace_all("Movie2k - ", "", filename, 1);
     597
     598        filename = string_replace_all("Beeg ", "", filename, 1);
     599        filename = string_replace_all("Burning Series ", "", filename, 1);
     600        filename = string_replace_all("CricFree ", "", filename, 1);
     601        filename = string_replace_all("Giga ", "", filename, 1);
     602        filename = string_replace_all("KKiste ", "", filename, 1);
     603        filename = string_replace_all("NBA-On-Demand ", "", filename, 1);
     604        filename = string_replace_all("StreamLive ", "", filename, 1);
     605        filename = string_replace_all("TheSolarMovie ", "", filename, 1);
     606        filename = string_replace_all("Youtube ", "", filename, 1);
     607
     608        tmpstr2 = ostrcat(_("Category"), " - ", 0, 0);
     609        filename = string_replace_all(tmpstr2, "", filename, 1);
     610        free(tmpstr2); tmpstr2 = NULL;
     611
     612        tmpstr2 = ostrcat(_("Search (local)"), " - ", 0, 0);
     613        filename = string_replace_all(tmpstr2, "", filename, 1);
     614        free(tmpstr2); tmpstr2 = NULL;
     615
     616        tmpstr2 = ostrcat(_("Search (20)"), " - ", 0, 0);
     617        filename = string_replace_all(tmpstr2, "", filename, 1);
     618        free(tmpstr2); tmpstr2 = NULL;
     619
     620        tmpstr2 = ostrcat(_("Search Cast"), " - ", 0, 0);
     621        filename = string_replace_all(tmpstr2, "", filename, 1);
     622        free(tmpstr2); tmpstr2 = NULL;
     623
     624        tmpstr2 = ostrcat(_("Search"), " - ", 0, 0);
     625        filename = string_replace_all(tmpstr2, "", filename, 1);
     626        free(tmpstr2); tmpstr2 = NULL;
     627
     628        tmpstr2 = ostrcat(_("All Sorted"), " - ", 0, 0);
     629        filename = string_replace_all(tmpstr2, "", filename, 1);
     630        free(tmpstr2); tmpstr2 = NULL;
     631
     632        tmpstr2 = ostrcat(_("A-Z"), " - ", 0, 0);
     633        filename = string_replace_all(tmpstr2, "", filename, 1);
     634        free(tmpstr2); tmpstr2 = NULL;
     635
     636        filename = string_replace_all("(Flash - Shell script) - ", "", filename, 1);
     637        filename = string_replace_all("Genres - ", "", filename, 1);
     638        filename = string_replace_all("All Series - ", "", filename, 1);
     639        filename = string_replace_all("Channels - ", "", filename, 1);
     640        filename = string_replace_all("Kinofilme - ", "", filename, 1);
     641        filename = string_replace_all("Neue Filme - ", "", filename, 1);
     642        filename = string_replace_all("Movies (Year) - ", "", filename, 1);
     643        filename = string_replace_all("Movies (Genre) - ", "", filename, 1);
     644        filename = string_replace_all("Series - ", "", filename, 1);
     645
     646//      filename = ostrcat(filename, ((struct tithek*)listbox->select->handle)->title, 1, 0);
     647        filename = ostrcat(filename, title2, 1, 0);
     648
     649        filename = ostrcat(filename, ".mp4", 1, 0);
     650        filename = string_replace_all(" ", ".", filename, 1);
     651        filename = string_replace_all("-", "_", filename, 1);
     652        filename = string_replace_all("._.", "_", filename, 1);
     653        filename = string_replace_all(".._", "_", filename, 1);
     654
     655        return filename;
    568656}
    569657
Note: See TracChangeset for help on using the changeset viewer.