feat(blocklist): add support for collections (#1841)

This commit is contained in:
0xsysr3ll
2026-03-30 00:19:45 +02:00
committed by GitHub
parent 56b79ff38c
commit 993ae4c58e
8 changed files with 445 additions and 39 deletions

View File

@@ -4798,6 +4798,49 @@ paths:
responses:
'204':
description: Succesfully removed media item
/blocklist/collection/{collectionId}:
post:
summary: Add collection to blocklist
description: Adds all movies in a collection to the blocklist
tags:
- blocklist
parameters:
- in: path
name: collectionId
description: Collection ID
required: true
example: '1424991'
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
responses:
'201':
description: Successfully added collection to blocklist
'500':
description: Error adding collection to blocklist
delete:
summary: Remove collection from blocklist
description: Removes all movies in a collection from the blocklist
tags:
- blocklist
parameters:
- in: path
name: collectionId
description: Collection ID
required: true
example: '1424991'
schema:
type: string
responses:
'204':
description: Successfully removed collection from blocklist
'500':
description: Error removing collection from blocklist
/watchlist:
post:
summary: Add media to watchlist