diff options
Diffstat (limited to 'src/extractors/haokan.c')
-rw-r--r-- | src/extractors/haokan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extractors/haokan.c b/src/extractors/haokan.c index 5659018..f289c3e 100644 --- a/src/extractors/haokan.c +++ b/src/extractors/haokan.c @@ -33,7 +33,8 @@ void haokan_extract(Options *options) { char *filename = malloc(strlen(title) + strlen(ct) + 2); sprintf(filename, "%s.%s", title, ext); - add_url(videoURL, NULL, filename, "https://haokan.baidu.com", NULL, NULL); + set_referer("https://haokan.baidu.com"); + add_url(videoURL, NULL, filename, NULL, NULL); end: free_str_array(&results); |