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 | char pluginname[] = "TiTan Mediathek"; |
---|
22 | char plugindesc[] = "TiTan Mediathek"; |
---|
23 | char pluginpic[] = "%pluginpath%/tithek/plugin.png"; |
---|
24 | |
---|
25 | int pluginaktiv = 0; |
---|
26 | int pluginversion = PLUGINVERSION; |
---|
27 | |
---|
28 | //wird beim laden ausgefuehrt |
---|
29 | void init(void) |
---|
30 | { |
---|
31 | char* tmpstr = NULL; |
---|
32 | |
---|
33 | tmpstr = ostrcat(getconfig("pluginpath", NULL), "/tithek/skin.xml", 0, 0); |
---|
34 | readscreen(tmpstr, 195, 1); |
---|
35 | free(tmpstr); tmpstr = NULL; |
---|
36 | |
---|
37 | mkdir("/tmp/tithek", 777); |
---|
38 | pluginaktiv = 1; |
---|
39 | debug(10, "TiThek Plugin loadet !!!"); |
---|
40 | } |
---|
41 | |
---|
42 | //wird beim entladen ausgefuehrt |
---|
43 | void deinit(void) |
---|
44 | { |
---|
45 | delmarkedscreen(195); |
---|
46 | delallfiles("/tmp/tithek", NULL); |
---|
47 | pluginaktiv = 0; |
---|
48 | debug(10, "TiThek Plugin removed !!!"); |
---|
49 | } |
---|
50 | |
---|
51 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
52 | void start(void) |
---|
53 | { |
---|
54 | if(checkbox("ATEMIO510") == 0 && checkbox("ATEMIO7600") == 0 && checkbox("UFS912") == 0 && checkbox("ATEVIO700") == 0 && checkbox("ATEVIO7000") == 0 && checkbox("WHITEBOX") == 0) |
---|
55 | { |
---|
56 | if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf")) |
---|
57 | 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); |
---|
58 | } |
---|
59 | |
---|
60 | int aktplayerbuffersize = getconfigint("playerbuffersize", NULL); |
---|
61 | status.hangtime = 99999; |
---|
62 | tithekdownloadrun = 0; |
---|
63 | tithekdownloadcount = 0; |
---|
64 | tithekrun = 1; |
---|
65 | tithekexit = 0; |
---|
66 | if(checkbox("WHITEBOX") == 1) |
---|
67 | screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", "Operator - Mainmenu", 1); |
---|
68 | else |
---|
69 | screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", "Tithek - Mainmenu", 1); |
---|
70 | |
---|
71 | tithekrun = 0; |
---|
72 | addconfigint("playerbuffersize", aktplayerbuffersize); |
---|
73 | status.hangtime = getconfigint("hangtime", NULL); |
---|
74 | } |
---|