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

Last change on this file since 22278 was 22278, checked in by nit, 11 years ago

fix

File size: 2.5 KB
Line 
1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "tithek_header.h"
5#include "tithek.h"
6#include "tithek_settings.h"
7#include "putlocker.h"
8#include "filenuke.h"
9#include "youtube.h"
10#include "kinox.h"
11#include "myvideo.h"
12#include "rtl2now.h"
13#include "streamcloud.h"
14#include "flashx.h"
15#include "vidstream.h"
16#include "xvidstage.h"
17#include "nowvideo.h"
18#include "beeg.h"
19#include "solarmovie.h"
20#include "movie4k.h"
21#include "mlehd.h"
22
23char pluginname[] = "TiTan Mediathek";
24char plugindesc[] = "TiTan Mediathek";
25char pluginpic[] = "%pluginpath%/tithek/plugin.png";
26
27int pluginaktiv = 0;
28int pluginversion = PLUGINVERSION;
29
30//wird beim laden ausgefuehrt
31void init(void)
32{
33        char* tmpstr = NULL;
34
35        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/tithek/skin.xml", 0, 0);
36        readscreen(tmpstr, 195, 1);
37        free(tmpstr); tmpstr = NULL;
38
39        mkdir("/tmp/tithek", 777);
40        pluginaktiv = 1;
41        debug(10, "TiThek Plugin loadet !!!");
42}
43
44//wird beim entladen ausgefuehrt
45void deinit(void)
46{
47        delmarkedscreen(195);
48        delallfiles("/tmp/tithek", NULL);
49        pluginaktiv = 0;
50        debug(10, "TiThek Plugin removed !!!");
51}
52
53//wird in der Pluginverwaltung bzw Menue ausfeguehrt
54void start(void)
55{
56        if(checkbox("ATEMIO510") == 0 && checkbox("ATEMIO7600") == 0 && checkbox("UFS912") == 0 && checkbox("ATEVIO700") == 0 && checkbox("ATEVIO7000") == 0 && checkbox("WHITEBOX") == 0 && checkbox("ATEMIO520") == 0)
57        {
58                if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf"))
59                        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);
60        }
61
62        int aktplayerbuffersize = getconfigint("playerbuffersize", NULL);
63        status.hangtime = 99999;
64        tithekdownloadrun = 0;
65        tithekdownloadcount = 0;
66        tithekrun = 1;
67        tithekexit = 0;
68        tithekmovie4k = 1;
69        tithekkinox = 1;
70        titheksolarmovie = 1;
71        tithekmlehd = 1;
72
73//change markcolor
74        long tmplistboxselectcol = status.listboxselectcol;
75        status.listboxselectcol = convertcol("tithekselect");
76
77//      if(checkbox("WHITEBOX") == 1)
78//              screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.crenova.list", "Operator - Mainmenu", 1);
79//      else
80                screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", "Tithek - Mainmenu", 1);
81
82        //reset markcolor 
83        status.listboxselectcol = tmplistboxselectcol;
84       
85        tithekrun = 0;
86        addconfigint("playerbuffersize", aktplayerbuffersize);
87        status.hangtime = getconfigint("hangtime", NULL);
88}
Note: See TracBrowser for help on using the repository browser.