Changeset 36132


Ignore:
Timestamp:
Nov 9, 2015, 6:00:57 PM (5 years ago)
Author:
obi
Message:

tithek add cricfree

Location:
titan/plugins/tithek
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/cricfree.h

    r36130 r36132  
    1818        char* host = NULL;
    1919        char* path = NULL;
     20/*
     21http://cricfree.sx/sky-sports-1-live-stream-5
     22http://cricfree.sx/update/tsn1.php,
     23*/
     24        if(ostrstr(link, "/update/") == NULL)
     25        {
     26                tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
     27                host = string_resub("http://", "/", link, 0);
     28                path = string_replace_all(host, "", link, 0);
     29                path = string_replace_all("http://", "", path, 1);
     30                path = string_replace_all(" ", "%20", path, 1);
     31                titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast4_tmpstr", oitoa(incount), host, path, tmpstr);
     32                url = string_resub("src=\"", "\"", tmpstr, 0);
     33        }
     34        else
     35                url = ostrcat(link, NULL, 0, 0);
    2036
    21         tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
    22         host = string_resub("http://", "/", link, 0);
    23         path = string_replace_all(host, "", link, 0);
     37        printf("url: %s\n", url);
     38
     39        tmpstr = gethttps(url, NULL, NULL, NULL, NULL, NULL, 1);
     40        host = string_resub("http://", "/", url, 0);
     41        path = string_replace_all(host, "", url, 0);
    2442        path = string_replace_all("http://", "", path, 1);
    2543        path = string_replace_all(" ", "%20", path, 1);
    26         titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast4_tmpstr", oitoa(incount), host, path, tmpstr);
     44        titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast5_tmpstr", oitoa(incount), host, path, tmpstr);
     45        free(url), url = NULL;
    2746
    2847//<script type='text/javascript'>id='espnuk'; width='620'; height='490';</script><script type='text/javascript' src='http://theactionlive.com/livegamecr.js'></script>
     
    5372        path = string_replace_all("http://", "", path, 1);
    5473        path = string_replace_all(" ", "%20", path, 1);
    55         titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast5_tmpstr", oitoa(incount), host, path, tmpstr);
     74        titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast6_tmpstr", oitoa(incount), host, path, tmpstr);
    5675
    5776        pageurl = string_resub("src=\"", "\"", tmpstr, 0);
     
    7190        path = string_replace_all("http://", "", path, 1);
    7291        path = string_replace_all(" ", "%20", path, 1);
    73         titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast6_tmpstr", oitoa(incount), host, path, tmpstr);
     92        titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast7_tmpstr", oitoa(incount), host, path, tmpstr);
    7493
    7594        url = string_resub("file: \"", "\"", tmpstr, 0);
     
    102121                path = string_replace_all("http://", "", path, 1);
    103122                path = string_replace_all(" ", "%20", path, 1);
    104                 titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast7_tmpstr", oitoa(incount), host, path, tmpstr);
     123                titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast8_tmpstr", oitoa(incount), host, path, tmpstr);
    105124
    106125//              url: http://biggestplayer.me/streamcrnoscrape.php?id=+id+&width=&height=,
     
    124143                path = string_replace_all("http://", "", path, 1);
    125144                path = string_replace_all(" ", "%20", path, 1);
    126                 titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast8_tmpstr", oitoa(incount), host, path, tmpstr);
     145                titheklog(debuglevel, "/var/usr/local/share/titan/plugins/tithek/tvtoast9_tmpstr", oitoa(incount), host, path, tmpstr);
    127146                streamurl = string_resub("file: \"", "\"", tmpstr, 0);
    128147/*
  • titan/plugins/tithek/tithek.c

    r36083 r36132  
    5656#include "cloudzilla.h"
    5757#include "vivo.h"
     58#include "cricfree.h"
     59#include "streamlive.h"
    5860
    5961char pluginname[] = "TiTan Mediathek";
  • titan/plugins/tithek/tithek.h

    r36122 r36132  
    106106//flag 90   - amazon genre tv listed
    107107//flag 91   - streamlive
     108//flag 92   - cricfree
    108109
    109110//flag 100  - all local search
     
    13901391        else if(((struct tithek*)listbox->select->handle)->flag == 91)
    13911392        {
    1392                 if(tmpstr != NULL) tmpstr1 = streamlive(tmpstr, 1);
     1393                if(tmpstr != NULL) tmpstr1 = streamlive(tmpstr, -1);
     1394        }
     1395        else if(((struct tithek*)listbox->select->handle)->flag == 92)
     1396        {
     1397                if(tmpstr != NULL) tmpstr1 = cricfree(tmpstr, -1);
    13931398        }
    13941399
     
    19911996                                clearscreen(grid);
    19921997
    1993                                 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)
     1998                                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)
    19941999                                {
    19952000                                        submenu(listbox, load, title);
Note: See TracChangeset for help on using the changeset viewer.