🛠️ fix: add & improve code to handle page handling in searx & duckduckgo
This commit is contained in:
parent
71c890ba05
commit
a8791deb13
2 changed files with 5 additions and 2 deletions
|
@ -45,7 +45,7 @@ impl SearchEngine for DuckDuckGo {
|
|||
// Page number can be missing or empty string and so appropriate handling is required
|
||||
// so that upstream server recieves valid page number.
|
||||
let url: String = match page {
|
||||
1 => {
|
||||
1 | 0 => {
|
||||
format!("https://html.duckduckgo.com/html/?q={query}&s=&dc=&v=1&o=json&api=/d.js")
|
||||
}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue