") != NULL)
{
int rcret = waitrc(NULL, 10, 0);
if(rcret == getrcconfigint("rcexit", NULL)) break;
incount += 1;
if(debuglevel == 99)
{
file = ostrcat("/tmp/solarmovie_tmpstr", oitoa(incount), 0, 1);
writesys(file, tmpstr, 0);
}
tmpstr1 = string_resub("
", "
", tmpstr, 0);
if(debuglevel == 99)
{
file1 = ostrcat("/tmp/solarmovie_tmpstr_resub", oitoa(incount), 0, 1);
writesys(file1, tmpstr1, 0);
}
path = string_resub("href=\"", "\"", tmpstr1, 0);
pic = string_resub("
select->handle;
createtithek(tnode, tnode->title, menu, tnode->pic, tnode->localname, tnode->menutitle, tnode->flag);
ret = 0;
}
free(tmpstr), tmpstr = NULL;
free(ip), ip = NULL;
}
free(search), search = NULL;
return ret;
}
int solarmovie_hoster(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title)
{
debug(99, "link: %s", link);
int debuglevel = getconfigint("debuglevel", NULL);
int ret = 1, series = 0;
char* ip = NULL, *pos = NULL, *path = NULL, *etitle = NULL, *episode = NULL, *session = NULL, *update = NULL, *quality = NULL, *id = NULL, *line = NULL, *hname = NULL, *tmpstr = NULL, *cmd = NULL, *url = NULL, *tmpstr1 = NULL, *tmphost = NULL, *tmphname = NULL;
unlink("/tmp/tithek/get");
unlink("/tmp/tithek/get_zcat");
unlink("/tmp/tithek/get_zcat1");
if(listbox == NULL || listbox->select == NULL || listbox->select->handle == NULL)
return ret;
ip = string_replace("http://", "", (char*)link, 0);
if(ip != NULL)
pos = strchr(ip, '/');
if(pos != NULL)
{
pos[0] = '\0';
path = pos + 1;
}
tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
if(tmpstr == NULL)
{
textbox(_("Message"), _("This file doesn't exist, or has been removed") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
goto end;
}
// if(debuglevel == 99) system("cp -a /tmp/tithek/get /tmp/solarmovie1_tmpstr_get");
// tmpstr = command("cat /tmp/tithek/get");
if(ostrstr(tmpstr, "", "", tmpstr, 0);
char* ptmpcat = ostrstr(tmpcat, "
", ptmpcat, 0), 1, 1);
ptmpcat += 5;
ptmpcat = ostrstr(ptmpcat, " | .*", tmpstr1);
quality = string_resub("yCell\">", " | ", tmpstr1, 0);
update = string_resub("oddCell\">", "", tmpstr1, 0);
string_remove_whitechars(quality);
strstrip(quality);
tmphname = oregex(".*/\">(.*).*", tmpstr1);
string_remove_whitechars(tmphname);
strstrip(tmphname);
tmphost = ostrcat("www.solarmovie.so", NULL, 0, 0);
url = ostrcat("/link/play/", id, 0, 0);
int type = 43;
if(ostrcmp(tmphname, "sockshare.com") == 0)
hname = ostrcat("Sockshare.com", NULL, 0, 0);
else if(ostrcmp(tmphname, "putlocker.com") == 0)
hname = ostrcat("Putlocker.com", NULL, 0, 0);
else if(ostrcmp(tmphname, "filenuke.com") == 0)
hname = ostrcat("FileNuke.com", NULL, 0, 0);
else if(ostrcmp(tmphname, "streamcloud.eu") == 0)
hname = ostrcat("StreamCloud.eu", NULL, 0, 0);
else if(ostrcmp(tmphname, "streamcloud") == 0)
hname = ostrcat("StreamCloud.eu", NULL, 0, 0);
else if(ostrcmp(tmphname, "vidstream.in") == 0)
hname = ostrcat("VidStream.in", NULL, 0, 0);
else if(ostrcmp(tmphname, "flashx.tv") == 0)
hname = ostrcat("FlashX.tv", NULL, 0, 0);
else if(ostrcmp(tmphname, "primeshare.tv") == 0)
hname = ostrcat("PrimeShare.tv", NULL, 0, 0);
else if(ostrcmp(tmphname, "xvidstage.com") == 0)
hname = ostrcat("XvidStage.com", NULL, 0, 0);
else if(ostrcmp(tmphname, "vidxden.com") == 0)
hname = ostrcat("vidxden.com", NULL, 0, 0);
else if(ostrcmp(tmphname, "nowvideo.eu") == 0)
hname = ostrcat("NowVideo.eu", NULL, 0, 0);
else if(ostrcmp(tmphname, "nowvideo.sx") == 0)
hname = ostrcat("NowVideo.sx", NULL, 0, 0);
else if(ostrcmp(tmphname, "movshare.net") == 0)
hname = ostrcat("MovShare.net", NULL, 0, 0);
else
{
hname = ostrcat(tmphname, " (coming soon)", 0, 0);
type = 66;
}
debug(99, "hname: %s url: %s id: %s", hname, url, id);
incount += 1;
line = ostrcat(line, hname, 1, 0);
line = ostrcat(line, "#", 1, 0);
line = ostrcat(line, url, 1, 0);
line = ostrcat(line, ";", 1, 0);
line = ostrcat(line, id, 1, 0);
line = ostrcat(line, ";", 1, 0);
line = ostrcat(line, tmphname, 1, 0);
line = ostrcat(line, "#", 1, 0);
line = ostrcat(line, "http://atemio.dyndns.tv/mediathek/menu/", 1, 0);
line = ostrcat(line, hname, 1, 0);
line = ostrcat(line, ".jpg#solarmovie_", 1, 0);
line = ostrcat(line, hname, 1, 0);
line = ostrcat(line, ".jpg#Solarmovie - ", 1, 0);
line = ostrcat(line, title, 1, 0);
line = ostrcat(line, "#", 1, 0);
line = ostrcat(line, oitoa(type), 1, 0);
line = ostrcat(line, "\n", 1, 0);
free(hname), hname = NULL;
free(tmphname), tmphname = NULL;
free(id), id = NULL;
}
}
free(tmpcat); tmpcat = NULL;
}
}
else
{
series = 1;
if(tmpstr != NULL)
{
writesys("/tmp/tithek/get_zcat", tmpstr, 0);
free(tmpstr), tmpstr = NULL;
tmpstr = command("cat /tmp/tithek/get_zcat | grep episode- | grep -v Episode | grep -v 'linkCount typicalGrey'");
writesys("/var/usr/local/share/titan/plugins/tithek/solarmovie8_tmpstr", tmpstr, 0);
int count = 0;
struct splitstr* ret1 = NULL;
ret1 = strsplit(tmpstr, "\n", &count);
int max = count;
int i = 0, incount = 0;
for(i = 0; i < max; i++)
{
//
The Headband
session = oregex(".*/season-([0-9]{1,2})/episode-.*", ret1[i].part);
episode = oregex(".*/episode-([0-9]{1,2})/.*", ret1[i].part);
etitle = oregex(".*>(.*)<.*", ret1[i].part);
url = string_resub("\"", "\"", ret1[i].part, 0);
incount += 1;
line = ostrcat(line, _("Season"), 1, 0);
line = ostrcat(line, " ", 1, 0);
line = ostrcat(line, session, 1, 0);
line = ostrcat(line, " ", 1, 0);
line = ostrcat(line, _("Episode"), 1, 0);
line = ostrcat(line, " ", 1, 0);
line = ostrcat(line, episode, 1, 0);
// line = ostrcat(line, "(s", 1, 0);
// line = ostrcat(line, session, 1, 0);
// line = ostrcat(line, "e", 1, 0);
// line = ostrcat(line, episode, 1, 0);
// line = ostrcat(line, ") ", 1, 0);
// line = ostrcat(line, etitle, 1, 0);
line = ostrcat(line, "#http://www.solarmovie.so", 1, 0);
line = ostrcat(line, url, 1, 0);
// line = ostrcat(line, ";", 1, 0);
// line = ostrcat(line, session, 1, 0);
// line = ostrcat(line, ";", 1, 0);
// line = ostrcat(line, episode, 1, 0);
line = ostrcat(line, "#", 1, 0);
line = ostrcat(line, "http://atemio.dyndns.tv/mediathek/menu/s", 1, 0);
line = ostrcat(line, session, 1, 0);
line = ostrcat(line, "e", 1, 0);
line = ostrcat(line, episode, 1, 0);
line = ostrcat(line, ".jpg", 1, 0);
line = ostrcat(line, "#s", 1, 0);
line = ostrcat(line, session, 1, 0);
line = ostrcat(line, "e", 1, 0);
line = ostrcat(line, episode, 1, 0);
line = ostrcat(line, ".jpg#Solarmovie - ", 1, 0);
line = ostrcat(line, title, 1, 0);
line = ostrcat(line, "#28\n", 1, 0);
free(session), session = NULL;
free(episode), episode = NULL;
free(url), url = NULL;
free(etitle), etitle = NULL;
}
}
}
free(tmpstr), tmpstr = NULL;
if(line != NULL)
{
if(series == 0)
tmpstr = ostrcat("/tmp/tithek/solarmovie.hoster.list", NULL, 0, 0);
else
tmpstr = ostrcat("/tmp/tithek/solarmovie.hoster.ser.list", NULL, 0, 0);
writesys(tmpstr, line, 0);
titheklog(debuglevel, "/tmp/solarmovie8_line", NULL, line);
struct tithek* tnode = (struct tithek*)listbox->select->handle;
createtithek(tnode, tnode->title, tmpstr, tnode->pic, tnode->localname, tnode->menutitle, tnode->flag);
ret = 0;
}
end:
free(ip), ip = NULL;
return ret;
}
#endif