mirror of https://github.com/kiwix/libkiwix.git
[OPDS] Add the url argument to filter by size and name.
Fix kiwix/kiwix-tools#231
This commit is contained in:
parent
f560a1f815
commit
ce6e956434
|
@ -758,6 +758,12 @@ Response InternalServer::handle_catalog(const RequestContext& request)
|
|||
query = request.get_argument("q");
|
||||
filter.query(query);
|
||||
} catch (const std::out_of_range&) {}
|
||||
try {
|
||||
filter.maxSize(extractFromString<unsigned long>(request.get_argument("maxsize")));
|
||||
} catch (...) {}
|
||||
try {
|
||||
filter.name(request.get_argument("name"));
|
||||
} catch (const std::out_of_range&) {}
|
||||
try {
|
||||
filter.lang(request.get_argument("lang"));
|
||||
} catch (const std::out_of_range&) {}
|
||||
|
|
Loading…
Reference in New Issue