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

Last change on this file since 20359 was 20359, checked in by obi, 11 years ago

fix tithek building

File size: 2.0 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
21#define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0="
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)
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        screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", "Tithek - Mainmenu", 1);
69        tithekrun = 0;
70        addconfigint("playerbuffersize", aktplayerbuffersize);
71        status.hangtime = getconfigint("hangtime", NULL);
72}
Note: See TracBrowser for help on using the repository browser.