Ignore:
Timestamp:
Nov 25, 2017, 6:32:40 PM (3 years ago)
Author:
obi
Message:

fix streamlist

File:
1 edited

Legend:

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

    r41279 r41285  
    77{
    88        debug(99, "url: %s", url);
     9        int debuglevel = getconfigint("debuglevel", NULL);
    910        char* streamurl = NULL, *tmplink = NULL, *tmpstr = NULL;
    1011        struct skin* load = getscreen("loading");
     
    217218        }
    218219
    219         debug(99, "Streamurl1: %s", streamurl);
     220        debug(99, "Streamurl5: %s", streamurl);
    220221
    221222        streamurl = string_replace_all("amp;", "", streamurl, 1);
    222         debug(99, "Streamurl4: %s", streamurl);
     223        debug(99, "Streamurl6: %s", streamurl);
    223224
    224225        free(tmplink), tmplink = NULL;
     226        free(tmpstr), tmpstr = NULL;
     227
     228//      printf("streamurl1: %s\n", streamurl);
     229        if(debuglevel != 99)
     230                printf("Streamurl1: %s\n", streamurl);
     231        tmpstr = ostrcat(streamurl, NULL, 0, 0);
     232        streamurl = list_hoster_streams(tmpstr);
     233        if(debuglevel != 99)
     234                printf("Streamurl2: %s\n", streamurl);
     235        debug(99, "Streamurl7: %s", streamurl);
     236
     237        free(tmpstr), tmpstr = NULL;
     238
    225239/*
    226240        if(ostrncmp("http", streamurl, 4) && ostrncmp("rtmp", streamurl, 4) && ostrncmp("mms", streamurl, 3) && ostrncmp("rtsp", streamurl, 4))
     
    14201434        free(tmpstr), tmpstr = NULL;
    14211435
    1422         printf("streamurl1: %s\n", streamurl);
    1423 
    1424 
    1425         tmpstr = ostrcat(streamurl, NULL, 0, 0);
    1426         streamurl = list_hoster_streams(tmpstr);
    1427         printf("streamurl: %s\n", streamurl);
    1428 
    14291436        debug(99, "streamurl2: %s", streamurl);
    14301437
Note: See TracChangeset for help on using the changeset viewer.