Closed Zekfad closed 2 years ago
Workaround for searching with sort: Right now queries are unescaped so, you can do following:
let q = encodeURIComponent('Some search');
let sort = ['popular', 'popular-today', 'popular-week'][0] // 0, 1, 2, 3
search(text + (sort ? '&sort=' + sort : '')).then(/* ... */);
We need to check all endpoints for new available parameters.
Sort example: https://github.com/CodexScript/nhentai-api/blob/c0eacbbec060500478bae1149b97b9a3d4606693/src/api.js#L37