summaryrefslogtreecommitdiff
path: root/src/extractors/youku.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/extractors/youku.h')
-rw-r--r--src/extractors/youku.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/extractors/youku.h b/src/extractors/youku.h
new file mode 100644
index 0000000..721ff75
--- /dev/null
+++ b/src/extractors/youku.h
@@ -0,0 +1,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