diff --git a/server/core/helpers/query.ts b/server/core/helpers/query.ts index 7bd63f40e..881046b5f 100644 --- a/server/core/helpers/query.ts +++ b/server/core/helpers/query.ts @@ -43,8 +43,7 @@ function pickSearchVideoQuery (query: VideosSearchQueryAfterSanitize) { 'originallyPublishedEndDate', 'durationMin', 'durationMax', - 'uuids', - 'excludeAlreadyWatched' + 'uuids' ]) } } diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 3751d5503..afacfd48f 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -5321,6 +5321,7 @@ paths: get: tags: - Search + - Video summary: Search videos operationId: searchVideos parameters: @@ -5353,6 +5354,7 @@ paths: - $ref: '#/components/parameters/searchTarget' - $ref: '#/components/parameters/videosSearchSort' - $ref: '#/components/parameters/excludeAlreadyWatched' + - $ref: '#/components/parameters/host' - name: startDate in: query description: Get videos that are published after this date @@ -5404,6 +5406,7 @@ paths: get: tags: - Search + - Video Channels summary: Search channels operationId: searchChannels parameters: @@ -5420,6 +5423,8 @@ paths: - $ref: '#/components/parameters/count' - $ref: '#/components/parameters/searchTarget' - $ref: '#/components/parameters/sort' + - $ref: '#/components/parameters/host' + - $ref: '#/components/parameters/handles' callbacks: 'searchTarget === search-index': $ref: '#/components/callbacks/searchIndex' @@ -5437,6 +5442,7 @@ paths: get: tags: - Search + - Video Playlists summary: Search playlists operationId: searchPlaylists parameters: @@ -5453,6 +5459,8 @@ paths: - $ref: '#/components/parameters/count' - $ref: '#/components/parameters/searchTarget' - $ref: '#/components/parameters/sort' + - $ref: '#/components/parameters/host' + - $ref: '#/components/parameters/uuids' callbacks: 'searchTarget === search-index': $ref: '#/components/callbacks/searchIndex' @@ -6993,7 +7001,22 @@ components: schema: items: type: string - description: 'Find videos with specific UUIDs' + description: 'Find elements with specific UUIDs' + host: + name: host + in: query + required: false + schema: + type: string + description: 'Find elements owned by this host' + handles: + name: handles + in: query + required: false + schema: + items: + type: string + description: 'Find elements with these handles' include: name: include in: query