source: titan/plugins/tithek/tithek.c @ 41935

Last change on this file since 41935 was 41935, checked in by obi, 2 years ago

fix kino

File size: 3.8 KB
RevLine 
[25155]1#define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0="
[24396]2
3
[18028]4#include "../titan/struct.h"
5#include "../titan/debug.h"
6#include "../titan/header.h"
[35293]7#include "jsmn.h"
[18028]8#include "tithek_header.h"
9#include "tithek.h"
10#include "tithek_settings.h"
[24396]11#include "tithek_global.h"
[41465]12//#include "solarmovie.h"
13//#include "beeg.h"
[24396]14#include "kinox.h"
[41465]15//#include "myvideo.h"
16//#include "movie4k.h"
17//#include "mlehd.h"
[24396]18#include "xvideos.h"
19#include "ard.h"
[41465]20//#include "zdf.h"
[18028]21#include "putlocker.h"
22#include "filenuke.h"
[41465]23//#include "youtube.h"
[18028]24#include "streamcloud.h"
[19597]25#include "flashx.h"
[19633]26#include "vidstream.h"
[19638]27#include "xvidstage.h"
[19658]28#include "nowvideo.h"
[24319]29#include "movshare.h"
[24360]30#include "movreel.h"
31#include "novamov.h"
[24379]32#include "divxstage.h"
33#include "primeshare.h"
[24483]34#include "faststream.h"
[24484]35#include "played.h"
[24486]36#include "videoweed.h"
[25155]37#include "internetradio.h"
[25158]38#include "internettv.h"
[41465]39//#include "giga.h"
40//#include "tectime.h"
[25165]41#include "netzkino.h"
[28659]42#include "filmon.h"
[41465]43//#include "tvtoast.h"
[29537]44#include "firedrive.h"
[30269]45#include "shared.h"
[30271]46#include "thefile.h"
[32084]47#include "promptfile.h"
[34078]48#include "letwatch.h"
[34085]49#include "vidbull.h"
[34087]50#include "vodlocker.h"
[34090]51#include "vidto.h"
[41465]52//#include "nowtv.h"
53//#include "amazon.h"
[35513]54#include "thevideo.h"
[35564]55#include "mightyupload.h"
[35609]56#include "cloudzilla.h"
[36083]57#include "vivo.h"
[36132]58#include "cricfree.h"
59#include "streamlive.h"
[41465]60//#include "movie2k.h"
61//#include "nbastream.h"
62//#include "nbaondemand.h"
[37024]63#include "p2pcast.h"
[37468]64#include "vidzi.h"
[37476]65#include "vidag.h"
[18028]66
67char pluginname[] = "TiTan Mediathek";
68char plugindesc[] = "TiTan Mediathek";
69char pluginpic[] = "%pluginpath%/tithek/plugin.png";
70
71int pluginaktiv = 0;
72int pluginversion = PLUGINVERSION;
73
74//wird beim laden ausgefuehrt
75void init(void)
76{
77        char* tmpstr = NULL;
78
[24056]79        tmpstr = createpluginpath("/tithek/skin.xml", 0);
[18028]80        readscreen(tmpstr, 195, 1);
81        free(tmpstr); tmpstr = NULL;
82
83        mkdir("/tmp/tithek", 777);
84        pluginaktiv = 1;
85        debug(10, "TiThek Plugin loadet !!!");
86}
87
88//wird beim entladen ausgefuehrt
89void deinit(void)
90{
91        delmarkedscreen(195);
92        delallfiles("/tmp/tithek", NULL);
93        pluginaktiv = 0;
94        debug(10, "TiThek Plugin removed !!!");
95}
96
97//wird in der Pluginverwaltung bzw Menue ausfeguehrt
98void start(void)
99{
[23739]100        if(checkbox("ATEMIO510") == 0 && checkbox("ATEMIO7600") == 0 && checkbox("UFS912") == 0 && checkbox("ATEVIO700") == 0 && checkbox("ATEVIO7000") == 0 && checkbox("WHITEBOX") == 0 && checkbox("ATEMIO520") == 0 && checkbox("ATEMIO530") == 0)
[18375]101        {
[23328]102                if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf") || file_exist("/mnt/swapextension/bin/audio.elf"))
[18375]103                        textbox(_("Message"), _("Alternativ Audio Firmware not working korrekt with all videos (DTSDOWNMIX)!"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
104        }
[18275]105
[19736]106        int aktplayerbuffersize = getconfigint("playerbuffersize", NULL);
[19554]107        status.hangtime = 99999;
[19570]108        tithekdownloadrun = 0;
109        tithekdownloadcount = 0;
110        tithekrun = 1;
[19572]111        tithekexit = 0;
[41465]112//      tithekmovie4k = 1;
[22215]113        tithekkinox = 1;
[41465]114//      titheksolarmovie = 1;
115        //tithekmlehd = 1;
116//      amazonlogin = 0;
[40848]117        python = 0;
[40900]118        ytbgdownload = 0;
[41291]119        hlsbgdownload = 0;
[35474]120       
[22273]121//change markcolor
[22278]122        long tmplistboxselectcol = status.listboxselectcol;
[22293]123        status.listboxselectcol = convertcol("tithek_selectcol");
[22273]124
[41862]125        if(getconfig("kino_url", NULL) == NULL)
[41935]126                addconfigtmp("kino_url", "kinox.io");
[41862]127
[21799]128//      if(checkbox("WHITEBOX") == 1)
129//              screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.crenova.list", "Operator - Mainmenu", 1);
130//      else
[30222]131//              screentithekplay("http://ks387398.kimsufi.com/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
132                screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
[22273]133
134        //reset markcolor 
135        status.listboxselectcol = tmplistboxselectcol;
[21146]136       
[19570]137        tithekrun = 0;
[19736]138        addconfigint("playerbuffersize", aktplayerbuffersize);
[19554]139        status.hangtime = getconfigint("hangtime", NULL);
[18028]140}
Note: See TracBrowser for help on using the repository browser.