diff options
author | Mole Shang <[email protected]> | 2023-08-09 10:47:16 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-09 10:47:16 +0800 |
commit | 9c2b0b39d73da02bb9d255e9dc7f81db200930b1 (patch) | |
tree | a3b0527938543a695745e1102e82bc048c79ff1c /src/extractors | |
parent | 9e733e6232d5047f08a3a9f5f4b7b5cbe2bf33d0 (diff) | |
download | hinata-9c2b0b39d73da02bb9d255e9dc7f81db200930b1.tar.gz hinata-9c2b0b39d73da02bb9d255e9dc7f81db200930b1.tar.bz2 hinata-9c2b0b39d73da02bb9d255e9dc7f81db200930b1.zip |
process_url: always match substrings instead of comparing
Diffstat (limited to 'src/extractors')
-rw-r--r-- | src/extractors/extractor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/extractors/extractor.c b/src/extractors/extractor.c index ccc1ec6..5317945 100644 --- a/src/extractors/extractor.c +++ b/src/extractors/extractor.c @@ -6,8 +6,7 @@ #include "haokan.h" Site_map site_map = { - {{"www.bilibili.com", SITE_BILIBILI}, {"haokan.baidu.com", SITE_HAOKAN}}, - 2}; + {{"bilibili.com", SITE_BILIBILI}, {"haokan.baidu.com", SITE_HAOKAN}}, 2}; void options_cleanup(Options *options) { free_and_nullify(options->URL); |