added genres

This commit is contained in:
JasonLandbridge
2025-02-04 11:50:23 +01:00
parent b1e3bae9e9
commit f3234f47c5
4 changed files with 287 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
get:
tags:
- Library
summary: Search Library
summary: Get Countries of library media
operationId: get-countries-library
description: |
Retrieves a list of all the countries that are found for the media in this library.

View File

@@ -0,0 +1,88 @@
get:
tags:
- Library
summary: Get Genres of library media
operationId: get-genres-library
description: |
Retrieves a list of all the genres that are found for the media in this library.
responses:
"200":
description: Successful response containing media container data.
content:
application/json:
schema:
type: object
properties:
MediaContainer:
allOf:
- $ref: "../../../models/MediaContainer.yaml"
- type: object
required:
- size
- allowSync
- art
- content
- identifier
- mediaTagPrefix
- mediaTagVersion
- nocache
- thumb
- title1
- title2
- viewGroup
properties:
art:
type: string
example: "/:/resources/show-fanart.jpg"
content:
type: string
example: "secondary"
mediaTagPrefix:
type: string
example: "/system/bundle/media/flags/"
mediaTagVersion:
type: integer
example: 1734362201
nocache:
type: boolean
example: true
thumb:
type: string
example: "/:/resources/show.png"
title1:
type: string
example: "TV Shows (Reality)"
title2:
type: string
example: "By Genre"
viewGroup:
type: string
example: "secondary"
Directory:
type: array
items:
type: object
required:
- fastKey
- key
- title
- type
properties:
fastKey:
type: string
example: "/library/sections/10/all?genre=89"
key:
type: string
example: "89"
title:
type: string
example: "Action"
type:
type: string
example: "genre"
"400":
$ref: "../../../responses/400.yaml"
"401":
$ref: "../../../responses/401.yaml"
"404":
$ref: "../../../responses/404-html.yaml"