Changeset 40103


Ignore:
Timestamp:
02/25/17 23:47:39 (7 years ago)
Author:
obi
Message:

use youtube-dl as last parser is to slow

File:
1 edited

Legend:

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

    r40094 r40103  
    1414
    1515        char* cmd = NULL;
    16         cmd = ostrcat("/tmp/localhoster/hoster.sh youtube_dl \"", url, 0, 0);
     16        cmd = ostrcat("/tmp/localhoster/hoster.sh get \"", url, 0, 0);
    1717        cmd = ostrcat(cmd, "\"", 1, 0);
    1818        streamurl = command(cmd);
    1919        streamurl = string_newline(streamurl);
    2020        free(cmd), cmd = NULL;
    21 
    22         if(streamurl == NULL)
    23         {
    24                 cmd = ostrcat("/tmp/localhoster/hoster.sh get \"", url, 0, 0);
    25                 cmd = ostrcat(cmd, "\"", 1, 0);
    26                 streamurl = command(cmd);
    27                 streamurl = string_newline(streamurl);
    28                 free(cmd), cmd = NULL;
    29         }
    3021
    3122        if(streamurl == NULL)
Note: See TracChangeset for help on using the changeset viewer.