blob: 721ff7595e3d06f0169343898c1bdcaaee7943c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef YOUKU_H_
#define YOUKU_H_
#include <time.h>
#include "extractor.h"
#define YOUKU_API "https://ups.youku.com/ups/get.json?"
typedef struct youku_options {
char *api;
char *vid;
char *utid;
char *ccode;
const char *client_ip;
time_t client_ts;
cJSON *json;
} Youku_options;
typedef struct youku_data {
char *title;
int width;
int height;
char *m3u8_url;
} Youku_data;
void youku_extract(Options *options);
#endif
|