Index: /titan/plugins/tithek/cricfree.h
===================================================================
--- /titan/plugins/tithek/cricfree.h (revision 36131)
+++ /titan/plugins/tithek/cricfree.h (revision 36132)
@@ -18,11 +18,30 @@
char* host = NULL;
char* path = NULL;
+/*
+http://cricfree.sx/sky-sports-1-live-stream-5
+http://cricfree.sx/update/tsn1.php,
+*/
+ if(ostrstr(link, "/update/") == NULL)
+ {
+ tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
+ host = string_resub("http://", "/", link, 0);
+ path = string_replace_all(host, "", link, 0);
+ path = string_replace_all("http://", "", path, 1);
+ path = string_replace_all(" ", "%20", path, 1);
+ titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast4_tmpstr", oitoa(incount), host, path, tmpstr);
+ url = string_resub("src=\"", "\"", tmpstr, 0);
+ }
+ else
+ url = ostrcat(link, NULL, 0, 0);
- tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
- host = string_resub("http://", "/", link, 0);
- path = string_replace_all(host, "", link, 0);
+ printf("url: %s\n", url);
+
+ tmpstr = gethttps(url, NULL, NULL, NULL, NULL, NULL, 1);
+ host = string_resub("http://", "/", url, 0);
+ path = string_replace_all(host, "", url, 0);
path = string_replace_all("http://", "", path, 1);
path = string_replace_all(" ", "%20", path, 1);
- titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast4_tmpstr", oitoa(incount), host, path, tmpstr);
+ titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast5_tmpstr", oitoa(incount), host, path, tmpstr);
+ free(url), url = NULL;
//
@@ -53,5 +72,5 @@
path = string_replace_all("http://", "", path, 1);
path = string_replace_all(" ", "%20", path, 1);
- titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast5_tmpstr", oitoa(incount), host, path, tmpstr);
+ titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast6_tmpstr", oitoa(incount), host, path, tmpstr);
pageurl = string_resub("src=\"", "\"", tmpstr, 0);
@@ -71,5 +90,5 @@
path = string_replace_all("http://", "", path, 1);
path = string_replace_all(" ", "%20", path, 1);
- titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast6_tmpstr", oitoa(incount), host, path, tmpstr);
+ titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast7_tmpstr", oitoa(incount), host, path, tmpstr);
url = string_resub("file: \"", "\"", tmpstr, 0);
@@ -102,5 +121,5 @@
path = string_replace_all("http://", "", path, 1);
path = string_replace_all(" ", "%20", path, 1);
- titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast7_tmpstr", oitoa(incount), host, path, tmpstr);
+ titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast8_tmpstr", oitoa(incount), host, path, tmpstr);
// url: http://biggestplayer.me/streamcrnoscrape.php?id=+id+&width=&height=,
@@ -124,5 +143,5 @@
path = string_replace_all("http://", "", path, 1);
path = string_replace_all(" ", "%20", path, 1);
- titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast8_tmpstr", oitoa(incount), host, path, tmpstr);
+ titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast9_tmpstr", oitoa(incount), host, path, tmpstr);
streamurl = string_resub("file: \"", "\"", tmpstr, 0);
/*
Index: /titan/plugins/tithek/tithek.c
===================================================================
--- /titan/plugins/tithek/tithek.c (revision 36131)
+++ /titan/plugins/tithek/tithek.c (revision 36132)
@@ -56,4 +56,6 @@
#include "cloudzilla.h"
#include "vivo.h"
+#include "cricfree.h"
+#include "streamlive.h"
char pluginname[] = "TiTan Mediathek";
Index: /titan/plugins/tithek/tithek.h
===================================================================
--- /titan/plugins/tithek/tithek.h (revision 36131)
+++ /titan/plugins/tithek/tithek.h (revision 36132)
@@ -106,4 +106,5 @@
//flag 90 - amazon genre tv listed
//flag 91 - streamlive
+//flag 92 - cricfree
//flag 100 - all local search
@@ -1390,5 +1391,9 @@
else if(((struct tithek*)listbox->select->handle)->flag == 91)
{
- if(tmpstr != NULL) tmpstr1 = streamlive(tmpstr, 1);
+ if(tmpstr != NULL) tmpstr1 = streamlive(tmpstr, -1);
+ }
+ else if(((struct tithek*)listbox->select->handle)->flag == 92)
+ {
+ if(tmpstr != NULL) tmpstr1 = cricfree(tmpstr, -1);
}
@@ -1991,5 +1996,5 @@
clearscreen(grid);
- if(((struct tithek*)listbox->select->handle)->flag == 2 || ((struct tithek*)listbox->select->handle)->flag == 3 || ((struct tithek*)listbox->select->handle)->flag == 4 || ((struct tithek*)listbox->select->handle)->flag == 5 || ((struct tithek*)listbox->select->handle)->flag == 6 || ((struct tithek*)listbox->select->handle)->flag == 12 || ((struct tithek*)listbox->select->handle)->flag == 14 || ((struct tithek*)listbox->select->handle)->flag == 15 || ((struct tithek*)listbox->select->handle)->flag == 20 || ((struct tithek*)listbox->select->handle)->flag == 38 || ((struct tithek*)listbox->select->handle)->flag == 42 || ((struct tithek*)listbox->select->handle)->flag == 45 || ((struct tithek*)listbox->select->handle)->flag == 46 || ((struct tithek*)listbox->select->handle)->flag == 64 || ((struct tithek*)listbox->select->handle)->flag == 50 || ((struct tithek*)listbox->select->handle)->flag == 41 || ((struct tithek*)listbox->select->handle)->flag == 43 || ((struct tithek*)listbox->select->handle)->flag == 75 || ((struct tithek*)listbox->select->handle)->flag == 91)
+ if(((struct tithek*)listbox->select->handle)->flag == 2 || ((struct tithek*)listbox->select->handle)->flag == 3 || ((struct tithek*)listbox->select->handle)->flag == 4 || ((struct tithek*)listbox->select->handle)->flag == 5 || ((struct tithek*)listbox->select->handle)->flag == 6 || ((struct tithek*)listbox->select->handle)->flag == 12 || ((struct tithek*)listbox->select->handle)->flag == 14 || ((struct tithek*)listbox->select->handle)->flag == 15 || ((struct tithek*)listbox->select->handle)->flag == 20 || ((struct tithek*)listbox->select->handle)->flag == 38 || ((struct tithek*)listbox->select->handle)->flag == 42 || ((struct tithek*)listbox->select->handle)->flag == 45 || ((struct tithek*)listbox->select->handle)->flag == 46 || ((struct tithek*)listbox->select->handle)->flag == 64 || ((struct tithek*)listbox->select->handle)->flag == 50 || ((struct tithek*)listbox->select->handle)->flag == 41 || ((struct tithek*)listbox->select->handle)->flag == 43 || ((struct tithek*)listbox->select->handle)->flag == 75 || ((struct tithek*)listbox->select->handle)->flag == 91 || ((struct tithek*)listbox->select->handle)->flag == 92)
{
submenu(listbox, load, title);