1 | #define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=" |
---|
2 | |
---|
3 | |
---|
4 | #include "../titan/struct.h" |
---|
5 | #include "../titan/debug.h" |
---|
6 | #include "../titan/header.h" |
---|
7 | #include "jsmn.h" |
---|
8 | #include "tithek_header.h" |
---|
9 | #include "tithek.h" |
---|
10 | #include "tithek_settings.h" |
---|
11 | #include "tithek_global.h" |
---|
12 | //#include "solarmovie.h" |
---|
13 | //#include "beeg.h" |
---|
14 | #include "kinox.h" |
---|
15 | //#include "myvideo.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 | #include "firedrive.h" |
---|
45 | #include "shared.h" |
---|
46 | #include "thefile.h" |
---|
47 | #include "promptfile.h" |
---|
48 | #include "letwatch.h" |
---|
49 | #include "vidbull.h" |
---|
50 | #include "vodlocker.h" |
---|
51 | #include "vidto.h" |
---|
52 | //#include "nowtv.h" |
---|
53 | //#include "amazon.h" |
---|
54 | #include "thevideo.h" |
---|
55 | #include "mightyupload.h" |
---|
56 | #include "cloudzilla.h" |
---|
57 | #include "vivo.h" |
---|
58 | #include "cricfree.h" |
---|
59 | #include "streamlive.h" |
---|
60 | //#include "movie2k.h" |
---|
61 | //#include "nbastream.h" |
---|
62 | //#include "nbaondemand.h" |
---|
63 | #include "p2pcast.h" |
---|
64 | #include "vidzi.h" |
---|
65 | #include "vidag.h" |
---|
66 | |
---|
67 | char pluginname[] = "TiTan Mediathek"; |
---|
68 | char plugindesc[] = "TiTan Mediathek"; |
---|
69 | char pluginpic[] = "%pluginpath%/tithek/plugin.png"; |
---|
70 | |
---|
71 | int pluginaktiv = 0; |
---|
72 | int pluginversion = PLUGINVERSION; |
---|
73 | |
---|
74 | //wird beim laden ausgefuehrt |
---|
75 | void init(void) |
---|
76 | { |
---|
77 | char* tmpstr = NULL; |
---|
78 | |
---|
79 | tmpstr = createpluginpath("/tithek/skin.xml", 0); |
---|
80 | readscreen(tmpstr, 195, 1); |
---|
81 | free(tmpstr); tmpstr = NULL; |
---|
82 | |
---|
83 | mkdir("/tmp/tithek", 777); |
---|
84 | pluginaktiv = 1; |
---|
85 | debug(10, "TiThek Plugin loadet !!!"); |
---|
86 | } |
---|
87 | |
---|
88 | //wird beim entladen ausgefuehrt |
---|
89 | void deinit(void) |
---|
90 | { |
---|
91 | delmarkedscreen(195); |
---|
92 | delallfiles("/tmp/tithek", NULL); |
---|
93 | pluginaktiv = 0; |
---|
94 | debug(10, "TiThek Plugin removed !!!"); |
---|
95 | } |
---|
96 | |
---|
97 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
98 | void start(void) |
---|
99 | { |
---|
100 | 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) |
---|
101 | { |
---|
102 | if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf") || file_exist("/mnt/swapextension/bin/audio.elf")) |
---|
103 | 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); |
---|
104 | } |
---|
105 | |
---|
106 | int aktplayerbuffersize = getconfigint("playerbuffersize", NULL); |
---|
107 | status.hangtime = 99999; |
---|
108 | tithekdownloadrun = 0; |
---|
109 | tithekdownloadcount = 0; |
---|
110 | tithekrun = 1; |
---|
111 | tithekexit = 0; |
---|
112 | // tithekmovie4k = 1; |
---|
113 | tithekkinox = 1; |
---|
114 | // titheksolarmovie = 1; |
---|
115 | //tithekmlehd = 1; |
---|
116 | // amazonlogin = 0; |
---|
117 | python = 0; |
---|
118 | ytbgdownload = 0; |
---|
119 | hlsbgdownload = 0; |
---|
120 | |
---|
121 | //change markcolor |
---|
122 | long tmplistboxselectcol = status.listboxselectcol; |
---|
123 | status.listboxselectcol = convertcol("tithek_selectcol"); |
---|
124 | |
---|
125 | if(getconfig("tithek_kinox_url", NULL) == NULL) |
---|
126 | addconfigtmp("tithek_kinox_url", "https://kinoxto.stream"); |
---|
127 | |
---|
128 | if(getconfig("tithek_kinox_localhoster", NULL) == NULL) |
---|
129 | addconfigtmp("tithek_kinox_localhoster", "2"); |
---|
130 | |
---|
131 | if(getconfig("tithek_kinox_pic", NULL) == NULL) |
---|
132 | addconfigtmp("tithek_kinox_pic", "1"); |
---|
133 | |
---|
134 | // if(checkbox("WHITEBOX") == 1) |
---|
135 | // screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.crenova.list", "Operator - Mainmenu", 1); |
---|
136 | // else |
---|
137 | // screentithekplay("http://ks387398.kimsufi.com/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1); |
---|
138 | // screentithekmenu("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1); |
---|
139 | screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1); |
---|
140 | |
---|
141 | //reset markcolor |
---|
142 | status.listboxselectcol = tmplistboxselectcol; |
---|
143 | |
---|
144 | tithekrun = 0; |
---|
145 | addconfigint("playerbuffersize", aktplayerbuffersize); |
---|
146 | status.hangtime = getconfigint("hangtime", NULL); |
---|
147 | } |
---|