From 9c2b0b39d73da02bb9d255e9dc7f81db200930b1 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Wed, 9 Aug 2023 10:47:16 +0800 Subject: process_url: always match substrings instead of comparing --- src/extractors/extractor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/extractors') 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); -- cgit v1.2.3