summaryrefslogtreecommitdiff
path: root/src/extractors/extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/extractors/extractor.c')
-rw-r--r--src/extractors/extractor.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/extractors/extractor.c b/src/extractors/extractor.c
index 4bfc7cb..833686e 100644
--- a/src/extractors/extractor.c
+++ b/src/extractors/extractor.c
@@ -6,9 +6,10 @@
#include "haokan.h"
#include "youku.h"
-Site_map site_map = {
- {{"www.bilibili.com", SITE_BILIBILI}, {"haokan.baidu.com", SITE_HAOKAN}},
- 2};
+Site_map site_map = {{{"www.bilibili.com", SITE_BILIBILI},
+ {"haokan.baidu.com", SITE_HAOKAN},
+ {"v.youku.com", SITE_YOUKU}},
+ 3};
void options_cleanup(Options *options) {
free_and_nullify((void **)&options->URL);
@@ -26,6 +27,9 @@ int extract(void *v) {
case SITE_HAOKAN:
haokan_extract(options);
break;
+ case SITE_YOUKU:
+ youku_extract(options);
+ break;
}
options_cleanup(options);
return 0;