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

Last change on this file since 36158 was 36158, checked in by obi, 8 years ago

[tithek] movie2k add movie play support

File size: 3.5 KB
Line 
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
62char pluginname[] = "TiTan Mediathek";
63char plugindesc[] = "TiTan Mediathek";
64char pluginpic[] = "%pluginpath%/tithek/plugin.png";
65
66int pluginaktiv = 0;
67int pluginversion = PLUGINVERSION;
68
69//wird beim laden ausgefuehrt
70void init(void)
71{
72        char* tmpstr = NULL;
73
74        tmpstr = createpluginpath("/tithek/skin.xml", 0);
75        readscreen(tmpstr, 195, 1);
76        free(tmpstr); tmpstr = NULL;
77
78        mkdir("/tmp/tithek", 777);
79        pluginaktiv = 1;
80        debug(10, "TiThek Plugin loadet !!!");
81}
82
83//wird beim entladen ausgefuehrt
84void deinit(void)
85{
86        delmarkedscreen(195);
87        delallfiles("/tmp/tithek", NULL);
88        pluginaktiv = 0;
89        debug(10, "TiThek Plugin removed !!!");
90}
91
92//wird in der Pluginverwaltung bzw Menue ausfeguehrt
93void start(void)
94{
95        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)
96        {
97                if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf") || file_exist("/mnt/swapextension/bin/audio.elf"))
98                        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);
99        }
100
101        int aktplayerbuffersize = getconfigint("playerbuffersize", NULL);
102        status.hangtime = 99999;
103        tithekdownloadrun = 0;
104        tithekdownloadcount = 0;
105        tithekrun = 1;
106        tithekexit = 0;
107        tithekmovie4k = 1;
108        tithekkinox = 1;
109        titheksolarmovie = 1;
110        tithekmlehd = 1;
111        amazonlogin = 0;
112       
113//change markcolor
114        long tmplistboxselectcol = status.listboxselectcol;
115        status.listboxselectcol = convertcol("tithek_selectcol");
116
117//      if(checkbox("WHITEBOX") == 1)
118//              screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.crenova.list", "Operator - Mainmenu", 1);
119//      else
120//              screentithekplay("http://ks387398.kimsufi.com/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
121                screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
122
123        //reset markcolor 
124        status.listboxselectcol = tmplistboxselectcol;
125       
126        tithekrun = 0;
127        addconfigint("playerbuffersize", aktplayerbuffersize);
128        status.hangtime = getconfigint("hangtime", NULL);
129}
Note: See TracBrowser for help on using the repository browser.