Changeset 37468 for titan/plugins


Ignore:
Timestamp:
03/26/16 20:21:04 (8 years ago)
Author:
obi
Message:

[tithek] add vidzi hoster

Location:
titan/plugins/tithek
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.c

    r37024 r37468  
    6262#include "nbaondemand.h"
    6363#include "p2pcast.h"
     64#include "ecostream.h"
     65#include "vidzi.h"
    6466
    6567char pluginname[] = "TiTan Mediathek";
  • titan/plugins/tithek/tithek_global.h

    r37443 r37468  
    8282        else if(ostrstr(tmplink, "p2pcast") != NULL)
    8383                streamurl = p2pcast(url);
     84        else if(ostrstr(tmplink, "ecostream") != NULL)
     85                streamurl = ecostream(url);
     86        else if(ostrstr(tmplink, "vidzi") != NULL)
     87                streamurl = vidzi(url);
    8488        else
    8589        {
     
    173177                        curl_easy_setopt(curl_handle, CURLOPT_HTTPGET, 1L);
    174178                else
     179                {
     180                        curl_easy_setopt(curl_handle, CURLOPT_POST, 1);
    175181                        curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, data);
     182                }
    176183                if(flag == 1)
    177184                        curl_easy_setopt(curl_handle, CURLOPT_HEADER, 1L);
     
    191198
    192199                /* some servers don't like requests that are made without a user-agent field, so we provide one */
    193                 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
    194 //              curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36");
     200//              curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
     201                curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36");
    195202
    196203                // This is occassionally required to stop CURL from verifying the peers certificate.
  • titan/plugins/tithek/tithek_header.h

    r37024 r37468  
    115115char* nbaondemand(char* link);
    116116char* p2pcast(char* link);
     117char* ecostream(char* link);
     118char* vidzi(char* link);
    117119char* streamlive(char* link, int incount);
    118120char* cricfree(char* link, int incount);
Note: See TracChangeset for help on using the changeset viewer.