Changeset 29981


Ignore:
Timestamp:
Sep 17, 2014, 11:41:05 PM (6 years ago)
Author:
obi
Message:

mediathek rename rtl2now > now

Location:
titan/plugins/tithek
Files:
3 edited

Legend:

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

    r29978 r29981  
    55// flag 2 = getstreamurl
    66
    7 char* rtl2now(char* link, char* url, char* name, int flag)
     7char* now(char* link, char* url, char* name, char* title, int flag)
    88{
    99        debug(99, "link(%d): %s", flag, link);
     
    2828//                      textbox(_("Message"), _("Found Pay Stream visit the official Website and Order this Stream and try this again !") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 400, 0, 0);
    2929
     30                if(ostrstr(title, "Euro)") == NULL)
     31                        textbox(_("Message"), _("Found Pay Stream visit the official Website and Order this Stream and try this again !") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 400, 0, 0);
     32
    3033                tmpstr = string_resub("data:'", "',", tmpstr, 0);
    3134                debug(99, "tmpstr: %s", tmpstr);
     
    3437                tmpstr = ostrcat(url, tmpstr, 0, 1);
    3538                debug(99, "streamurl: %s", tmpstr);
    36                 streamurl = rtl2now(tmpstr, url, name, 2);
     39                streamurl = now(tmpstr, url, name, title, 2);
    3740                free(tmpstr); tmpstr = NULL;
    3841        }
  • titan/plugins/tithek/tithek.h

    r29555 r29981  
    12111211{
    12121212        int flag = 0;
    1213 
    1214         drawscreen(load, 0, 0); 
    1215         char* tmpstr = ostrcat(((struct tithek*)listbox->select->handle)->link, NULL, 0, 0);
    1216         char* tmpstr1 = NULL;
    1217 
     1213        char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL;
     1214        drawscreen(load, 0, 0);
     1215        tmpstr = ostrcat(((struct tithek*)listbox->select->handle)->link, NULL, 0, 0);
     1216        tmpstr2 = ostrcat(((struct tithek*)listbox->select->handle)->title, NULL, 0, 0);
     1217               
    12181218        if(((struct tithek*)listbox->select->handle)->flag == 2)
    12191219        {
     
    12261226        else if(((struct tithek*)listbox->select->handle)->flag == 5)
    12271227        {
    1228                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://rtl2now.rtl2.de", "rtl2now", 1);
     1228                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://rtl2now.rtl2.de", "rtl2now", tmpstr2, 1);
    12291229        }
    12301230        else if(((struct tithek*)listbox->select->handle)->flag == 6)
    12311231        {
    1232                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.superrtlnow.de", "superrtlnow", 1);
     1232                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.superrtlnow.de", "superrtlnow", tmpstr2, 1);
    12331233        }
    12341234        else if(((struct tithek*)listbox->select->handle)->flag == 7)
    12351235        {
    1236                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://rtl-now.rtl.de", "rtlnow", 1);
     1236                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://rtl-now.rtl.de", "rtlnow", tmpstr2, 1);
    12371237        }
    12381238        else if(((struct tithek*)listbox->select->handle)->flag == 8)
    12391239        {
    1240                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.voxnow.de", "voxnow", 1);
     1240                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.voxnow.de", "voxnow", tmpstr2, 1);
    12411241        }
    12421242        else if(((struct tithek*)listbox->select->handle)->flag == 12)
     
    12501250        else if(((struct tithek*)listbox->select->handle)->flag == 16)
    12511251        {
    1252                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.superrtlnow.de", "superrtlnow", 1);
     1252                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.superrtlnow.de", "superrtlnow", tmpstr2, 1);
    12531253        }
    12541254        else if(((struct tithek*)listbox->select->handle)->flag == 17)
    12551255        {
    1256                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://rtl-now.rtl.de", "rtlnow", 1);
     1256                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://rtl-now.rtl.de", "rtlnow", tmpstr2, 1);
    12571257        }
    12581258        else if(((struct tithek*)listbox->select->handle)->flag == 18)
    12591259        {
    1260                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.voxnow.de", "voxnow", 1);
     1260                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.voxnow.de", "voxnow", tmpstr2, 1);
    12611261        }
    12621262        else if(((struct tithek*)listbox->select->handle)->flag == 19)
    12631263        {
    1264                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://rtl2now.rtl2.de", "rtl2now", 1);
     1264                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://rtl2now.rtl2.de", "rtl2now", tmpstr2, 1);
    12651265        }
    12661266        else if(((struct tithek*)listbox->select->handle)->flag == 38)
     
    12981298        else if(((struct tithek*)listbox->select->handle)->flag == 67)
    12991299        {
    1300                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.rtlnitronow.de", "rtlnitronow", 1);
     1300                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.rtlnitronow.de", "rtlnitronow", tmpstr2, 1);
    13011301        }
    13021302        else if(((struct tithek*)listbox->select->handle)->flag == 68)
    13031303        {
    1304                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.rtlnitronow.de", "rtlnitronow", 1);
     1304                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.rtlnitronow.de", "rtlnitronow", tmpstr2, 1);
    13051305        }
    13061306        else if(((struct tithek*)listbox->select->handle)->flag == 70)
    13071307        {
    1308                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.n-tvnow.de", "ntvnow", 1);
     1308                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.n-tvnow.de", "ntvnow", tmpstr2, 1);
    13091309        }
    13101310        else if(((struct tithek*)listbox->select->handle)->flag == 71)
    13111311        {
    1312                 if(tmpstr != NULL) tmpstr1 = rtl2now(tmpstr, "http://www.n-tvnow.de", "ntvnow", 1);
     1312                if(tmpstr != NULL) tmpstr1 = now(tmpstr, "http://www.n-tvnow.de", "ntvnow", tmpstr2, 1);
    13131313        }
    13141314        free(tmpstr); tmpstr = NULL;
     1315        free(tmpstr2); tmpstr2 = NULL;
    13151316
    13161317        if(ostrstr(title, "Internet Radio") != NULL)
  • titan/plugins/tithek/tithek_header.h

    r29555 r29981  
    5050int movie4k_series(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title);
    5151int movie4k_series_listed(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title);
     52char* now(char* link, char* url, char* name, char* title, int flag)
    5253char* beeg(char* link);
    5354char* mlehd(char* link);
     
    5859char* ard(char* link);
    5960char* zdf(char* link);
    60 //char* myvideo(char* link, char* url, char* name, int flag);
    6161char* myvideo_hoster(char* link);
    6262char* myvideo(char* link);
    63 char* rtl2now(char* link, char* url, char* name, int flag);
    64 //char* youtube(char* link, char* url, char* name, int flag);
    6563char* youtube_hoster(char* link);
    6664char* youtube(char* link);
Note: See TracChangeset for help on using the changeset viewer.