diff options
author | Mole Shang <[email protected]> | 2023-08-09 22:39:30 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-10 12:09:42 +0800 |
commit | 06feb4557af89dfa8e695a5e89f77d38e6342fb4 (patch) | |
tree | 92790010a675f6e9408a82fb5c45cf9935d701dc /src/extractors/extractor.c | |
parent | f7ccf916d9755700c655499afb0c8c636be07242 (diff) | |
download | hinata-06feb4557af89dfa8e695a5e89f77d38e6342fb4.tar.gz hinata-06feb4557af89dfa8e695a5e89f77d38e6342fb4.tar.bz2 hinata-06feb4557af89dfa8e695a5e89f77d38e6342fb4.zip |
extractors: initial youku support
Diffstat (limited to 'src/extractors/extractor.c')
-rw-r--r-- | src/extractors/extractor.c | 10 |
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; |