diff options
author | Mole Shang <[email protected]> | 2023-08-06 16:37:53 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-06 16:37:53 +0800 |
commit | c21d660c0932c45bde08a92ffa2686fd472b1b9e (patch) | |
tree | 29b55766726b90eca14609bdc1344cd1e49eb7b6 /src | |
parent | 1ae17d1a63506421621e0e9e4a115bb22f9657db (diff) | |
download | hinata-c21d660c0932c45bde08a92ffa2686fd472b1b9e.tar.gz hinata-c21d660c0932c45bde08a92ffa2686fd472b1b9e.tar.bz2 hinata-c21d660c0932c45bde08a92ffa2686fd472b1b9e.zip |
bilibili: fix page matching
Always use the second result.
Diffstat (limited to 'src')
-rw-r--r-- | src/extractors/bilibili.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extractors/bilibili.c b/src/extractors/bilibili.c index 874a605..14905b0 100644 --- a/src/extractors/bilibili.c +++ b/src/extractors/bilibili.c @@ -292,7 +292,7 @@ static int get_page_in_query(char *query, int *page) { // for (unsigned short i = 0; i < results.n; i++) { // DEBUG_PRINT("%s\n", results.str[i]); // } - *page = results.n ? atoi(results.str[0]) : 1; // Download p1 by default + *page = results.n ? atoi(results.str[1]) : 1; // Download p1 by default } return r; } |