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

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

[tithek] add vidzi hoster

File size: 3.6 KB
RevLine 
[25155]1#define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0="
[24396]2
3
[18028]4#include "../titan/struct.h"
5#include "../titan/debug.h"
6#include "../titan/header.h"
[35293]7#include "jsmn.h"
[18028]8#include "tithek_header.h"
9#include "tithek.h"
10#include "tithek_settings.h"
[24396]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"
[18028]21#include "putlocker.h"
22#include "filenuke.h"
23#include "youtube.h"
24#include "streamcloud.h"
[19597]25#include "flashx.h"
[19633]26#include "vidstream.h"
[19638]27#include "xvidstage.h"
[19658]28#include "nowvideo.h"
[24319]29#include "movshare.h"
[24360]30#include "movreel.h"
31#include "novamov.h"
[24379]32#include "divxstage.h"
33#include "primeshare.h"
[24483]34#include "faststream.h"
[24484]35#include "played.h"
[24486]36#include "videoweed.h"
[25155]37#include "internetradio.h"
[25158]38#include "internettv.h"
39#include "giga.h"
[25767]40#include "tectime.h"
[25165]41#include "netzkino.h"
[28659]42#include "filmon.h"
[28839]43#include "tvtoast.h"
[29537]44#include "firedrive.h"
[30269]45#include "shared.h"
[30271]46#include "thefile.h"
[32084]47#include "promptfile.h"
[34078]48#include "letwatch.h"
[34085]49#include "vidbull.h"
[34087]50#include "vodlocker.h"
[34090]51#include "vidto.h"
[34605]52#include "nowtv.h"
[35286]53#include "amazon.h"
[35513]54#include "thevideo.h"
[35564]55#include "mightyupload.h"
[35609]56#include "cloudzilla.h"
[36083]57#include "vivo.h"
[36132]58#include "cricfree.h"
59#include "streamlive.h"
[36158]60#include "movie2k.h"
[36172]61#include "nbastream.h"
[36254]62#include "nbaondemand.h"
[37024]63#include "p2pcast.h"
[37468]64#include "ecostream.h"
65#include "vidzi.h"
[18028]66
67char pluginname[] = "TiTan Mediathek";
68char plugindesc[] = "TiTan Mediathek";
69char pluginpic[] = "%pluginpath%/tithek/plugin.png";
70
71int pluginaktiv = 0;
72int pluginversion = PLUGINVERSION;
73
74//wird beim laden ausgefuehrt
75void init(void)
76{
77        char* tmpstr = NULL;
78
[24056]79        tmpstr = createpluginpath("/tithek/skin.xml", 0);
[18028]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
89void 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
98void start(void)
99{
[23739]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)
[18375]101        {
[23328]102                if(file_exist("/var/bin/audio.elf") || file_exist("/var/swap/bin/audio.elf") || file_exist("/mnt/swapextension/bin/audio.elf"))
[18375]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        }
[18275]105
[19736]106        int aktplayerbuffersize = getconfigint("playerbuffersize", NULL);
[19554]107        status.hangtime = 99999;
[19570]108        tithekdownloadrun = 0;
109        tithekdownloadcount = 0;
110        tithekrun = 1;
[19572]111        tithekexit = 0;
[22215]112        tithekmovie4k = 1;
113        tithekkinox = 1;
114        titheksolarmovie = 1;
115        tithekmlehd = 1;
[35474]116        amazonlogin = 0;
117       
[22273]118//change markcolor
[22278]119        long tmplistboxselectcol = status.listboxselectcol;
[22293]120        status.listboxselectcol = convertcol("tithek_selectcol");
[22273]121
[21799]122//      if(checkbox("WHITEBOX") == 1)
123//              screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.crenova.list", "Operator - Mainmenu", 1);
124//      else
[30222]125//              screentithekplay("http://ks387398.kimsufi.com/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
126                screentithekplay("http://atemio.dyndns.tv/mediathek/mainmenu.list", _("Tithek - Mainmenu"), 1);
[22273]127
128        //reset markcolor 
129        status.listboxselectcol = tmplistboxselectcol;
[21146]130       
[19570]131        tithekrun = 0;
[19736]132        addconfigint("playerbuffersize", aktplayerbuffersize);
[19554]133        status.hangtime = getconfigint("hangtime", NULL);
[18028]134}
Note: See TracBrowser for help on using the repository browser.