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

Last change on this file since 45041 was 45041, checked in by obi, 10 months ago

update tithek add useproxy add delservice to settings

File size: 4.2 KB
Line 
1#define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0="
2#define HTTPUSER "aUtzhFRTzuDFa"
3#define HTTPPASS "JNHZbghnjuz"
4
5
6#include "../titan/struct.h"
7#include "../titan/debug.h"
8#include "../titan/header.h"
9#include "jsmn.h"
10#include "tithek_header.h"
11#include "tithek.h"
12#include "tithek_settings.h"
13#include "tithek_global.h"
14//#include "solarmovie.h"
15//#include "beeg.h"
16#include "kinox.h"
17//#include "myvideo.h"
18//#include "movie4k.h"
19//#include "mlehd.h"
20#include "xvideos.h"
21#include "ard.h"
22//#include "zdf.h"
23#include "putlocker.h"
24#include "filenuke.h"
25//#include "youtube.h"
26#include "streamcloud.h"
27#include "flashx.h"
28#include "vidstream.h"
29#include "xvidstage.h"
30#include "nowvideo.h"
31#include "movshare.h"
32#include "movreel.h"
33#include "novamov.h"
34#include "divxstage.h"
35#include "primeshare.h"
36#include "faststream.h"
37#include "played.h"
38#include "videoweed.h"
39#include "internetradio.h"
40#include "internettv.h"
41//#include "giga.h"
42//#include "tectime.h"
43#include "netzkino.h"
44#include "filmon.h"
45//#include "tvtoast.h"
46#include "firedrive.h"
47#include "shared.h"
48#include "thefile.h"
49#include "promptfile.h"
50#include "letwatch.h"
51#include "vidbull.h"
52#include "vodlocker.h"
53#include "vidto.h"
54//#include "nowtv.h"
55//#include "amazon.h"
56#include "thevideo.h"
57#include "mightyupload.h"
58#include "cloudzilla.h"
59#include "vivo.h"
60#include "cricfree.h"
61#include "streamlive.h"
62//#include "movie2k.h"
63//#include "nbastream.h"
64//#include "nbaondemand.h"
65#include "p2pcast.h"
66#include "vidzi.h"
67#include "vidag.h"
68
69char pluginname[] = "TiTan Mediathek";
70char plugindesc[] = "TiTan Mediathek";
71char pluginpic[] = "%pluginpath%/tithek/plugin.png";
72
73int pluginaktiv = 0;
74int pluginversion = PLUGINVERSION;
75
76//wird beim laden ausgefuehrt
77void init(void)
78{
79        char* tmpstr = NULL;
80
81        tmpstr = createpluginpath("/tithek/skin.xml", 0);
82        readscreen(tmpstr, 195, 1);
83        free(tmpstr); tmpstr = NULL;
84
85        mkdir("/tmp/tithek", 777);
86        pluginaktiv = 1;
87        debug(10, "TiThek Plugin loadet !!!");
88}
89
90//wird beim entladen ausgefuehrt
91void deinit(void)
92{
93        delmarkedscreen(195);
94        delallfiles("/tmp/tithek", NULL);
95        pluginaktiv = 0;
96        debug(10, "TiThek Plugin removed !!!");
97}
98
99//wird in der Pluginverwaltung bzw Menue ausfeguehrt
100void start(void)
101{
102        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)
103        {
104                if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf") || file_exist("/mnt/swapextension/bin/audio.elf"))
105                        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);
106        }
107
108        int aktplayerbuffersize = getconfigint("playerbuffersize", NULL);
109        status.hangtime = 99999;
110        tithekdownloadrun = 0;
111        tithekdownloadcount = 0;
112        tithekrun = 1;
113        tithekexit = 0;
114//      tithekmovie4k = 1;
115        tithekkinox = 1;
116//      titheksolarmovie = 1;
117        //tithekmlehd = 1;
118//      amazonlogin = 0;
119        python = 0;
120        ytbgdownload = 0;
121        hlsbgdownload = 0;
122       
123//change markcolor
124        long tmplistboxselectcol = status.listboxselectcol;
125        status.listboxselectcol = convertcol("tithek_selectcol");
126
127        if(getconfig("tithek_kinox_url", NULL) == NULL)
128                addconfigtmp("tithek_kinox_url", "https://kinos.to");
129
130        if(getconfig("tithek_kinox_localhoster", NULL) == NULL)
131                addconfigtmp("tithek_kinox_localhoster", "1");
132
133        if(getconfig("tithek_kinox_pic", NULL) == NULL)
134                addconfigtmp("tithek_kinox_pic", "0");
135
136//      if(checkbox("WHITEBOX") == 1)
137//              screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.crenova.list", "Operator - Mainmenu", 1);
138//      else
139//              screentithekplay("http://ks387398.kimsufi.com/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
140//              screentithekmenu("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
141                screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
142
143        //reset markcolor 
144        status.listboxselectcol = tmplistboxselectcol;
145       
146        tithekrun = 0;
147        addconfigint("playerbuffersize", aktplayerbuffersize);
148        status.hangtime = getconfigint("hangtime", NULL);
149}
Note: See TracBrowser for help on using the repository browser.