mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Add Playlists to the Other search tab
Domains and Playlists are Collections, so the Other tab searches both with the existing /api/collections/search (by kind) instead of a Domain-only endpoint. The search and the estimate share search_collections_query. The search now loads each Collection's Downloads up front instead of once per Collection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d0b9355beb
commit
65e3325e51
12 changed files with 160 additions and 167 deletions
|
|
@ -68,17 +68,6 @@ async def search_archives(request: Request, body: schema.ArchiveSearchRequest):
|
|||
return json_response(ret)
|
||||
|
||||
|
||||
@archive_bp.post('/domains/search')
|
||||
@openapi.definition(
|
||||
description='Search Domains by their name and/or Tags',
|
||||
body=schema.DomainSearchRequest,
|
||||
)
|
||||
@validate(schema.DomainSearchRequest)
|
||||
async def domain_search(request: Request, body: schema.DomainSearchRequest):
|
||||
domains = lib.search_domains(request.ctx.session, body.tag_names, body.search_str)
|
||||
return json_response(dict(domains=domains))
|
||||
|
||||
|
||||
@archive_bp.post('/file_format')
|
||||
@openapi.definition(
|
||||
description='Preview the archive file format',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue