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

Last change on this file since 24396 was 24396, checked in by obi, 10 years ago

[tithek] optimize hoster stuff

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