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