diff options
author | Mole Shang <[email protected]> | 2023-08-07 22:52:47 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-07 22:59:19 +0800 |
commit | 204ab98bea93754beef914fe93ee249e346ee628 (patch) | |
tree | c056c82f4de392be506ed2298dbb66411414e350 /src/process_url.h | |
parent | b6c2d97d3bf98c46656a7e6697c1c0f4686d7d97 (diff) | |
download | hinata-204ab98bea93754beef914fe93ee249e346ee628.tar.gz hinata-204ab98bea93754beef914fe93ee249e346ee628.tar.bz2 hinata-204ab98bea93754beef914fe93ee249e346ee628.zip |
hinata: support specifying cookies in curl_easy
We use tomlc99 to parse strings.
To use cookies for higher resolution video downloading, add a
config.toml in the executable path.
e.g.
```filename: config.toml
cookie="SESSDATA=xxx; some_more_cookie=xxx"
```
Diffstat (limited to 'src/process_url.h')
-rw-r--r-- | src/process_url.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_url.h b/src/process_url.h index 25caef6..5343c9e 100644 --- a/src/process_url.h +++ b/src/process_url.h @@ -52,7 +52,7 @@ typedef struct callback_struct { typedef int (*callback_t)(callback_struct_t *); -void curl_init(); +void curl_init(char *); void curl_cleanup(status_t *); |