mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 04:20:52 +00:00
cleaned up Get media meta data
This commit is contained in:
@@ -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
|
||||||
|
|||||||
8
src/models/chapter/end-time-offset.yaml
Normal file
8
src/models/chapter/end-time-offset.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- endTimeOffset
|
||||||
|
description: "The end time offset for the chapter"
|
||||||
|
properties:
|
||||||
|
endTimeOffset:
|
||||||
|
type: integer
|
||||||
|
example: 100100
|
||||||
8
src/models/chapter/filter.yaml
Normal file
8
src/models/chapter/filter.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- filter
|
||||||
|
description: "The filter for the chapter"
|
||||||
|
properties:
|
||||||
|
filter:
|
||||||
|
type: string
|
||||||
|
example: "thumb=4"
|
||||||
8
src/models/chapter/id.yaml
Normal file
8
src/models/chapter/id.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
description: "The identifier for the chapter"
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
example: 4
|
||||||
8
src/models/chapter/index.yaml
Normal file
8
src/models/chapter/index.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- index
|
||||||
|
description: "The index for the chapter"
|
||||||
|
properties:
|
||||||
|
index:
|
||||||
|
type: integer
|
||||||
|
example: 1
|
||||||
8
src/models/chapter/start-time-offset.yaml
Normal file
8
src/models/chapter/start-time-offset.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- startTimeOffset
|
||||||
|
description: "The start time offset for the chapter"
|
||||||
|
properties:
|
||||||
|
startTimeOffset:
|
||||||
|
type: integer
|
||||||
|
example: 0
|
||||||
8
src/models/chapter/thumb.yaml
Normal file
8
src/models/chapter/thumb.yaml
Normal 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"
|
||||||
@@ -5,4 +5,5 @@ description: "The identifier for the country"
|
|||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
|
format: int32
|
||||||
example: 259
|
example: 259
|
||||||
|
|||||||
13
src/models/marker/attributes.yaml
Normal file
13
src/models/marker/attributes.yaml
Normal 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
|
||||||
8
src/models/marker/end-time-offset.yaml
Normal file
8
src/models/marker/end-time-offset.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- endTimeOffset
|
||||||
|
description: "The end time offset for the marker"
|
||||||
|
properties:
|
||||||
|
endTimeOffset:
|
||||||
|
type: integer
|
||||||
|
example: 4393389
|
||||||
6
src/models/marker/final.yaml
Normal file
6
src/models/marker/final.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
type: object
|
||||||
|
description: "The final status of the marker"
|
||||||
|
properties:
|
||||||
|
final:
|
||||||
|
type: boolean
|
||||||
|
example: true
|
||||||
8
src/models/marker/id.yaml
Normal file
8
src/models/marker/id.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
description: "The identifier for the marker"
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
example: 306970
|
||||||
8
src/models/marker/start-time-offset.yaml
Normal file
8
src/models/marker/start-time-offset.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- startTimeOffset
|
||||||
|
description: "The start time offset for the marker"
|
||||||
|
properties:
|
||||||
|
startTimeOffset:
|
||||||
|
type: integer
|
||||||
|
example: 4176050
|
||||||
8
src/models/marker/type.yaml
Normal file
8
src/models/marker/type.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
description: "The type of the marker"
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
example: "credits"
|
||||||
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user