diff options
author | Mole Shang <[email protected]> | 2023-08-09 01:42:32 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-09 01:49:54 +0800 |
commit | e1d3ac3c61283923095271bbbc73257f9e5ff83c (patch) | |
tree | 75d5b6167e8f92d676b426f986162f93e6819013 | |
parent | 095851562f33cb9b57300673af4897680bc947d5 (diff) | |
download | hinata-e1d3ac3c61283923095271bbbc73257f9e5ff83c.tar.gz hinata-e1d3ac3c61283923095271bbbc73257f9e5ff83c.tar.bz2 hinata-e1d3ac3c61283923095271bbbc73257f9e5ff83c.zip |
extractors/bilibili: fix get page query
Since cee1e6c, the first match should be always in result.str[0]
-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 cdb2d62..aa3fc4e 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[1]) : 1; // Download p1 by default + *page = results.n ? atoi(results.str[0]) : 1; // Download p1 by default } return r; } |