@@ -1481,6 +1481,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/libraries/scan-status": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Libraries"
|
||||
],
|
||||
"summary": "Get active library scan status",
|
||||
"operationId": "GetLibraryScanStatus",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"text/plain": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LibraryScanStatusResponseModel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LibraryScanStatusResponseModel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LibraryScanStatusResponseModel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/libraries/{id}/scan": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -1603,6 +1643,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/media-sources": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Media Sources"
|
||||
],
|
||||
"summary": "Get all media sources with their libraries",
|
||||
"operationId": "GetMediaSources",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"text/plain": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/MediaSourceResponseModel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/MediaSourceResponseModel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/MediaSourceResponseModel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/playouts": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -4647,6 +4727,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"LibraryMediaKind": {
|
||||
"enum": [
|
||||
"Movies",
|
||||
"Shows",
|
||||
"MusicVideos",
|
||||
"OtherVideos",
|
||||
"Songs",
|
||||
"Images",
|
||||
"RemoteStreams"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"LibraryScanStatusResponseModel": {
|
||||
"required": [
|
||||
"libraryId",
|
||||
"percent"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"libraryId": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"percent": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MarathonGroupBy": {
|
||||
"enum": [
|
||||
"None",
|
||||
@@ -4729,6 +4838,73 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"MediaSourceLibraryResponseModel": {
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"mediaKind",
|
||||
"lastScan",
|
||||
"itemCount"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"mediaKind": {
|
||||
"$ref": "#/components/schemas/LibraryMediaKind"
|
||||
},
|
||||
"lastScan": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
],
|
||||
"format": "date-time"
|
||||
},
|
||||
"itemCount": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MediaSourceResponseModel": {
|
||||
"required": [
|
||||
"id",
|
||||
"kind",
|
||||
"name",
|
||||
"connectionAddress",
|
||||
"libraries"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"connectionAddress": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"libraries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/MediaSourceLibraryResponseModel"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"MultiCollectionItemViewModel": {
|
||||
"required": [
|
||||
"multiCollectionId",
|
||||
@@ -6388,6 +6564,9 @@
|
||||
{
|
||||
"name": "Maintenance"
|
||||
},
|
||||
{
|
||||
"name": "Media Sources"
|
||||
},
|
||||
{
|
||||
"name": "Playouts"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user