cleaned up Get media meta data

This commit is contained in:
JasonLandbridge
2025-04-30 22:30:27 +02:00
parent 79ffb56f4b
commit ff31ecfdeb
15 changed files with 138 additions and 1 deletions

View File

@@ -170,7 +170,6 @@ items:
- id - id
- streamType - streamType
- codec - codec
- index
- displayTitle - displayTitle
- extendedDisplayTitle - extendedDisplayTitle
properties: properties:
@@ -183,6 +182,10 @@ items:
format: int32 format: int32
description: "Stream type (1=video, 2=audio, 3=subtitle)." description: "Stream type (1=video, 2=audio, 3=subtitle)."
example: 1 example: 1
format:
type: string
description: "Format of the stream (e.g., srt)."
example: "srt"
default: default:
type: boolean type: boolean
description: "Indicates if this stream is default." description: "Indicates if this stream is default."
@@ -299,6 +302,10 @@ items:
format: float format: float
description: "Frame rate of the stream." description: "Frame rate of the stream."
example: 23.976 example: 23.976
key:
type: string
description: "Key to access this stream part."
example: "/library/streams/216389"
height: height:
type: integer type: integer
format: int32 format: int32

View File

@@ -0,0 +1,8 @@
type: object
required:
- endTimeOffset
description: "The end time offset for the chapter"
properties:
endTimeOffset:
type: integer
example: 100100

View File

@@ -0,0 +1,8 @@
type: object
required:
- filter
description: "The filter for the chapter"
properties:
filter:
type: string
example: "thumb=4"

View File

@@ -0,0 +1,8 @@
type: object
required:
- id
description: "The identifier for the chapter"
properties:
id:
type: integer
example: 4

View File

@@ -0,0 +1,8 @@
type: object
required:
- index
description: "The index for the chapter"
properties:
index:
type: integer
example: 1

View File

@@ -0,0 +1,8 @@
type: object
required:
- startTimeOffset
description: "The start time offset for the chapter"
properties:
startTimeOffset:
type: integer
example: 0

View File

@@ -0,0 +1,8 @@
type: object
required:
- thumb
description: "The thumbnail for the chapter"
properties:
thumb:
type: string
example: "/library/media/46883/chapterImages/1"

View File

@@ -5,4 +5,5 @@ description: "The identifier for the country"
properties: properties:
id: id:
type: integer type: integer
format: int32
example: 259 example: 259

View File

@@ -0,0 +1,13 @@
type: object
description: "Attributes associated with the marker."
required:
- id
properties:
id:
type: integer
description: "The identifier for the attributes."
example: 306970
version:
type: integer
description: "The version number of the marker attributes."
example: 4

View File

@@ -0,0 +1,8 @@
type: object
required:
- endTimeOffset
description: "The end time offset for the marker"
properties:
endTimeOffset:
type: integer
example: 4393389

View File

@@ -0,0 +1,6 @@
type: object
description: "The final status of the marker"
properties:
final:
type: boolean
example: true

View File

@@ -0,0 +1,8 @@
type: object
required:
- id
description: "The identifier for the marker"
properties:
id:
type: integer
example: 306970

View File

@@ -0,0 +1,8 @@
type: object
required:
- startTimeOffset
description: "The start time offset for the marker"
properties:
startTimeOffset:
type: integer
example: 4176050

View File

@@ -0,0 +1,8 @@
type: object
required:
- type
description: "The type of the marker"
properties:
type:
type: string
example: "credits"

View File

@@ -311,6 +311,36 @@ get:
type: string type: string
description: "The file path for the location." description: "The file path for the location."
example: "/TV Shows/Better Call Saul" example: "/TV Shows/Better Call Saul"
Chapter:
type: array
items:
allOf:
- $ref: "../../../../models/chapter/id.yaml"
- $ref: "../../../../models/chapter/filter.yaml"
- $ref: "../../../../models/chapter/index.yaml"
- $ref: "../../../../models/chapter/start-time-offset.yaml"
- $ref: "../../../../models/chapter/end-time-offset.yaml"
- $ref: "../../../../models/chapter/thumb.yaml"
Marker:
type: array
items:
allOf:
- $ref: "../../../../models/marker/id.yaml"
- $ref: "../../../../models/marker/type.yaml"
- $ref: "../../../../models/marker/start-time-offset.yaml"
- $ref: "../../../../models/marker/end-time-offset.yaml"
- $ref: "../../../../models/marker/final.yaml"
- type: object
properties:
Attributes:
- $ref: "../../../../models/marker/attributes.yaml"
Extras:
type: object
properties:
size:
type: integer
description: "The size of the extras."
example: 1
"400": "400":
$ref: "../../../../responses/400.yaml" $ref: "../../../../responses/400.yaml"
"401": "401":