From 764eb6c75a57903cce62512f874110385cc7bfc3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 23 May 2024 15:57:50 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.295.1 --- .speakeasy/gen.lock | 35 +- .speakeasy/gen.yaml | 3 +- .speakeasy/workflow.lock | 10 +- README.md | 10 +- RELEASES.md | 12 +- USAGE.md | 1 - activities.go | 2 + authentication.go | 2 + butler.go | 5 + codeSamples.yaml | 2124 ++++++++++++++--- .../addplaylistcontentsmediacontainer.md | 12 +- .../createplaylistmediacontainer.md | 8 +- docs/models/operations/fieldtype.md | 2 +- .../operations/getglobalhubsmediacontainer.md | 12 +- .../operations/getlibrariesdirectory.md | 2 +- .../operations/getlibrariesmediacontainer.md | 12 +- docs/models/operations/getlibraryhubshub.md | 28 +- docs/models/operations/getlibraryhubsmedia.md | 38 +- .../getlibraryhubsmediacontainer.md | 18 +- .../operations/getlibraryhubsmetadata.md | 72 +- .../operations/getlibraryitemscountry.md | 8 + .../operations/getlibraryitemsdirector.md | 8 + .../models/operations/getlibraryitemsgenre.md | 8 + .../models/operations/getlibraryitemsmedia.md | 21 + .../getlibraryitemsmediacontainer.md | 23 + .../operations/getlibraryitemsmetadata.md | 64 + docs/models/operations/getlibraryitemspart.md | 14 + .../operations/getlibraryitemsrequest.md | 9 + .../operations/getlibraryitemsresponse.md | 11 + .../operations/getlibraryitemsresponsebody.md | 10 + docs/models/operations/getlibraryitemsrole.md | 8 + .../operations/getlibraryitemswriter.md | 8 + .../operations/getlibrarymediacontainer.md | 34 +- docs/models/operations/getlibrarytype.md | 18 +- .../getmetadatachildrenmediacontainer.md | 50 +- docs/models/operations/getmetadatamedia.md | 38 +- .../operations/getmetadatamediacontainer.md | 22 +- docs/models/operations/getmetadatametadata.md | 70 +- docs/models/operations/getmetadatapart.md | 26 +- .../operations/getplaylistcontentsmedia.md | 38 +- .../getplaylistcontentsmediacontainer.md | 22 +- .../operations/getplaylistcontentsmetadata.md | 68 +- .../operations/getplaylistmediacontainer.md | 8 +- .../operations/getplaylistsmediacontainer.md | 8 +- .../getserverpreferencesmediacontainer.md | 8 +- .../getsessionhistorymediacontainer.md | 8 +- docs/models/operations/getsessionsmedia.md | 20 +- .../operations/getsessionsmediacontainer.md | 8 +- docs/models/operations/getsessionsmetadata.md | 78 +- docs/models/operations/getsessionspart.md | 24 +- .../operations/getstatisticsmediacontainer.md | 12 +- docs/models/operations/hub.md | 26 +- .../operations/searchlibrarymediacontainer.md | 30 +- docs/models/operations/tag.md | 28 + .../models/sdkerrors/getlibraryitemserrors.md | 10 + .../sdkerrors/getlibraryitemsresponsebody.md | 11 + docs/models/sdkerrors/searchlibraryerrors.md | 10 + .../sdkerrors/searchlibraryresponsebody.md | 11 + docs/sdks/activities/README.md | 6 - docs/sdks/authentication/README.md | 6 - docs/sdks/butler/README.md | 15 - docs/sdks/hubs/README.md | 6 - docs/sdks/library/README.md | 110 +- docs/sdks/log/README.md | 9 - docs/sdks/media/README.md | 9 - docs/sdks/playlists/README.md | 27 - docs/sdks/plex/README.md | 4 - docs/sdks/search/README.md | 9 - docs/sdks/server/README.md | 24 - docs/sdks/sessions/README.md | 12 - docs/sdks/statistics/README.md | 3 - docs/sdks/updater/README.md | 9 - docs/sdks/video/README.md | 6 - hubs.go | 2 + internal/utils/headers.go | 3 +- internal/utils/pathparams.go | 3 +- internal/utils/queryparams.go | 3 +- internal/utils/security.go | 4 + internal/utils/utils.go | 7 + library.go | 160 +- log.go | 3 + media.go | 3 + models/operations/applyupdates.go | 2 - models/operations/checkforupdates.go | 1 - models/operations/createplaylist.go | 2 - models/operations/getglobalhubs.go | 1 - models/operations/getlibrary.go | 1 - models/operations/getlibraryhubs.go | 1 - models/operations/getlibraryitems.go | 991 ++++++++ models/operations/getplaylists.go | 2 - models/operations/getresizedphoto.go | 2 - models/operations/gettimeline.go | 1 - models/operations/gettransienttoken.go | 2 - models/operations/logline.go | 1 - models/operations/searchlibrary.go | 1 - models/operations/starttask.go | 1 - models/operations/stoptask.go | 1 - models/operations/uploadplaylist.go | 1 - models/sdkerrors/getlibraryitems.go | 49 + models/sdkerrors/searchlibrary.go | 49 + playlists.go | 9 + plex.go | 2 + plexapi.go | 15 +- search.go | 3 + server.go | 8 + sessions.go | 4 + statistics.go | 1 + updater.go | 3 + video.go | 2 + 109 files changed, 3921 insertions(+), 964 deletions(-) create mode 100644 docs/models/operations/getlibraryitemscountry.md create mode 100644 docs/models/operations/getlibraryitemsdirector.md create mode 100644 docs/models/operations/getlibraryitemsgenre.md create mode 100644 docs/models/operations/getlibraryitemsmedia.md create mode 100644 docs/models/operations/getlibraryitemsmediacontainer.md create mode 100644 docs/models/operations/getlibraryitemsmetadata.md create mode 100644 docs/models/operations/getlibraryitemspart.md create mode 100644 docs/models/operations/getlibraryitemsrequest.md create mode 100644 docs/models/operations/getlibraryitemsresponse.md create mode 100644 docs/models/operations/getlibraryitemsresponsebody.md create mode 100644 docs/models/operations/getlibraryitemsrole.md create mode 100644 docs/models/operations/getlibraryitemswriter.md create mode 100644 docs/models/operations/tag.md create mode 100644 docs/models/sdkerrors/getlibraryitemserrors.md create mode 100644 docs/models/sdkerrors/getlibraryitemsresponsebody.md create mode 100644 docs/models/sdkerrors/searchlibraryerrors.md create mode 100644 docs/models/sdkerrors/searchlibraryresponsebody.md create mode 100644 models/operations/getlibraryitems.go create mode 100644 models/sdkerrors/getlibraryitems.go create mode 100644 models/sdkerrors/searchlibrary.go diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3dc22a2..47e8434 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: dfa99515-01c0-42eb-9be5-ee212fd03eb3 management: - docChecksum: 543cb95355401d2e3c2ba11a50d9dd94 + docChecksum: 911d74baa0d06121d2ce2c71d94e977a docVersion: 0.0.3 - speakeasyVersion: 1.285.0 - generationVersion: 2.326.3 - releaseVersion: 0.7.0 - configChecksum: 98c0e864ba8f7c2e3b366fd643dd90ab + speakeasyVersion: 1.295.1 + generationVersion: 2.335.5 + releaseVersion: 0.8.0 + configChecksum: 9936959f866802e61eb9349bd46ba213 repoURL: https://github.com/LukeHagar/plexgo.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexgo @@ -15,7 +15,7 @@ features: go: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.4 - core: 3.4.7 + core: 3.4.10 flattening: 2.81.1 globalSecurity: 2.82.9 globalSecurityCallbacks: 0.1.0 @@ -25,9 +25,8 @@ features: intellisenseMarkdownSupport: 0.1.0 methodServerURLs: 2.82.1 nameOverrides: 2.81.2 - responseFormat: 0.1.1 + responseFormat: 0.1.2 sdkHooks: 0.1.0 - unions: 2.85.5 generatedFiles: - server.go - media.go @@ -93,6 +92,7 @@ generatedFiles: - /models/operations/getlibraries.go - /models/operations/getlibrary.go - /models/operations/deletelibrary.go + - /models/operations/getlibraryitems.go - /models/operations/refreshlibrary.go - /models/operations/searchlibrary.go - /models/operations/getmetadata.go @@ -152,7 +152,9 @@ generatedFiles: - /models/sdkerrors/getlibraries.go - /models/sdkerrors/getlibrary.go - /models/sdkerrors/deletelibrary.go + - /models/sdkerrors/getlibraryitems.go - /models/sdkerrors/refreshlibrary.go + - /models/sdkerrors/searchlibrary.go - /models/sdkerrors/getmetadata.go - /models/sdkerrors/getmetadatachildren.go - /models/sdkerrors/getondeck.go @@ -312,6 +314,19 @@ generatedFiles: - docs/models/operations/getlibraryresponse.md - docs/models/operations/deletelibraryrequest.md - docs/models/operations/deletelibraryresponse.md + - docs/models/operations/tag.md + - docs/models/operations/getlibraryitemsrequest.md + - docs/models/operations/getlibraryitemspart.md + - docs/models/operations/getlibraryitemsmedia.md + - docs/models/operations/getlibraryitemsgenre.md + - docs/models/operations/getlibraryitemscountry.md + - docs/models/operations/getlibraryitemsdirector.md + - docs/models/operations/getlibraryitemswriter.md + - docs/models/operations/getlibraryitemsrole.md + - docs/models/operations/getlibraryitemsmetadata.md + - docs/models/operations/getlibraryitemsmediacontainer.md + - docs/models/operations/getlibraryitemsresponsebody.md + - docs/models/operations/getlibraryitemsresponse.md - docs/models/operations/refreshlibraryrequest.md - docs/models/operations/refreshlibraryresponse.md - docs/models/operations/type.md @@ -512,8 +527,12 @@ generatedFiles: - docs/models/sdkerrors/getlibraryresponsebody.md - docs/models/sdkerrors/deletelibraryerrors.md - docs/models/sdkerrors/deletelibraryresponsebody.md + - docs/models/sdkerrors/getlibraryitemserrors.md + - docs/models/sdkerrors/getlibraryitemsresponsebody.md - docs/models/sdkerrors/refreshlibraryerrors.md - docs/models/sdkerrors/refreshlibraryresponsebody.md + - docs/models/sdkerrors/searchlibraryerrors.md + - docs/models/sdkerrors/searchlibraryresponsebody.md - docs/models/sdkerrors/getmetadataerrors.md - docs/models/sdkerrors/getmetadataresponsebody.md - docs/models/sdkerrors/getmetadatachildrenerrors.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index eac0a47..9ff8d1e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,8 +12,9 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.7.0 + version: 0.8.0 additionalDependencies: {} + allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 1bfd723..9638927 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.285.1 +speakeasyVersion: 1.295.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:738ca743409f9c8e49d9636c6392646ca80f250005b89a755937a5eecd8aab31 - sourceBlobDigest: sha256:38880f5d20a1035209b91be8e688de338861f094a586bd9f25c092578d79468d + sourceRevisionDigest: sha256:a8e70a54c6c002b5d94d5c56bbe0faaaf04d522187c6efcd9ca75abd261ee1a6 + sourceBlobDigest: sha256:aa91e9d758bdbae409d488c1c3baa559c3da86899544d53c8279851b6fad8d31 tags: - latest - main @@ -11,8 +11,8 @@ targets: plexgo: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:738ca743409f9c8e49d9636c6392646ca80f250005b89a755937a5eecd8aab31 - sourceBlobDigest: sha256:38880f5d20a1035209b91be8e688de338861f094a586bd9f25c092578d79468d + sourceRevisionDigest: sha256:a8e70a54c6c002b5d94d5c56bbe0faaaf04d522187c6efcd9ca75abd261ee1a6 + sourceBlobDigest: sha256:aa91e9d758bdbae409d488c1c3baa559c3da86899544d53c8279851b6fad8d31 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 31d8886..e04cbe3 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ package main import ( "context" "github.com/LukeHagar/plexgo" - "github.com/LukeHagar/plexgo/models/components" "log" ) @@ -105,6 +104,7 @@ func main() { * [GetLibraries](docs/sdks/library/README.md#getlibraries) - Get All Libraries * [GetLibrary](docs/sdks/library/README.md#getlibrary) - Get Library Details * [DeleteLibrary](docs/sdks/library/README.md#deletelibrary) - Delete Library Section +* [GetLibraryItems](docs/sdks/library/README.md#getlibraryitems) - Get Library Items * [RefreshLibrary](docs/sdks/library/README.md#refreshlibrary) - Refresh Library * [SearchLibrary](docs/sdks/library/README.md#searchlibrary) - Search Library * [GetMetadata](docs/sdks/library/README.md#getmetadata) - Get Items Metadata @@ -176,7 +176,6 @@ import ( "context" "errors" "github.com/LukeHagar/plexgo" - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo/models/sdkerrors" "log" ) @@ -227,7 +226,6 @@ package main import ( "context" "github.com/LukeHagar/plexgo" - "github.com/LukeHagar/plexgo/models/components" "log" ) @@ -266,7 +264,6 @@ package main import ( "context" "github.com/LukeHagar/plexgo" - "github.com/LukeHagar/plexgo/models/components" "log" ) @@ -298,6 +295,7 @@ package main import ( "context" "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" "log" ) @@ -305,11 +303,9 @@ func main() { s := plexgo.New( plexgo.WithXPlexClientIdentifier("Postman"), ) - var strong *bool = plexgo.Bool(false) var xPlexClientIdentifier *string = plexgo.String("Postman") - ctx := context.Background() res, err := s.Plex.GetPin(ctx, strong, xPlexClientIdentifier, operations.WithServerURL("https://plex.tv/api/v2")) if err != nil { @@ -453,11 +449,9 @@ func main() { s := plexgo.New( plexgo.WithXPlexClientIdentifier("Postman"), ) - var strong *bool = plexgo.Bool(false) var xPlexClientIdentifier *string = plexgo.String("Postman") - ctx := context.Background() res, err := s.Plex.GetPin(ctx, strong, xPlexClientIdentifier) if err != nil { diff --git a/RELEASES.md b/RELEASES.md index cbe9653..6c37688 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -412,4 +412,14 @@ Based on: ### Generated - [go v0.7.0] . ### Releases -- [Go v0.7.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.7.0 - . \ No newline at end of file +- [Go v0.7.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.7.0 - . + +## 2024-05-23 15:56:48 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.295.1 (2.335.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.8.0] . +### Releases +- [Go v0.8.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.8.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index d21fed0..2034eee 100644 --- a/USAGE.md +++ b/USAGE.md @@ -5,7 +5,6 @@ package main import ( "context" "github.com/LukeHagar/plexgo" - "github.com/LukeHagar/plexgo/models/components" "log" ) diff --git a/activities.go b/activities.go index 9844f92..ca3e588 100644 --- a/activities.go +++ b/activities.go @@ -138,6 +138,7 @@ func (s *Activities) GetServerActivities(ctx context.Context) (*operations.GetSe } return res, nil + } // CancelServerActivities - Cancel Server Activities @@ -239,4 +240,5 @@ func (s *Activities) CancelServerActivities(ctx context.Context, activityUUID st } return res, nil + } diff --git a/authentication.go b/authentication.go index e50ad25..18fe883 100644 --- a/authentication.go +++ b/authentication.go @@ -130,6 +130,7 @@ func (s *Authentication) GetTransientToken(ctx context.Context, type_ operations } return res, nil + } // GetSourceConnectionInformation - Get Source Connection Information @@ -236,4 +237,5 @@ func (s *Authentication) GetSourceConnectionInformation(ctx context.Context, sou } return res, nil + } diff --git a/butler.go b/butler.go index 7671904..f6c688e 100644 --- a/butler.go +++ b/butler.go @@ -132,6 +132,7 @@ func (s *Butler) GetButlerTasks(ctx context.Context) (*operations.GetButlerTasks } return res, nil + } // StartAllTasks - Start all Butler tasks @@ -233,6 +234,7 @@ func (s *Butler) StartAllTasks(ctx context.Context) (*operations.StartAllTasksRe } return res, nil + } // StopAllTasks - Stop all Butler tasks @@ -330,6 +332,7 @@ func (s *Butler) StopAllTasks(ctx context.Context) (*operations.StopAllTasksResp } return res, nil + } // StartTask - Start a single Butler task @@ -437,6 +440,7 @@ func (s *Butler) StartTask(ctx context.Context, taskName operations.TaskName) (* } return res, nil + } // StopTask - Stop a single Butler task @@ -540,4 +544,5 @@ func (s *Butler) StopTask(ctx context.Context, taskName operations.PathParamTask } return res, nil + } diff --git a/codeSamples.yaml b/codeSamples.yaml index 0e97ca4..291e96e 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,357 +3,1853 @@ info: title: CodeSamples overlay for go target version: 0.0.0 actions: - - target: $["paths"]["/playlists/{playlistID}"]["put"] - update: - x-codeSamples: - - lang: go - label: updatePlaylist - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistID float64 = 3915\n\n var title *string = plexgo.String(\"\")\n\n var summary *string = plexgo.String(\"\")\n \n ctx := context.Background()\n res, err := s.UpdatePlaylist(ctx, playlistID, title, summary)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] - update: - x-codeSamples: - - lang: go - label: clearPlaylistContents - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistID float64 = 1893.18\n \n ctx := context.Background()\n res, err := s.ClearPlaylistContents(ctx, playlistID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/updater/apply"]["put"] - update: - x-codeSamples: - - lang: go - label: applyUpdates - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var tonight *operations.Tonight = operations.TonightOne.ToPointer()\n\n var skip *operations.Skip = operations.SkipOne.ToPointer()\n \n ctx := context.Background()\n res, err := s.ApplyUpdates(ctx, tonight, skip)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/hashes"]["get"] - update: - x-codeSamples: - - lang: go - label: getFileHash - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var url_ string = \"file://C:\\Image.png&type=13\"\n\n var type_ *float64 = plexgo.Float64(4462.17)\n \n ctx := context.Background()\n res, err := s.GetFileHash(ctx, url_, type_)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] - update: - x-codeSamples: - - lang: go - label: getMetadataChildren - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var ratingKey float64 = 1539.14\n \n ctx := context.Background()\n res, err := s.GetMetadataChildren(ctx, ratingKey)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/log/networked"]["get"] - update: - x-codeSamples: - - lang: go - label: enablePaperTrail - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.EnablePaperTrail(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists/{playlistID}/items"]["get"] - update: - x-codeSamples: - - lang: go - label: getPlaylistContents - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistID float64 = 5004.46\n\n var type_ float64 = 9403.59\n \n ctx := context.Background()\n res, err := s.GetPlaylistContents(ctx, playlistID, type_)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/butler/{taskName}"]["delete"] - update: - x-codeSamples: - - lang: go - label: stopTask - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var taskName operations.PathParamTaskName = operations.PathParamTaskNameBackupDatabase\n \n ctx := context.Background()\n res, err := s.StopTask(ctx, taskName)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/log"]["post"] - update: - x-codeSamples: - - lang: go - label: logMultiLine - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var request string = \"level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman\"\n \n ctx := context.Background()\n res, err := s.LogMultiLine(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/pins"]["post"] - update: - x-codeSamples: - - lang: go - label: getPin - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var strong *bool = plexgo.Bool(false)\n\n var xPlexClientIdentifier *string = plexgo.String(\"Postman\")\n \n ctx := context.Background()\n res, err := s.GetPin(ctx, strong, xPlexClientIdentifier)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists/upload"]["post"] - update: - x-codeSamples: - - lang: go - label: uploadPlaylist - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var path string = \"/home/barkley/playlist.m3u\"\n\n var force operations.Force = operations.ForceZero\n \n ctx := context.Background()\n res, err := s.UploadPlaylist(ctx, path, force)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/security/resources"]["get"] - update: - x-codeSamples: - - lang: go - label: getSourceConnectionInformation - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var source string = \"server://client-identifier\"\n \n ctx := context.Background()\n res, err := s.GetSourceConnectionInformation(ctx, source)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/identity"]["get"] - update: - x-codeSamples: - - lang: go - label: getServerIdentity - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetServerIdentity(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/:/timeline"]["get"] - update: - x-codeSamples: - - lang: go - label: getTimeline - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n request := operations.GetTimelineRequest{\n RatingKey: 23409,\n Key: \"/library/metadata/23409\",\n State: operations.StatePlaying,\n HasMDE: 1,\n Time: 2000,\n Duration: 10000,\n Context: \"home:hub.continueWatching\",\n PlayQueueItemID: 1,\n PlayBackTime: 2000,\n Row: 1,\n }\n \n ctx := context.Background()\n res, err := s.GetTimeline(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/activities"]["get"] - update: - x-codeSamples: - - lang: go - label: getServerActivities - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetServerActivities(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/sections"]["get"] - update: - x-codeSamples: - - lang: go - label: getLibraries - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetLibraries(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/hubs"]["get"] - update: - x-codeSamples: - - lang: go - label: getGlobalHubs - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var count *float64 = plexgo.Float64(1262.49)\n\n var onlyTransient *operations.OnlyTransient = operations.OnlyTransientOne.ToPointer()\n \n ctx := context.Background()\n res, err := s.GetGlobalHubs(ctx, count, onlyTransient)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/sections/{sectionId}/search"]["get"] - update: - x-codeSamples: - - lang: go - label: searchLibrary - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var sectionID int64 = 933505\n\n var type_ operations.Type = operations.TypeFour\n \n ctx := context.Background()\n res, err := s.SearchLibrary(ctx, sectionID, type_)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/recentlyAdded"]["get"] - update: - x-codeSamples: - - lang: go - label: getRecentlyAdded - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetRecentlyAdded(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: go - label: getLibraryHubs - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var sectionID float64 = 6728.76\n\n var count *float64 = plexgo.Float64(9010.22)\n\n var onlyTransient *operations.QueryParamOnlyTransient = operations.QueryParamOnlyTransientZero.ToPointer()\n \n ctx := context.Background()\n res, err := s.GetLibraryHubs(ctx, sectionID, count, onlyTransient)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/onDeck"]["get"] - update: - x-codeSamples: - - lang: go - label: getOnDeck - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetOnDeck(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists/{playlistID}"]["delete"] - update: - x-codeSamples: - - lang: go - label: deletePlaylist - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistID float64 = 216.22\n \n ctx := context.Background()\n res, err := s.DeletePlaylist(ctx, playlistID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/clients"]["get"] - update: - x-codeSamples: - - lang: go - label: getAvailableClients - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetAvailableClients(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/myplex/account"]["get"] - update: - x-codeSamples: - - lang: go - label: getMyPlexAccount - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetMyPlexAccount(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/servers"]["get"] - update: - x-codeSamples: - - lang: go - label: getServerList - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetServerList(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/:/scrobble"]["get"] - update: - x-codeSamples: - - lang: go - label: markPlayed - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var key float64 = 59398\n \n ctx := context.Background()\n res, err := s.MarkPlayed(ctx, key)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/photo/:/transcode"]["get"] - update: - x-codeSamples: - - lang: go - label: getResizedPhoto - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n request := operations.GetResizedPhotoRequest{\n Width: 110,\n Height: 165,\n Opacity: 100,\n Blur: 20,\n MinSize: operations.MinSizeOne,\n Upscale: operations.UpscaleZero,\n URL: \"/library/metadata/49564/thumb/1654258204\",\n }\n \n ctx := context.Background()\n res, err := s.GetResizedPhoto(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] - update: - x-codeSamples: - - lang: go - label: startUniversalTranscode - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n request := operations.StartUniversalTranscodeRequest{\n HasMDE: 1,\n Path: \"/library/metadata/23409\",\n MediaIndex: 0,\n PartIndex: 0,\n Protocol: \"hls\",\n FastSeek: plexgo.Float64(0),\n DirectPlay: plexgo.Float64(0),\n DirectStream: plexgo.Float64(0),\n SubtitleSize: plexgo.Float64(100),\n Subtites: plexgo.String(\"burn\"),\n AudioBoost: plexgo.Float64(100),\n Location: plexgo.String(\"lan\"),\n MediaBufferSize: plexgo.Float64(102400),\n Session: plexgo.String(\"zvcage8b7rkioqcm8f4uns4c\"),\n AddDebugOverlay: plexgo.Float64(0),\n AutoAdjustQuality: plexgo.Float64(0),\n }\n \n ctx := context.Background()\n res, err := s.StartUniversalTranscode(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/butler"]["get"] - update: - x-codeSamples: - - lang: go - label: getButlerTasks - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetButlerTasks(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/statistics/media"]["get"] - update: - x-codeSamples: - - lang: go - label: getStatistics - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var timespan *int64 = plexgo.Int64(4)\n \n ctx := context.Background()\n res, err := s.GetStatistics(ctx, timespan)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/updater/check"]["put"] - update: - x-codeSamples: - - lang: go - label: checkForUpdates - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var download *operations.Download = operations.DownloadOne.ToPointer()\n \n ctx := context.Background()\n res, err := s.CheckForUpdates(ctx, download)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/hubs/search/voice"]["get"] - update: - x-codeSamples: - - lang: go - label: performVoiceSearch - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var query string = \"dead+poop\"\n\n var sectionID *float64 = plexgo.Float64(4094.8)\n\n var limit *float64 = plexgo.Float64(5)\n \n ctx := context.Background()\n res, err := s.PerformVoiceSearch(ctx, query, sectionID, limit)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] - update: - x-codeSamples: - - lang: go - label: getMetadata - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var ratingKey float64 = 8382.31\n \n ctx := context.Background()\n res, err := s.GetMetadata(ctx, ratingKey)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/pins/{pinID}"]["get"] - update: - x-codeSamples: - - lang: go - label: getToken - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var pinID string = \"\"\n\n var xPlexClientIdentifier *string = plexgo.String(\"Postman\")\n \n ctx := context.Background()\n res, err := s.GetToken(ctx, pinID, xPlexClientIdentifier)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists"]["get"] - update: - x-codeSamples: - - lang: go - label: getPlaylists - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistType *operations.PlaylistType = operations.PlaylistTypeAudio.ToPointer()\n\n var smart *operations.QueryParamSmart = operations.QueryParamSmartZero.ToPointer()\n \n ctx := context.Background()\n res, err := s.GetPlaylists(ctx, playlistType, smart)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] - update: - x-codeSamples: - - lang: go - label: stopTranscodeSession - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var sessionKey string = \"zz7llzqlx8w9vnrsbnwhbmep\"\n \n ctx := context.Background()\n res, err := s.StopTranscodeSession(ctx, sessionKey)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/:/unscrobble"]["get"] - update: - x-codeSamples: - - lang: go - label: markUnplayed - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var key float64 = 59398\n \n ctx := context.Background()\n res, err := s.MarkUnplayed(ctx, key)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/sections/{sectionId}"]["delete"] - update: - x-codeSamples: - - lang: go - label: deleteLibrary - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var sectionID float64 = 1000\n \n ctx := context.Background()\n res, err := s.DeleteLibrary(ctx, sectionID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists"]["post"] - update: - x-codeSamples: - - lang: go - label: createPlaylist - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n request := operations.CreatePlaylistRequest{\n Title: \"\",\n Type: operations.QueryParamTypePhoto,\n Smart: operations.SmartOne,\n URI: \"https://inborn-brochure.biz\",\n }\n \n ctx := context.Background()\n res, err := s.CreatePlaylist(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/status/sessions/history/all"]["get"] - update: - x-codeSamples: - - lang: go - label: getSessionHistory - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetSessionHistory(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/playlists/{playlistID}"]["get"] - update: - x-codeSamples: - - lang: go - label: getPlaylist - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistID float64 = 4109.48\n \n ctx := context.Background()\n res, err := s.GetPlaylist(ctx, playlistID)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/transcode/sessions"]["get"] - update: - x-codeSamples: - - lang: go - label: getTranscodeSessions - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetTranscodeSessions(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/updater/status"]["get"] - update: - x-codeSamples: - - lang: go - label: getUpdateStatus - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetUpdateStatus(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/:/progress"]["post"] - update: - x-codeSamples: - - lang: go - label: updatePlayProgress - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var key string = \"\"\n\n var time float64 = 90000\n\n var state string = \"played\"\n \n ctx := context.Background()\n res, err := s.UpdatePlayProgress(ctx, key, time, state)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/hubs/search"]["get"] - update: - x-codeSamples: - - lang: go - label: performSearch - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var query string = \"dylan\"\n\n var sectionID *float64 = plexgo.Float64(1516.53)\n\n var limit *float64 = plexgo.Float64(5)\n \n ctx := context.Background()\n res, err := s.PerformSearch(ctx, query, sectionID, limit)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/library/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: go - label: getLibrary - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var sectionID float64 = 1000\n\n var includeDetails *operations.IncludeDetails = operations.IncludeDetailsZero.ToPointer()\n \n ctx := context.Background()\n res, err := s.GetLibrary(ctx, sectionID, includeDetails)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/security/token"]["get"] - update: - x-codeSamples: - - lang: go - label: getTransientToken - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var type_ operations.GetTransientTokenQueryParamType = operations.GetTransientTokenQueryParamTypeDelegation\n\n var scope operations.Scope = operations.ScopeAll\n \n ctx := context.Background()\n res, err := s.GetTransientToken(ctx, type_, scope)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/status/sessions"]["get"] - update: - x-codeSamples: - - lang: go - label: getSessions - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetSessions(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/butler"]["post"] - update: - x-codeSamples: - - lang: go - label: startAllTasks - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.StartAllTasks(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/library/sections/{sectionId}/refresh"]["get"] update: x-codeSamples: - lang: go label: refreshLibrary - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var sectionID float64 = 934.16\n \n ctx := context.Background()\n res, err := s.RefreshLibrary(ctx, sectionID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/log"]["get"] + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID float64 = 934.16 + ctx := context.Background() + res, err := s.Library.RefreshLibrary(ctx, sectionID) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/butler"]["post"] update: x-codeSamples: - lang: go - label: logLine - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var level operations.Level = operations.LevelThree\n\n var message string = \"Test log message\"\n\n var source string = \"Postman\"\n \n ctx := context.Background()\n res, err := s.LogLine(ctx, level, message, source)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + label: startAllTasks + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Butler.StartAllTasks(ctx) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/library/sections/{sectionId}"]["delete"] + update: + x-codeSamples: + - lang: go + label: deleteLibrary + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID float64 = 1000 + ctx := context.Background() + res, err := s.Library.DeleteLibrary(ctx, sectionID) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } - target: $["paths"]["/playlists/{playlistID}/items"]["put"] update: x-codeSamples: - lang: go label: addPlaylistContents - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var playlistID float64 = 8502.01\n\n var uri string = \"server://12345/com.plexapp.plugins.library/library/metadata/1\"\n\n var playQueueID *float64 = plexgo.Float64(123)\n \n ctx := context.Background()\n res, err := s.AddPlaylistContents(ctx, playlistID, uri, playQueueID)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistID float64 = 8502.01 + + var uri string = "server://12345/com.plexapp.plugins.library/library/metadata/1" + + var playQueueID *float64 = plexgo.Float64(123) + ctx := context.Background() + res, err := s.Playlists.AddPlaylistContents(ctx, playlistID, uri, playQueueID) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } - target: $["paths"]["/"]["get"] update: x-codeSamples: - lang: go label: getServerCapabilities - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetServerCapabilities(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/:/prefs"]["get"] + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetServerCapabilities(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/playlists/{playlistID}"]["get"] update: x-codeSamples: - lang: go - label: getServerPreferences - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetServerPreferences(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/butler"]["delete"] + label: getPlaylist + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistID float64 = 4109.48 + ctx := context.Background() + res, err := s.Playlists.GetPlaylist(ctx, playlistID) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/updater/status"]["get"] update: x-codeSamples: - lang: go - label: stopAllTasks - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.StopAllTasks(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + label: getUpdateStatus + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Updater.GetUpdateStatus(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } - target: $["paths"]["/search"]["get"] update: x-codeSamples: - lang: go label: getSearchResults - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var query string = \"110\"\n \n ctx := context.Background()\n res, err := s.GetSearchResults(ctx, query)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/devices"]["get"] + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var query string = "110" + ctx := context.Background() + res, err := s.Search.GetSearchResults(ctx, query) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/log"]["get"] update: x-codeSamples: - lang: go - label: getDevices - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n\n \n ctx := context.Background()\n res, err := s.GetDevices(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.Object != nil {\n // handle response\n }\n}" - - target: $["paths"]["/activities/{activityUUID}"]["delete"] + label: logLine + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var level operations.Level = operations.LevelThree + + var message string = "Test log message" + + var source string = "Postman" + ctx := context.Background() + res, err := s.Log.LogLine(ctx, level, message, source) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/pins/{pinID}"]["get"] update: x-codeSamples: - lang: go - label: cancelServerActivities - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var activityUUID string = \"25b71ed5-0f9d-461c-baa7-d404e9e10d3e\"\n \n ctx := context.Background()\n res, err := s.CancelServerActivities(ctx, activityUUID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + label: getToken + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var pinID string = "" + + var xPlexClientIdentifier *string = plexgo.String("Postman") + ctx := context.Background() + res, err := s.Plex.GetToken(ctx, pinID, xPlexClientIdentifier) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/library/onDeck"]["get"] + update: + x-codeSamples: + - lang: go + label: getOnDeck + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Library.GetOnDeck(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/pins"]["post"] + update: + x-codeSamples: + - lang: go + label: getPin + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var strong *bool = plexgo.Bool(false) + + var xPlexClientIdentifier *string = plexgo.String("Postman") + ctx := context.Background() + res, err := s.Plex.GetPin(ctx, strong, xPlexClientIdentifier) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/playlists/{playlistID}"]["put"] + update: + x-codeSamples: + - lang: go + label: updatePlaylist + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistID float64 = 3915 + + var title *string = plexgo.String("") + + var summary *string = plexgo.String("") + ctx := context.Background() + res, err := s.Playlists.UpdatePlaylist(ctx, playlistID, title, summary) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/status/sessions/history/all"]["get"] + update: + x-codeSamples: + - lang: go + label: getSessionHistory + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Sessions.GetSessionHistory(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/:/prefs"]["get"] + update: + x-codeSamples: + - lang: go + label: getServerPreferences + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetServerPreferences(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/identity"]["get"] + update: + x-codeSamples: + - lang: go + label: getServerIdentity + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetServerIdentity(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/butler"]["delete"] + update: + x-codeSamples: + - lang: go + label: stopAllTasks + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Butler.StopAllTasks(ctx) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] + update: + x-codeSamples: + - lang: go + label: startUniversalTranscode + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + request := operations.StartUniversalTranscodeRequest{ + HasMDE: 1, + Path: "/library/metadata/23409", + MediaIndex: 0, + PartIndex: 0, + Protocol: "hls", + FastSeek: plexgo.Float64(0), + DirectPlay: plexgo.Float64(0), + DirectStream: plexgo.Float64(0), + SubtitleSize: plexgo.Float64(100), + Subtites: plexgo.String("burn"), + AudioBoost: plexgo.Float64(100), + Location: plexgo.String("lan"), + MediaBufferSize: plexgo.Float64(102400), + Session: plexgo.String("zvcage8b7rkioqcm8f4uns4c"), + AddDebugOverlay: plexgo.Float64(0), + AutoAdjustQuality: plexgo.Float64(0), + } + ctx := context.Background() + res, err := s.Video.StartUniversalTranscode(ctx, request) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/playlists/{playlistID}"]["delete"] + update: + x-codeSamples: + - lang: go + label: deletePlaylist + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistID float64 = 216.22 + ctx := context.Background() + res, err := s.Playlists.DeletePlaylist(ctx, playlistID) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/updater/apply"]["put"] + update: + x-codeSamples: + - lang: go + label: applyUpdates + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var tonight *operations.Tonight = operations.TonightOne.ToPointer() + + var skip *operations.Skip = operations.SkipOne.ToPointer() + ctx := context.Background() + res, err := s.Updater.ApplyUpdates(ctx, tonight, skip) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] + update: + x-codeSamples: + - lang: go + label: stopTranscodeSession + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sessionKey string = "zz7llzqlx8w9vnrsbnwhbmep" + ctx := context.Background() + res, err := s.Sessions.StopTranscodeSession(ctx, sessionKey) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/library/sections"]["get"] + update: + x-codeSamples: + - lang: go + label: getLibraries + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Library.GetLibraries(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/library/sections/{sectionId}/search"]["get"] + update: + x-codeSamples: + - lang: go + label: searchLibrary + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID int64 = 933505 + + var type_ operations.Type = operations.TypeFour + ctx := context.Background() + res, err := s.Library.SearchLibrary(ctx, sectionID, type_) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/log"]["post"] + update: + x-codeSamples: + - lang: go + label: logMultiLine + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var request string = "level=4&message=Test%20message%201&source=postman + level=3&message=Test%20message%202&source=postman + level=1&message=Test%20message%203&source=postman" + ctx := context.Background() + res, err := s.Log.LogMultiLine(ctx, request) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/playlists"]["get"] + update: + x-codeSamples: + - lang: go + label: getPlaylists + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistType *operations.PlaylistType = operations.PlaylistTypeAudio.ToPointer() + + var smart *operations.QueryParamSmart = operations.QueryParamSmartZero.ToPointer() + ctx := context.Background() + res, err := s.Playlists.GetPlaylists(ctx, playlistType, smart) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/library/recentlyAdded"]["get"] + update: + x-codeSamples: + - lang: go + label: getRecentlyAdded + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Library.GetRecentlyAdded(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/log/networked"]["get"] + update: + x-codeSamples: + - lang: go + label: enablePaperTrail + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Log.EnablePaperTrail(ctx) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/statistics/media"]["get"] + update: + x-codeSamples: + - lang: go + label: getStatistics + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var timespan *int64 = plexgo.Int64(4) + ctx := context.Background() + res, err := s.Statistics.GetStatistics(ctx, timespan) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/clients"]["get"] + update: + x-codeSamples: + - lang: go + label: getAvailableClients + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetAvailableClients(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/:/timeline"]["get"] + update: + x-codeSamples: + - lang: go + label: getTimeline + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + request := operations.GetTimelineRequest{ + RatingKey: 23409, + Key: "/library/metadata/23409", + State: operations.StatePlaying, + HasMDE: 1, + Time: 2000, + Duration: 10000, + Context: "home:hub.continueWatching", + PlayQueueItemID: 1, + PlayBackTime: 2000, + Row: 1, + } + ctx := context.Background() + res, err := s.Video.GetTimeline(ctx, request) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/activities"]["get"] + update: + x-codeSamples: + - lang: go + label: getServerActivities + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Activities.GetServerActivities(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/library/hashes"]["get"] + update: + x-codeSamples: + - lang: go + label: getFileHash + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var url_ string = "file://C:\Image.png&type=13" + + var type_ *float64 = plexgo.Float64(4462.17) + ctx := context.Background() + res, err := s.Library.GetFileHash(ctx, url_, type_) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/servers"]["get"] + update: + x-codeSamples: + - lang: go + label: getServerList + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetServerList(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/updater/check"]["put"] + update: + x-codeSamples: + - lang: go + label: checkForUpdates + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var download *operations.Download = operations.DownloadOne.ToPointer() + ctx := context.Background() + res, err := s.Updater.CheckForUpdates(ctx, download) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } - target: $["paths"]["/butler/{taskName}"]["post"] update: x-codeSamples: - lang: go label: startTask - source: "package main\n\nimport(\n\t\"github.com/LukeHagar/plexgo/models/components\"\n\t\"github.com/LukeHagar/plexgo\"\n\t\"github.com/LukeHagar/plexgo/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := plexgo.New(\n plexgo.WithSecurity(\"\"),\n plexgo.WithXPlexClientIdentifier(\"Postman\"),\n )\n\n var taskName operations.TaskName = operations.TaskNameCleanOldBundles\n \n ctx := context.Background()\n res, err := s.StartTask(ctx, taskName)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var taskName operations.TaskName = operations.TaskNameCleanOldBundles + ctx := context.Background() + res, err := s.Butler.StartTask(ctx, taskName) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] + update: + x-codeSamples: + - lang: go + label: getLibraryHubs + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID float64 = 6728.76 + + var count *float64 = plexgo.Float64(9010.22) + + var onlyTransient *operations.QueryParamOnlyTransient = operations.QueryParamOnlyTransientZero.ToPointer() + ctx := context.Background() + res, err := s.Hubs.GetLibraryHubs(ctx, sectionID, count, onlyTransient) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] + update: + x-codeSamples: + - lang: go + label: getMetadataChildren + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var ratingKey float64 = 1539.14 + ctx := context.Background() + res, err := s.Library.GetMetadataChildren(ctx, ratingKey) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/playlists"]["post"] + update: + x-codeSamples: + - lang: go + label: createPlaylist + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + request := operations.CreatePlaylistRequest{ + Title: "", + Type: operations.QueryParamTypePhoto, + Smart: operations.SmartOne, + URI: "https://inborn-brochure.biz", + } + ctx := context.Background() + res, err := s.Playlists.CreatePlaylist(ctx, request) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/butler"]["get"] + update: + x-codeSamples: + - lang: go + label: getButlerTasks + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Butler.GetButlerTasks(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/hubs/search/voice"]["get"] + update: + x-codeSamples: + - lang: go + label: performVoiceSearch + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var query string = "dead+poop" + + var sectionID *float64 = plexgo.Float64(4094.8) + + var limit *float64 = plexgo.Float64(5) + ctx := context.Background() + res, err := s.Search.PerformVoiceSearch(ctx, query, sectionID, limit) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] + update: + x-codeSamples: + - lang: go + label: getMetadata + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var ratingKey float64 = 8382.31 + ctx := context.Background() + res, err := s.Library.GetMetadata(ctx, ratingKey) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/status/sessions"]["get"] + update: + x-codeSamples: + - lang: go + label: getSessions + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Sessions.GetSessions(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/devices"]["get"] + update: + x-codeSamples: + - lang: go + label: getDevices + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetDevices(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/photo/:/transcode"]["get"] + update: + x-codeSamples: + - lang: go + label: getResizedPhoto + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + request := operations.GetResizedPhotoRequest{ + Width: 110, + Height: 165, + Opacity: 100, + Blur: 20, + MinSize: operations.MinSizeOne, + Upscale: operations.UpscaleZero, + URL: "/library/metadata/49564/thumb/1654258204", + } + ctx := context.Background() + res, err := s.Server.GetResizedPhoto(ctx, request) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/security/resources"]["get"] + update: + x-codeSamples: + - lang: go + label: getSourceConnectionInformation + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var source string = "server://client-identifier" + ctx := context.Background() + res, err := s.Authentication.GetSourceConnectionInformation(ctx, source) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/library/sections/{sectionId}/{tag}"]["get"] + update: + x-codeSamples: + - lang: go + label: getLibraryItems + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID int64 = 1 + + var tag operations.Tag = operations.TagGenre + ctx := context.Background() + res, err := s.Library.GetLibraryItems(ctx, sectionID, tag) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/playlists/{playlistID}/items"]["get"] + update: + x-codeSamples: + - lang: go + label: getPlaylistContents + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistID float64 = 5004.46 + + var type_ float64 = 9403.59 + ctx := context.Background() + res, err := s.Playlists.GetPlaylistContents(ctx, playlistID, type_) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] + update: + x-codeSamples: + - lang: go + label: clearPlaylistContents + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var playlistID float64 = 1893.18 + ctx := context.Background() + res, err := s.Playlists.ClearPlaylistContents(ctx, playlistID) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/playlists/upload"]["post"] + update: + x-codeSamples: + - lang: go + label: uploadPlaylist + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var path string = "/home/barkley/playlist.m3u" + + var force operations.Force = operations.ForceZero + ctx := context.Background() + res, err := s.Playlists.UploadPlaylist(ctx, path, force) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/:/scrobble"]["get"] + update: + x-codeSamples: + - lang: go + label: markPlayed + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var key float64 = 59398 + ctx := context.Background() + res, err := s.Media.MarkPlayed(ctx, key) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/:/unscrobble"]["get"] + update: + x-codeSamples: + - lang: go + label: markUnplayed + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var key float64 = 59398 + ctx := context.Background() + res, err := s.Media.MarkUnplayed(ctx, key) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/activities/{activityUUID}"]["delete"] + update: + x-codeSamples: + - lang: go + label: cancelServerActivities + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var activityUUID string = "25b71ed5-0f9d-461c-baa7-d404e9e10d3e" + ctx := context.Background() + res, err := s.Activities.CancelServerActivities(ctx, activityUUID) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/hubs"]["get"] + update: + x-codeSamples: + - lang: go + label: getGlobalHubs + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var count *float64 = plexgo.Float64(1262.49) + + var onlyTransient *operations.OnlyTransient = operations.OnlyTransientOne.ToPointer() + ctx := context.Background() + res, err := s.Hubs.GetGlobalHubs(ctx, count, onlyTransient) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/transcode/sessions"]["get"] + update: + x-codeSamples: + - lang: go + label: getTranscodeSessions + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Sessions.GetTranscodeSessions(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/myplex/account"]["get"] + update: + x-codeSamples: + - lang: go + label: getMyPlexAccount + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + + ctx := context.Background() + res, err := s.Server.GetMyPlexAccount(ctx) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/hubs/search"]["get"] + update: + x-codeSamples: + - lang: go + label: performSearch + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var query string = "dylan" + + var sectionID *float64 = plexgo.Float64(1516.53) + + var limit *float64 = plexgo.Float64(5) + ctx := context.Background() + res, err := s.Search.PerformSearch(ctx, query, sectionID, limit) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/library/sections/{sectionId}"]["get"] + update: + x-codeSamples: + - lang: go + label: getLibrary + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID float64 = 1000 + + var includeDetails *operations.IncludeDetails = operations.IncludeDetailsZero.ToPointer() + ctx := context.Background() + res, err := s.Library.GetLibrary(ctx, sectionID, includeDetails) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } + } + - target: $["paths"]["/security/token"]["get"] + update: + x-codeSamples: + - lang: go + label: getTransientToken + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var type_ operations.GetTransientTokenQueryParamType = operations.GetTransientTokenQueryParamTypeDelegation + + var scope operations.Scope = operations.ScopeAll + ctx := context.Background() + res, err := s.Authentication.GetTransientToken(ctx, type_, scope) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/:/progress"]["post"] + update: + x-codeSamples: + - lang: go + label: updatePlayProgress + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var key string = "" + + var time float64 = 90000 + + var state string = "played" + ctx := context.Background() + res, err := s.Media.UpdatePlayProgress(ctx, key, time, state) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } + - target: $["paths"]["/butler/{taskName}"]["delete"] + update: + x-codeSamples: + - lang: go + label: stopTask + source: |- + package main + + import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" + ) + + func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var taskName operations.PathParamTaskName = operations.PathParamTaskNameBackupDatabase + ctx := context.Background() + res, err := s.Butler.StopTask(ctx, taskName) + if err != nil { + log.Fatal(err) + } + if res != nil { + // handle response + } + } diff --git a/docs/models/operations/addplaylistcontentsmediacontainer.md b/docs/models/operations/addplaylistcontentsmediacontainer.md index 6a187fc..30c2a00 100644 --- a/docs/models/operations/addplaylistcontentsmediacontainer.md +++ b/docs/models/operations/addplaylistcontentsmediacontainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LeafCountAdded` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LeafCountRequested` | **int* | :heavy_minus_sign: | N/A | 1 | -| `Metadata` | [][operations.AddPlaylistContentsMetadata](../../models/operations/addplaylistcontentsmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "94",
"key": "/playlists/94/items",
"guid": "com.plexapp.agents.none://972e3047-83d6-4848-a000-261f0af26ba2",
"type": "playlist",
"title": "A great playlist",
"summary": "One of my great playlists",
"smart": false,
"playlistType": "video",
"composite": "/playlists/94/composite/1705800070",
"duration": 423000,
"leafCount": 3,
"addedAt": 1705716458,
"updatedAt": 1705800070
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LeafCountAdded` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LeafCountRequested` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Metadata` | [][operations.AddPlaylistContentsMetadata](../../models/operations/addplaylistcontentsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createplaylistmediacontainer.md b/docs/models/operations/createplaylistmediacontainer.md index c76fe05..4f020d6 100644 --- a/docs/models/operations/createplaylistmediacontainer.md +++ b/docs/models/operations/createplaylistmediacontainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `Size` | **int* | :heavy_minus_sign: | N/A | 7 | -| `Metadata` | [][operations.CreatePlaylistMetadata](../../models/operations/createplaylistmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "96",
"key": "/playlists/96/items",
"guid": "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55",
"type": "playlist",
"title": "A Great Playlist",
"summary": "What a great playlist",
"smart": false,
"playlistType": "video",
"icon": "playlist://image.smart",
"viewCount": 1,
"lastViewedAt": 1705719589,
"leafCount": 1,
"addedAt": 1705719589,
"updatedAt": 1705724593,
"composite": "/playlists/96/composite/1705724593",
"duration": 141000
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 7 | +| `Metadata` | [][operations.CreatePlaylistMetadata](../../models/operations/createplaylistmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/fieldtype.md b/docs/models/operations/fieldtype.md index 5e26db2..ef5c0c0 100644 --- a/docs/models/operations/fieldtype.md +++ b/docs/models/operations/fieldtype.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | `Type` | **string* | :heavy_minus_sign: | N/A | resolution | -| `Operator` | [][operations.Operator](../../models/operations/operator.md) | :heavy_minus_sign: | N/A | [
{
"key": "=",
"title": "is"
}
] | \ No newline at end of file +| `Operator` | [][operations.Operator](../../models/operations/operator.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getglobalhubsmediacontainer.md b/docs/models/operations/getglobalhubsmediacontainer.md index 0be63aa..98e8aa5 100644 --- a/docs/models/operations/getglobalhubsmediacontainer.md +++ b/docs/models/operations/getglobalhubsmediacontainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 8 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `Hub` | [][operations.Hub](../../models/operations/hub.md) | :heavy_minus_sign: | N/A | [
{
"hubKey": "/library/metadata/50768,65523,58188,57341,57302,57070",
"key": "/playlists/all?type=15\u0026sort=lastViewedAt:desc\u0026playlistType=video,audio",
"title": "Recent Playlists",
"type": "playlist",
"hubIdentifier": "home.playlists",
"context": "hub.home.playlists",
"size": 6,
"more": true,
"style": "shelf",
"promoted": true,
"Metadata": [
{
"ratingKey": "50768",
"key": "/playlists/50768/items",
"guid": "com.plexapp.agents.none://81658e0d-cd4e-4c73-abb9-832b2ae2037b",
"type": "playlist",
"title": "❤️ Tracks",
"titleSort": "Tracks",
"summary": "All your highly rated tracks, in one convenient place.",
"smart": true,
"playlistType": "audio",
"composite": "/playlists/50768/composite/1704333758",
"icon": "playlist://image.smart",
"viewCount": 47,
"lastViewedAt": 1705329935,
"duration": 42864000,
"leafCount": 178,
"addedAt": 1655309388,
"updatedAt": 1704333758
},
{
"ratingKey": "65523",
"key": "/playlists/65523/items",
"guid": "com.plexapp.agents.none://1bcdd596-892b-4856-9f28-b4338c439300",
"type": "playlist",
"title": "Car Rides",
"summary": "",
"smart": false,
"playlistType": "audio",
"composite": "/playlists/65523/composite/1698597932",
"viewCount": 2,
"lastViewedAt": 1698597949,
"duration": 4864000,
"leafCount": 19,
"addedAt": 1697993545,
"updatedAt": 1698597932
},
{
"ratingKey": "58188",
"key": "/playlists/58188/items",
"guid": "com.plexapp.agents.none://8f0441d3-2a28-4644-a2f1-b7deeb290dff",
"type": "playlist",
"title": "Workout",
"summary": "",
"smart": false,
"playlistType": "audio",
"composite": "/playlists/58188/composite/1680825595",
"viewCount": 4,
"lastViewedAt": 1680825596,
"duration": 12522000,
"leafCount": 56,
"addedAt": 1679616785,
"updatedAt": 1680825595
},
{
"ratingKey": "57341",
"key": "/playlists/57341/items",
"guid": "com.plexapp.agents.none://bf8778c3-20a3-4619-8eb0-3c172c18ffd6",
"type": "playlist",
"title": "January Movie Day",
"summary": "",
"smart": false,
"playlistType": "video",
"composite": "/playlists/57341/composite/1673372385",
"viewCount": 1,
"lastViewedAt": 1673372306,
"duration": 19119000,
"leafCount": 3,
"addedAt": 1673372306,
"updatedAt": 1673372385
},
{
"ratingKey": "57302",
"key": "/playlists/57302/items",
"guid": "com.plexapp.agents.none://f25064ed-05bb-4bcf-b70c-ed7514b70929",
"type": "playlist",
"title": "December Movie Day",
"summary": "",
"smart": false,
"playlistType": "video",
"composite": "/playlists/57302/composite/1671205874",
"viewCount": 2,
"lastViewedAt": 1671206853,
"duration": 23040000,
"leafCount": 3,
"addedAt": 1671197078,
"updatedAt": 1671205874
},
{
"ratingKey": "57070",
"key": "/playlists/57070/items",
"guid": "com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c",
"type": "playlist",
"title": "November Movie Day",
"summary": "",
"smart": false,
"playlistType": "video",
"composite": "/playlists/57070/composite/1668787730",
"viewCount": 2,
"lastViewedAt": 1668787732,
"duration": 16873000,
"leafCount": 3,
"addedAt": 1668779618,
"updatedAt": 1668787730
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 8 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `Hub` | [][operations.Hub](../../models/operations/hub.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibrariesdirectory.md b/docs/models/operations/getlibrariesdirectory.md index c4d90bc..aa4c097 100644 --- a/docs/models/operations/getlibrariesdirectory.md +++ b/docs/models/operations/getlibrariesdirectory.md @@ -25,4 +25,4 @@ | `Directory` | **bool* | :heavy_minus_sign: | N/A | true | | `ContentChangedAt` | **int* | :heavy_minus_sign: | N/A | 3192854 | | `Hidden` | **int* | :heavy_minus_sign: | N/A | 0 | -| `Location` | [][operations.GetLibrariesLocation](../../models/operations/getlibrarieslocation.md) | :heavy_minus_sign: | N/A | [
{
"id": 1,
"path": "/movies"
}
] | \ No newline at end of file +| `Location` | [][operations.GetLibrariesLocation](../../models/operations/getlibrarieslocation.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibrariesmediacontainer.md b/docs/models/operations/getlibrariesmediacontainer.md index 81bed25..e9889e8 100644 --- a/docs/models/operations/getlibrariesmediacontainer.md +++ b/docs/models/operations/getlibrariesmediacontainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 5 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | false | -| `Title1` | **string* | :heavy_minus_sign: | N/A | Plex Library | -| `Directory` | [][operations.GetLibrariesDirectory](../../models/operations/getlibrariesdirectory.md) | :heavy_minus_sign: | N/A | [
{
"allowSync": true,
"art": "/:/resources/movie-fanart.jpg",
"composite": "/library/sections/1/composite/1705615584",
"filters": true,
"refreshing": false,
"thumb": "/:/resources/movie.png",
"key": "1",
"type": "movie",
"title": "Movies",
"agent": "tv.plex.agents.movie",
"scanner": "Plex Movie",
"language": "en-US",
"uuid": "322a231a-b7f7-49f5-920f-14c61199cd30",
"updatedAt": 1705615634,
"createdAt": 1654131312,
"scannedAt": 1705615584,
"content": true,
"directory": true,
"contentChangedAt": 3192854,
"hidden": 0,
"Location": [
{
"id": 1,
"path": "/movies"
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 5 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | false | +| `Title1` | **string* | :heavy_minus_sign: | N/A | Plex Library | +| `Directory` | [][operations.GetLibrariesDirectory](../../models/operations/getlibrariesdirectory.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryhubshub.md b/docs/models/operations/getlibraryhubshub.md index 4fd71a9..ee1c168 100644 --- a/docs/models/operations/getlibraryhubshub.md +++ b/docs/models/operations/getlibraryhubshub.md @@ -3,17 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | -| `Title` | **string* | :heavy_minus_sign: | N/A | Recently Played Movies | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `HubIdentifier` | **string* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | -| `Context` | **string* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | -| `Size` | **int* | :heavy_minus_sign: | N/A | 6 | -| `More` | **bool* | :heavy_minus_sign: | N/A | true | -| `Style` | **string* | :heavy_minus_sign: | N/A | shelf | -| `HubKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | -| `Metadata` | [][operations.GetLibraryHubsMetadata](../../models/operations/getlibraryhubsmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "14944",
"key": "/library/metadata/14944",
"guid": "plex://movie/5d77686eeb5d26001f1eb339",
"studio": "Walt Disney Animation Studios",
"type": "movie",
"title": "Tangled",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "PG",
"summary": "The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is.",
"rating": 8.9,
"audienceRating": 8.7,
"viewCount": 1,
"lastViewedAt": 1704936047,
"year": 2010,
"tagline": "They're taking adventure to new lengths.",
"thumb": "/library/metadata/14944/thumb/1705739847",
"art": "/library/metadata/14944/art/1705739847",
"duration": 6017237,
"originallyAvailableAt": "2010-11-24T00:00:00Z",
"addedAt": 1589412494,
"updatedAt": 1705739847,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"primaryExtraKey": "/library/metadata/14952",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 38247,
"duration": 6017237,
"bitrate": 2051,
"width": 1920,
"height": 1080,
"aspectRatio": 1.78,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 38247,
"key": "/library/parts/38247/1589412494/file.mp4",
"duration": 6017237,
"file": "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4",
"size": 1545647447,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Comedy"
},
{
"tag": "Animation"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Byron Howard"
},
{
"tag": "Nathan Greno"
}
],
"Role": [
{
"tag": "Mandy Moore"
},
{
"tag": "Zachary Levi"
},
{
"tag": "Donna Murphy"
}
],
"Writer": [
{
"tag": "Jacob Grimm"
},
{
"tag": "Wilhelm Grimm"
}
],
"skipCount": 1,
"chapterSource": "media"
}
] | -| `Promoted` | **bool* | :heavy_minus_sign: | N/A | true | -| `Random` | **bool* | :heavy_minus_sign: | N/A | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | +| `Title` | **string* | :heavy_minus_sign: | N/A | Recently Played Movies | +| `Type` | **string* | :heavy_minus_sign: | N/A | movie | +| `HubIdentifier` | **string* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | +| `Context` | **string* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | +| `Size` | **int* | :heavy_minus_sign: | N/A | 6 | +| `More` | **bool* | :heavy_minus_sign: | N/A | true | +| `Style` | **string* | :heavy_minus_sign: | N/A | shelf | +| `HubKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | +| `Metadata` | [][operations.GetLibraryHubsMetadata](../../models/operations/getlibraryhubsmetadata.md) | :heavy_minus_sign: | N/A | | +| `Promoted` | **bool* | :heavy_minus_sign: | N/A | true | +| `Random` | **bool* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/models/operations/getlibraryhubsmedia.md b/docs/models/operations/getlibraryhubsmedia.md index 8c90ce3..a797bb7 100644 --- a/docs/models/operations/getlibraryhubsmedia.md +++ b/docs/models/operations/getlibraryhubsmedia.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ID` | **int* | :heavy_minus_sign: | N/A | 38247 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 6017237 | -| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 2051 | -| `Width` | **int* | :heavy_minus_sign: | N/A | 1920 | -| `Height` | **int* | :heavy_minus_sign: | N/A | 1080 | -| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 1.78 | -| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | -| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | aac | -| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | h264 | -| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 1080 | -| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | -| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | -| `OptimizedForStreaming` | **int* | :heavy_minus_sign: | N/A | 1 | -| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | -| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | -| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | -| `Part` | [][operations.GetLibraryHubsPart](../../models/operations/getlibraryhubspart.md) | :heavy_minus_sign: | N/A | [
{
"id": 38247,
"key": "/library/parts/38247/1589412494/file.mp4",
"duration": 6017237,
"file": "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4",
"size": 1545647447,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ID` | **int* | :heavy_minus_sign: | N/A | 38247 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 6017237 | +| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 2051 | +| `Width` | **int* | :heavy_minus_sign: | N/A | 1920 | +| `Height` | **int* | :heavy_minus_sign: | N/A | 1080 | +| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 1.78 | +| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | +| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | aac | +| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | h264 | +| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 1080 | +| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | +| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | +| `OptimizedForStreaming` | **int* | :heavy_minus_sign: | N/A | 1 | +| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | +| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | +| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | +| `Part` | [][operations.GetLibraryHubsPart](../../models/operations/getlibraryhubspart.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryhubsmediacontainer.md b/docs/models/operations/getlibraryhubsmediacontainer.md index a14754d..b8ca0eb 100644 --- a/docs/models/operations/getlibraryhubsmediacontainer.md +++ b/docs/models/operations/getlibraryhubsmediacontainer.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `Size` | **int* | :heavy_minus_sign: | N/A | 7 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | -| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `Hub` | [][operations.GetLibraryHubsHub](../../models/operations/getlibraryhubshub.md) | :heavy_minus_sign: | N/A | [
{
"key": "/library/sections/1/all?sort=lastViewedAt:desc\u0026unwatched=0\u0026viewOffset=0",
"title": "Recently Played Movies",
"type": "movie",
"hubIdentifier": "movie.recentlyviewed.1",
"context": "hub.movie.recentlyviewed",
"size": 6,
"more": true,
"style": "shelf",
"hubKey": "/library/metadata/66485,66098,57249,11449,5858,14944",
"Metadata": [
{
"ratingKey": "66485",
"key": "/library/metadata/66485",
"guid": "plex://movie/5d776c3251dd69001fe38bb4",
"studio": "Termite Films",
"type": "movie",
"title": "Kedi",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "Not Rated",
"summary": "A profile of an ancient city and its unique people, seen through the eyes of the most mysterious and beloved animal humans have ever known, the Cat.",
"rating": 9.8,
"audienceRating": 8.5,
"viewCount": 2,
"lastViewedAt": 1705786111,
"year": 2017,
"tagline": "A cat meowing at your feet, looking up at you, is life smiling at you...",
"thumb": "/library/metadata/66485/thumb/1702586907",
"art": "/library/metadata/66485/art/1702586907",
"duration": 4736174,
"originallyAvailableAt": "2017-02-10T00:00:00Z",
"addedAt": 1702586905,
"updatedAt": 1702586907,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"primaryExtraKey": "/library/metadata/66486",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 129531,
"duration": 4736174,
"bitrate": 2377,
"width": 1920,
"height": 1080,
"aspectRatio": 1.78,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 0,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 129778,
"key": "/library/parts/129778/1702586883/file.mp4",
"duration": 4736174,
"file": "/movies/Kedi (2017)/Kedi (2017) 1080p x264.mp4",
"size": 1410810905,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Documentary"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Ceyda Torun"
}
],
"Role": [
{
"tag": "Bülent Üstün"
}
]
},
{
"ratingKey": "66098",
"key": "/library/metadata/66098",
"guid": "plex://movie/5d9f34f4adeb7a0021ce020f",
"studio": "Touchwood Pacific Partners 1",
"type": "movie",
"title": "Homeward Bound: The Incredible Journey",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "G",
"summary": "A fun-loving American bulldog pup, a hilarious Himalayan cat, and a wise old golden retriever embark on a long trek through the rugged wilderness of the Sierra Nevada mountains in a quest to reach home and their beloved owners.",
"rating": 8.7,
"audienceRating": 7.1,
"viewCount": 2,
"lastViewedAt": 1705709811,
"year": 1993,
"tagline": "In the classic tradition of Walt Disney Pictures comes a story about courage, adventure and friendship.",
"thumb": "/library/metadata/66098/thumb/1703148781",
"art": "/library/metadata/66098/art/1703148781",
"duration": 5065775,
"originallyAvailableAt": "1993-02-12T00:00:00Z",
"addedAt": 1700434925,
"updatedAt": 1703148781,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"primaryExtraKey": "/library/metadata/66099",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 129003,
"duration": 5065775,
"bitrate": 2444,
"width": 1904,
"height": 1024,
"aspectRatio": 1.85,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 129250,
"key": "/library/parts/129250/1700434864/file.mp4",
"duration": 5065775,
"file": "/movies/Homeward Bound The Incredible Journey (1993)/Homeward Bound The Incredible Journey (1993) [BluRay] [1080p] [YTS.LT].mp4",
"size": 1550855333,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Adventure"
},
{
"tag": "Comedy"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Duwayne Dunham"
}
],
"Writer": [
{
"tag": "Caroline Thompson"
},
{
"tag": "Linda Woolverton"
}
],
"Role": [
{
"tag": "Michael J. Fox"
},
{
"tag": "Sally Field"
},
{
"tag": "Don Ameche"
}
]
},
{
"ratingKey": "57249",
"key": "/library/metadata/57249",
"guid": "plex://movie/60eff7d3e22797002c55c1cc",
"studio": "Nickelodeon Movies",
"type": "movie",
"title": "Blue's Big City Adventure",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "TV-Y",
"summary": "Josh and Blue skidoo to New York City to audition for Rainbow Puppy's Broadway musical, but they get lost when Josh accidentally left his Handy Dandy Notebook at home. This leads to a game of Blue's Clues to figure out where the audition is. Meanwhile, Tickety Tock and her friends go to New York City to find Josh and Blue and get to the audition with help from Joe and Steve.",
"rating": 8.3,
"audienceRating": 8.6,
"viewCount": 8,
"skipCount": 1,
"lastViewedAt": 1705681955,
"year": 2022,
"tagline": "All They Need is You.",
"thumb": "/library/metadata/57249/thumb/1704274800",
"art": "/library/metadata/57249/art/1704274800",
"duration": 4459050,
"originallyAvailableAt": "2022-11-18T00:00:00Z",
"addedAt": 1669671356,
"updatedAt": 1704274800,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"primaryExtraKey": "/library/metadata/57250",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 115470,
"duration": 4459050,
"bitrate": 6384,
"width": 3840,
"height": 2160,
"aspectRatio": 1.78,
"audioChannels": 6,
"audioCodec": "aac",
"videoCodec": "hevc",
"videoResolution": "4k",
"container": "mkv",
"videoFrameRate": "24p",
"audioProfile": "lc",
"videoProfile": "main 10",
"Part": [
{
"id": 115478,
"key": "/library/parts/115478/1669671340/file.mkv",
"duration": 4459050,
"file": "/movies/Blue's Big City Adventure (2022)/Blues.Big.City.Adventure.2022.2160p.4K.WEB.x265.10bit.AAC5.1-[YTS.MX].mkv",
"size": 3560750664,
"audioProfile": "lc",
"container": "mkv",
"videoProfile": "main 10"
}
]
}
],
"Genre": [
{
"tag": "Comedy"
},
{
"tag": "Family"
}
],
"Country": [
{
"tag": "Canada"
},
{
"tag": "Ireland"
}
],
"Director": [
{
"tag": "Matt Stawski"
}
],
"Writer": [
{
"tag": "Traci Paige Johnson"
},
{
"tag": "Todd Kessler"
}
],
"Role": [
{
"tag": "Joshua Dela Cruz"
},
{
"tag": "Steve Burns"
},
{
"tag": "Donovan Patton"
}
]
},
{
"ratingKey": "11449",
"key": "/library/metadata/11449",
"guid": "plex://movie/5d776edfad5437001f803cf9",
"studio": "Walt Disney Pictures",
"type": "movie",
"title": "Onward",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "PG",
"summary": "In a magical world full of technological advances, elven brothers Ian and Barley Lightfoot set out on an adventure to resurrect their late father for a day.",
"rating": 8.8,
"audienceRating": 9.5,
"viewCount": 3,
"lastViewedAt": 1705543126,
"year": 2020,
"tagline": "Their quest begineth.",
"thumb": "/library/metadata/11449/thumb/1705224000",
"art": "/library/metadata/11449/art/1705224000",
"duration": 6141428,
"originallyAvailableAt": "2020-03-04T00:00:00Z",
"addedAt": 1589237130,
"updatedAt": 1705224000,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"chapterSource": "media",
"primaryExtraKey": "/library/metadata/11470",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 29291,
"duration": 6141428,
"bitrate": 10977,
"width": 1920,
"height": 804,
"aspectRatio": 2.35,
"audioChannels": 8,
"audioCodec": "dca-ma",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mkv",
"videoFrameRate": "24p",
"audioProfile": "ma",
"videoProfile": "high",
"Part": [
{
"id": 29291,
"key": "/library/parts/29291/1589237130/file.mkv",
"duration": 6141428,
"file": "/movies/Onward (2020)/Onward (2020) Bluray-1080p.mkv",
"size": 8426669232,
"audioProfile": "ma",
"container": "mkv",
"videoProfile": "high"
}
]
},
{
"id": 29315,
"duration": 6142006,
"bitrate": 2639,
"width": 1920,
"height": 800,
"aspectRatio": 2.35,
"audioChannels": 6,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 29315,
"key": "/library/parts/29315/1629002847/file.mp4",
"duration": 6142006,
"file": "/movies/Onward (2020)/Onward (2020) WEBRip-1080p.mp4",
"size": 2026154995,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Animation"
},
{
"tag": "Comedy"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Dan Scanlon"
}
],
"Writer": [
{
"tag": "Kelsey Mann"
},
{
"tag": "Dan Scanlon"
}
],
"Role": [
{
"tag": "Tom Holland"
},
{
"tag": "Chris Pratt"
},
{
"tag": "Julia Louis-Dreyfus"
}
]
},
{
"ratingKey": "5858",
"key": "/library/metadata/5858",
"guid": "plex://movie/5d776b85594b2b001e6dc641",
"studio": "Walt Disney Pictures",
"type": "movie",
"title": "Frozen II",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "PG",
"summary": "Anna, Elsa, Kristoff, Olaf and Sven leave Arendelle to travel to an ancient, autumn-bound forest of an enchanted land. They set out to find the origin of Elsa's powers in order to save their kingdom.",
"rating": 7.7,
"audienceRating": 9.2,
"viewCount": 1,
"skipCount": 1,
"lastViewedAt": 1705337663,
"year": 2019,
"tagline": "The past is not what it seems.",
"thumb": "/library/metadata/5858/thumb/1704621922",
"art": "/library/metadata/5858/art/1704621922",
"duration": 6194042,
"originallyAvailableAt": "2019-11-20T00:00:00Z",
"addedAt": 1588207762,
"updatedAt": 1704621922,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"primaryExtraKey": "/library/metadata/5892",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 14954,
"duration": 6194042,
"bitrate": 2538,
"width": 1920,
"height": 800,
"aspectRatio": 2.35,
"audioChannels": 6,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 14954,
"key": "/library/parts/14954/1588207762/file.mp4",
"duration": 6194042,
"file": "/movies/Frozen II (2019)/Frozen II (2019) Bluray-1080p.mp4",
"size": 1969230037,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
},
{
"id": 14999,
"duration": 6244271,
"bitrate": 2536,
"width": 1920,
"height": 800,
"aspectRatio": 2.35,
"audioChannels": 6,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 14999,
"key": "/library/parts/14999/1629001526/file.mp4",
"duration": 6244271,
"file": "/movies/Frozen II (2019)/Frozen II (2019) WEBRip-1080p.mp4",
"size": 1983357282,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Adventure"
},
{
"tag": "Animation"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Chris Buck"
},
{
"tag": "Jennifer Lee"
}
],
"Writer": [
{
"tag": "Chris Buck"
},
{
"tag": "Hans Christian Andersen"
}
],
"Role": [
{
"tag": "Idina Menzel"
},
{
"tag": "Kristen Bell"
},
{
"tag": "Josh Gad"
}
]
},
{
"ratingKey": "14944",
"key": "/library/metadata/14944",
"guid": "plex://movie/5d77686eeb5d26001f1eb339",
"studio": "Walt Disney Animation Studios",
"type": "movie",
"title": "Tangled",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "PG",
"summary": "The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is.",
"rating": 8.9,
"audienceRating": 8.7,
"viewCount": 1,
"lastViewedAt": 1704936047,
"year": 2010,
"tagline": "They're taking adventure to new lengths.",
"thumb": "/library/metadata/14944/thumb/1705739847",
"art": "/library/metadata/14944/art/1705739847",
"duration": 6017237,
"originallyAvailableAt": "2010-11-24T00:00:00Z",
"addedAt": 1589412494,
"updatedAt": 1705739847,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"primaryExtraKey": "/library/metadata/14952",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 38247,
"duration": 6017237,
"bitrate": 2051,
"width": 1920,
"height": 1080,
"aspectRatio": 1.78,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 38247,
"key": "/library/parts/38247/1589412494/file.mp4",
"duration": 6017237,
"file": "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4",
"size": 1545647447,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Comedy"
},
{
"tag": "Animation"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Byron Howard"
},
{
"tag": "Nathan Greno"
}
],
"Writer": [
{
"tag": "Jacob Grimm"
},
{
"tag": "Wilhelm Grimm"
}
],
"Role": [
{
"tag": "Mandy Moore"
},
{
"tag": "Zachary Levi"
},
{
"tag": "Donna Murphy"
}
]
}
],
"promoted": true,
"random": true
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `Size` | **int* | :heavy_minus_sign: | N/A | 7 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | +| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `Hub` | [][operations.GetLibraryHubsHub](../../models/operations/getlibraryhubshub.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryhubsmetadata.md b/docs/models/operations/getlibraryhubsmetadata.md index 90cf6cc..ea3d046 100644 --- a/docs/models/operations/getlibraryhubsmetadata.md +++ b/docs/models/operations/getlibraryhubsmetadata.md @@ -3,39 +3,39 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 14944 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14944 | -| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d77686eeb5d26001f1eb339 | -| `Studio` | **string* | :heavy_minus_sign: | N/A | Walt Disney Animation Studios | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `Title` | **string* | :heavy_minus_sign: | N/A | Tangled | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG | -| `Summary` | **string* | :heavy_minus_sign: | N/A | The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is. | -| `Rating` | **float64* | :heavy_minus_sign: | N/A | 8.9 | -| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 8.7 | -| `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1704936047 | -| `Year` | **int* | :heavy_minus_sign: | N/A | 2010 | -| `Tagline` | **string* | :heavy_minus_sign: | N/A | They're taking adventure to new lengths. | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14944/thumb/1705739847 | -| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14944/art/1705739847 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 6017237 | -| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2010-11-24 00:00:00 +0000 UTC | -| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1589412494 | -| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705739847 | -| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `PrimaryExtraKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14952 | -| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `Media` | [][operations.GetLibraryHubsMedia](../../models/operations/getlibraryhubsmedia.md) | :heavy_minus_sign: | N/A | [
{
"id": 38247,
"duration": 6017237,
"bitrate": 2051,
"width": 1920,
"height": 1080,
"aspectRatio": 1.78,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 1,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 38247,
"key": "/library/parts/38247/1589412494/file.mp4",
"duration": 6017237,
"file": "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4",
"size": 1545647447,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": true,
"videoProfile": "high"
}
]
}
] | -| `Genre` | [][operations.GetLibraryHubsGenre](../../models/operations/getlibraryhubsgenre.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Animation"
}
] | -| `Country` | [][operations.GetLibraryHubsCountry](../../models/operations/getlibraryhubscountry.md) | :heavy_minus_sign: | N/A | [
{
"tag": "United States of America"
}
] | -| `Director` | [][operations.GetLibraryHubsDirector](../../models/operations/getlibraryhubsdirector.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Nathan Greno"
}
] | -| `Role` | [][operations.GetLibraryHubsRole](../../models/operations/getlibraryhubsrole.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Donna Murphy"
}
] | -| `Writer` | [][operations.GetLibraryHubsWriter](../../models/operations/getlibraryhubswriter.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Wilhelm Grimm"
}
] | -| `SkipCount` | **int* | :heavy_minus_sign: | N/A | 1 | -| `ChapterSource` | **string* | :heavy_minus_sign: | N/A | media | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 14944 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14944 | +| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d77686eeb5d26001f1eb339 | +| `Studio` | **string* | :heavy_minus_sign: | N/A | Walt Disney Animation Studios | +| `Type` | **string* | :heavy_minus_sign: | N/A | movie | +| `Title` | **string* | :heavy_minus_sign: | N/A | Tangled | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/1 | +| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG | +| `Summary` | **string* | :heavy_minus_sign: | N/A | The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is. | +| `Rating` | **float64* | :heavy_minus_sign: | N/A | 8.9 | +| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 8.7 | +| `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1704936047 | +| `Year` | **int* | :heavy_minus_sign: | N/A | 2010 | +| `Tagline` | **string* | :heavy_minus_sign: | N/A | They're taking adventure to new lengths. | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14944/thumb/1705739847 | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14944/art/1705739847 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 6017237 | +| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2010-11-24 00:00:00 +0000 UTC | +| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1589412494 | +| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705739847 | +| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | +| `PrimaryExtraKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/14952 | +| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | +| `Media` | [][operations.GetLibraryHubsMedia](../../models/operations/getlibraryhubsmedia.md) | :heavy_minus_sign: | N/A | | +| `Genre` | [][operations.GetLibraryHubsGenre](../../models/operations/getlibraryhubsgenre.md) | :heavy_minus_sign: | N/A | | +| `Country` | [][operations.GetLibraryHubsCountry](../../models/operations/getlibraryhubscountry.md) | :heavy_minus_sign: | N/A | | +| `Director` | [][operations.GetLibraryHubsDirector](../../models/operations/getlibraryhubsdirector.md) | :heavy_minus_sign: | N/A | | +| `Role` | [][operations.GetLibraryHubsRole](../../models/operations/getlibraryhubsrole.md) | :heavy_minus_sign: | N/A | | +| `Writer` | [][operations.GetLibraryHubsWriter](../../models/operations/getlibraryhubswriter.md) | :heavy_minus_sign: | N/A | | +| `SkipCount` | **int* | :heavy_minus_sign: | N/A | 1 | +| `ChapterSource` | **string* | :heavy_minus_sign: | N/A | media | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemscountry.md b/docs/models/operations/getlibraryitemscountry.md new file mode 100644 index 0000000..cc203e0 --- /dev/null +++ b/docs/models/operations/getlibraryitemscountry.md @@ -0,0 +1,8 @@ +# GetLibraryItemsCountry + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `Tag` | **string* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsdirector.md b/docs/models/operations/getlibraryitemsdirector.md new file mode 100644 index 0000000..9758317 --- /dev/null +++ b/docs/models/operations/getlibraryitemsdirector.md @@ -0,0 +1,8 @@ +# GetLibraryItemsDirector + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Tag` | **string* | :heavy_minus_sign: | N/A | James Cameron | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsgenre.md b/docs/models/operations/getlibraryitemsgenre.md new file mode 100644 index 0000000..73d24ce --- /dev/null +++ b/docs/models/operations/getlibraryitemsgenre.md @@ -0,0 +1,8 @@ +# GetLibraryItemsGenre + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Tag` | **string* | :heavy_minus_sign: | N/A | Adventure | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsmedia.md b/docs/models/operations/getlibraryitemsmedia.md new file mode 100644 index 0000000..7deba5d --- /dev/null +++ b/docs/models/operations/getlibraryitemsmedia.md @@ -0,0 +1,21 @@ +# GetLibraryItemsMedia + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ID` | **int* | :heavy_minus_sign: | N/A | 119534 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 11558112 | +| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 25025 | +| `Width` | **int* | :heavy_minus_sign: | N/A | 3840 | +| `Height` | **int* | :heavy_minus_sign: | N/A | 2072 | +| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 1.85 | +| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 6 | +| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | eac3 | +| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | hevc | +| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 4k | +| `Container` | **string* | :heavy_minus_sign: | N/A | mkv | +| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | +| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | main 10 | +| `Part` | [][operations.GetLibraryItemsPart](../../models/operations/getlibraryitemspart.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsmediacontainer.md b/docs/models/operations/getlibraryitemsmediacontainer.md new file mode 100644 index 0000000..bf8ac21 --- /dev/null +++ b/docs/models/operations/getlibraryitemsmediacontainer.md @@ -0,0 +1,23 @@ +# GetLibraryItemsMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `Size` | **int* | :heavy_minus_sign: | N/A | 70 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | +| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | +| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `Title1` | **string* | :heavy_minus_sign: | N/A | Movies | +| `Title2` | **string* | :heavy_minus_sign: | N/A | Recently Released | +| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | movie | +| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 | +| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true | +| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsmetadata.md b/docs/models/operations/getlibraryitemsmetadata.md new file mode 100644 index 0000000..c0d8923 --- /dev/null +++ b/docs/models/operations/getlibraryitemsmetadata.md @@ -0,0 +1,64 @@ +# GetLibraryItemsMetadata + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 58683 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683 | +| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d7768ba96b655001fdc0408 | +| `Studio` | **string* | :heavy_minus_sign: | N/A | 20th Century Studios | +| `Type` | **string* | :heavy_minus_sign: | N/A | movie | +| `Title` | **string* | :heavy_minus_sign: | N/A | Avatar: The Way of Water | +| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 | +| `Summary` | **string* | :heavy_minus_sign: | N/A | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home. | +| `Rating` | **float64* | :heavy_minus_sign: | N/A | 7.6 | +| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.2 | +| `Year` | **int* | :heavy_minus_sign: | N/A | 2022 | +| `Tagline` | **string* | :heavy_minus_sign: | N/A | Return to Pandora. | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 11558112 | +| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC | +| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1680457607 | +| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1703239236 | +| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | +| `ChapterSource` | **string* | :heavy_minus_sign: | N/A | media | +| `PrimaryExtraKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58684 | +| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | +| `GrandparentRatingKey` | **string* | :heavy_minus_sign: | N/A | 66 | +| `GrandparentGUID` | **string* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 | +| `GrandparentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66 | +| `GrandparentTitle` | **string* | :heavy_minus_sign: | N/A | Caprica | +| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | +| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 | +| `GrandparentTheme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | +| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_minus_sign: | N/A | | +| `Genre` | [][operations.GetLibraryItemsGenre](../../models/operations/getlibraryitemsgenre.md) | :heavy_minus_sign: | N/A | | +| `Country` | [][operations.GetLibraryItemsCountry](../../models/operations/getlibraryitemscountry.md) | :heavy_minus_sign: | N/A | | +| `Director` | [][operations.GetLibraryItemsDirector](../../models/operations/getlibraryitemsdirector.md) | :heavy_minus_sign: | N/A | | +| `Writer` | [][operations.GetLibraryItemsWriter](../../models/operations/getlibraryitemswriter.md) | :heavy_minus_sign: | N/A | | +| `Role` | [][operations.GetLibraryItemsRole](../../models/operations/getlibraryitemsrole.md) | :heavy_minus_sign: | N/A | | +| `TitleSort` | **string* | :heavy_minus_sign: | N/A | Whale | +| `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1682752242 | +| `OriginalTitle` | **string* | :heavy_minus_sign: | N/A | 映画 ブラッククローバー 魔法帝の剣 | +| `ViewOffset` | **int* | :heavy_minus_sign: | N/A | 5222500 | +| `SkipCount` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Index` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Theme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/1/theme/1705636920 | +| `LeafCount` | **int* | :heavy_minus_sign: | N/A | 14 | +| `ViewedLeafCount` | **int* | :heavy_minus_sign: | N/A | 0 | +| `ChildCount` | **int* | :heavy_minus_sign: | N/A | 1 | +| `HasPremiumExtras` | **string* | :heavy_minus_sign: | N/A | 1 | +| `HasPremiumPrimaryExtra` | **string* | :heavy_minus_sign: | N/A | 1 | +| `ParentRatingKey` | **string* | :heavy_minus_sign: | N/A | 66 | +| `ParentGUID` | **string* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 | +| `ParentStudio` | **string* | :heavy_minus_sign: | N/A | UCP | +| `ParentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66 | +| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Caprica | +| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | +| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2010 | +| `ParentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | +| `ParentTheme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemspart.md b/docs/models/operations/getlibraryitemspart.md new file mode 100644 index 0000000..937dbb0 --- /dev/null +++ b/docs/models/operations/getlibraryitemspart.md @@ -0,0 +1,14 @@ +# GetLibraryItemsPart + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ID` | **int* | :heavy_minus_sign: | N/A | 119542 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/parts/119542/1680457526/file.mkv | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 11558112 | +| `File` | **string* | :heavy_minus_sign: | N/A | /movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv | +| `Size` | **int64* | :heavy_minus_sign: | N/A | 36158371307 | +| `Container` | **string* | :heavy_minus_sign: | N/A | mkv | +| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | main 10 | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsrequest.md b/docs/models/operations/getlibraryitemsrequest.md new file mode 100644 index 0000000..74fad4a --- /dev/null +++ b/docs/models/operations/getlibraryitemsrequest.md @@ -0,0 +1,9 @@ +# GetLibraryItemsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `SectionID` | *int64* | :heavy_check_mark: | the Id of the library to query | 1 | +| `Tag` | [operations.Tag](../../models/operations/tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsresponse.md b/docs/models/operations/getlibraryitemsresponse.md new file mode 100644 index 0000000..bfc4c0e --- /dev/null +++ b/docs/models/operations/getlibraryitemsresponse.md @@ -0,0 +1,11 @@ +# GetLibraryItemsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Object` | [*operations.GetLibraryItemsResponseBody](../../models/operations/getlibraryitemsresponsebody.md) | :heavy_minus_sign: | The contents of the library by section and tag | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsresponsebody.md b/docs/models/operations/getlibraryitemsresponsebody.md new file mode 100644 index 0000000..8c8b465 --- /dev/null +++ b/docs/models/operations/getlibraryitemsresponsebody.md @@ -0,0 +1,10 @@ +# GetLibraryItemsResponseBody + +The contents of the library by section and tag + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `MediaContainer` | [*operations.GetLibraryItemsMediaContainer](../../models/operations/getlibraryitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemsrole.md b/docs/models/operations/getlibraryitemsrole.md new file mode 100644 index 0000000..cc85735 --- /dev/null +++ b/docs/models/operations/getlibraryitemsrole.md @@ -0,0 +1,8 @@ +# GetLibraryItemsRole + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Tag` | **string* | :heavy_minus_sign: | N/A | Sigourney Weaver | \ No newline at end of file diff --git a/docs/models/operations/getlibraryitemswriter.md b/docs/models/operations/getlibraryitemswriter.md new file mode 100644 index 0000000..ec0873b --- /dev/null +++ b/docs/models/operations/getlibraryitemswriter.md @@ -0,0 +1,8 @@ +# GetLibraryItemsWriter + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Tag` | **string* | :heavy_minus_sign: | N/A | James Cameron | \ No newline at end of file diff --git a/docs/models/operations/getlibrarymediacontainer.md b/docs/models/operations/getlibrarymediacontainer.md index b4c695d..083a111 100644 --- a/docs/models/operations/getlibrarymediacontainer.md +++ b/docs/models/operations/getlibrarymediacontainer.md @@ -3,20 +3,20 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 29 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | false | -| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `Content` | **string* | :heavy_minus_sign: | N/A | secondary | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `Title1` | **string* | :heavy_minus_sign: | N/A | Movies | -| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | secondary | -| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 | -| `Directory` | [][operations.GetLibraryDirectory](../../models/operations/getlibrarydirectory.md) | :heavy_minus_sign: | N/A | [
{
"key": "search?type=1",
"title": "Search...",
"secondary": true,
"prompt": "Search Movies",
"search": true
}
] | -| `Type` | [][operations.GetLibraryType](../../models/operations/getlibrarytype.md) | :heavy_minus_sign: | N/A | [
{
"key": "/library/sections/1/all?type=1",
"type": "movie",
"title": "Movies",
"active": false,
"Filter": [
{
"filter": "genre",
"filterType": "string",
"key": "/library/sections/1/genre",
"title": "Genre",
"type": "filter"
},
{
"filter": "year",
"filterType": "integer",
"key": "/library/sections/1/year",
"title": "Year",
"type": "filter"
},
{
"filter": "decade",
"filterType": "integer",
"key": "/library/sections/1/decade",
"title": "Decade",
"type": "filter"
},
{
"filter": "contentRating",
"filterType": "string",
"key": "/library/sections/1/contentRating",
"title": "Content Rating",
"type": "filter"
},
{
"filter": "collection",
"filterType": "string",
"key": "/library/sections/1/collection",
"title": "Collection",
"type": "filter"
},
{
"filter": "director",
"filterType": "string",
"key": "/library/sections/1/director",
"title": "Director",
"type": "filter"
},
{
"filter": "actor",
"filterType": "string",
"key": "/library/sections/1/actor",
"title": "Actor",
"type": "filter"
},
{
"filter": "writer",
"filterType": "string",
"key": "/library/sections/1/writer",
"title": "Writer",
"type": "filter"
},
{
"filter": "producer",
"filterType": "string",
"key": "/library/sections/1/producer",
"title": "Producer",
"type": "filter"
},
{
"filter": "country",
"filterType": "string",
"key": "/library/sections/1/country",
"title": "Country",
"type": "filter"
},
{
"filter": "studio",
"filterType": "string",
"key": "/library/sections/1/studio",
"title": "Studio",
"type": "filter"
},
{
"filter": "resolution",
"filterType": "string",
"key": "/library/sections/1/resolution",
"title": "Resolution",
"type": "filter"
},
{
"filter": "hdr",
"filterType": "boolean",
"key": "/library/sections/1/hdr",
"title": "HDR",
"type": "filter"
},
{
"filter": "unwatched",
"filterType": "boolean",
"key": "/library/sections/1/unwatched",
"title": "Unplayed",
"type": "filter"
},
{
"filter": "inProgress",
"filterType": "boolean",
"key": "/library/sections/1/inProgress",
"title": "In Progress",
"type": "filter"
},
{
"filter": "unmatched",
"filterType": "boolean",
"key": "/library/sections/1/unmatched",
"title": "Unmatched",
"type": "filter"
},
{
"filter": "audioLanguage",
"filterType": "string",
"key": "/library/sections/1/audioLanguage",
"title": "Audio Language",
"type": "filter"
},
{
"filter": "subtitleLanguage",
"filterType": "string",
"key": "/library/sections/1/subtitleLanguage",
"title": "Subtitle Language",
"type": "filter"
},
{
"filter": "editionTitle",
"filterType": "string",
"key": "/library/sections/1/editionTitle",
"title": "Edition",
"type": "filter"
},
{
"filter": "label",
"filterType": "string",
"key": "/library/sections/1/label",
"title": "Labels",
"type": "filter"
}
],
"Sort": [
{
"default": "asc",
"defaultDirection": "asc",
"descKey": "titleSort:desc",
"firstCharacterKey": "/library/sections/1/firstCharacter",
"key": "titleSort",
"title": "Title"
},
{
"defaultDirection": "desc",
"descKey": "originallyAvailableAt:desc",
"key": "originallyAvailableAt",
"title": "Release Date"
},
{
"defaultDirection": "desc",
"descKey": "rating:desc",
"key": "rating",
"title": "Critic Rating"
},
{
"defaultDirection": "desc",
"descKey": "audienceRating:desc",
"key": "audienceRating",
"title": "Audience Rating"
},
{
"defaultDirection": "desc",
"descKey": "duration:desc",
"key": "duration",
"title": "Duration"
},
{
"defaultDirection": "desc",
"descKey": "addedAt:desc",
"key": "addedAt",
"title": "Date Added"
},
{
"defaultDirection": "desc",
"descKey": "lastViewedAt:desc",
"key": "lastViewedAt",
"title": "Date Viewed"
},
{
"defaultDirection": "asc",
"descKey": "mediaHeight:desc",
"key": "mediaHeight",
"title": "Resolution"
},
{
"defaultDirection": "desc",
"descKey": "random:desc",
"key": "random",
"title": "Randomly"
}
],
"Field": [
{
"key": "title",
"title": "Title",
"type": "string"
},
{
"key": "studio",
"title": "Studio",
"type": "string"
},
{
"key": "userRating",
"subType": "rating",
"title": "Rating",
"type": "integer"
},
{
"key": "contentRating",
"title": "Content Rating",
"type": "tag"
},
{
"key": "year",
"subType": "year",
"title": "Year",
"type": "integer"
},
{
"key": "decade",
"subType": "decade",
"title": "Decade",
"type": "integer"
},
{
"key": "originallyAvailableAt",
"title": "Release Date",
"type": "date"
},
{
"key": "duration",
"subType": "duration",
"title": "Duration",
"type": "integer"
},
{
"key": "unmatched",
"title": "Unmatched",
"type": "boolean"
},
{
"key": "duplicate",
"title": "Duplicate",
"type": "boolean"
},
{
"key": "genre",
"title": "Genre",
"type": "tag"
},
{
"key": "collection",
"title": "Collection",
"type": "tag"
},
{
"key": "director",
"title": "Director",
"type": "tag"
},
{
"key": "writer",
"title": "Writer",
"type": "tag"
},
{
"key": "producer",
"title": "Producer",
"type": "tag"
},
{
"key": "actor",
"title": "Actor",
"type": "tag"
},
{
"key": "country",
"title": "Country",
"type": "tag"
},
{
"key": "addedAt",
"title": "Date Added",
"type": "date"
},
{
"key": "viewCount",
"title": "Plays",
"type": "integer"
},
{
"key": "lastViewedAt",
"title": "Last Played",
"type": "date"
},
{
"key": "unwatched",
"title": "Unplayed",
"type": "boolean"
},
{
"key": "resolution",
"title": "Resolution",
"type": "resolution"
},
{
"key": "hdr",
"subType": "hdr",
"title": "HDR",
"type": "boolean"
},
{
"key": "mediaSize",
"subType": "fileSize",
"title": "File Size",
"type": "integer"
},
{
"key": "mediaBitrate",
"subType": "bitrate",
"title": "Bitrate",
"type": "integer"
},
{
"key": "subtitleLanguage",
"title": "Subtitle Language",
"type": "subtitleLanguage"
},
{
"key": "audioLanguage",
"title": "Audio Language",
"type": "audioLanguage"
},
{
"key": "inProgress",
"title": "In Progress",
"type": "boolean"
},
{
"key": "trash",
"title": "Trash",
"type": "boolean"
},
{
"key": "editionTitle",
"title": "Edition",
"type": "string"
},
{
"key": "label",
"title": "Label",
"type": "tag"
}
]
}
] | -| `FieldType` | [][operations.FieldType](../../models/operations/fieldtype.md) | :heavy_minus_sign: | N/A | [
{
"type": "resolution",
"Operator": [
{
"key": "=",
"title": "is"
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 29 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | false | +| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `Content` | **string* | :heavy_minus_sign: | N/A | secondary | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `Title1` | **string* | :heavy_minus_sign: | N/A | Movies | +| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | secondary | +| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 | +| `Directory` | [][operations.GetLibraryDirectory](../../models/operations/getlibrarydirectory.md) | :heavy_minus_sign: | N/A | | +| `Type` | [][operations.GetLibraryType](../../models/operations/getlibrarytype.md) | :heavy_minus_sign: | N/A | | +| `FieldType` | [][operations.FieldType](../../models/operations/fieldtype.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getlibrarytype.md b/docs/models/operations/getlibrarytype.md index 86bc636..40ef19a 100644 --- a/docs/models/operations/getlibrarytype.md +++ b/docs/models/operations/getlibrarytype.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `Title` | **string* | :heavy_minus_sign: | N/A | Movies | -| `Active` | **bool* | :heavy_minus_sign: | N/A | false | -| `Filter` | [][operations.Filter](../../models/operations/filter.md) | :heavy_minus_sign: | N/A | [
{
"filter": "label",
"filterType": "string",
"key": "/library/sections/1/label",
"title": "Labels",
"type": "filter"
}
] | -| `Sort` | [][operations.Sort](../../models/operations/sort.md) | :heavy_minus_sign: | N/A | [
{
"default": "asc",
"defaultDirection": "desc",
"descKey": "random:desc",
"firstCharacterKey": "/library/sections/1/firstCharacter",
"key": "random",
"title": "Randomly"
}
] | -| `Field` | [][operations.Field](../../models/operations/field.md) | :heavy_minus_sign: | N/A | [
{
"key": "label",
"title": "Label",
"type": "tag",
"subType": "bitrate"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | +| `Type` | **string* | :heavy_minus_sign: | N/A | movie | +| `Title` | **string* | :heavy_minus_sign: | N/A | Movies | +| `Active` | **bool* | :heavy_minus_sign: | N/A | false | +| `Filter` | [][operations.Filter](../../models/operations/filter.md) | :heavy_minus_sign: | N/A | | +| `Sort` | [][operations.Sort](../../models/operations/sort.md) | :heavy_minus_sign: | N/A | | +| `Field` | [][operations.Field](../../models/operations/field.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getmetadatachildrenmediacontainer.md b/docs/models/operations/getmetadatachildrenmediacontainer.md index 07a7482..766bd95 100644 --- a/docs/models/operations/getmetadatachildrenmediacontainer.md +++ b/docs/models/operations/getmetadatachildrenmediacontainer.md @@ -3,28 +3,28 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `Size` | **int* | :heavy_minus_sign: | N/A | 3 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | -| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/30072/art/1705739923 | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `Key` | **string* | :heavy_minus_sign: | N/A | 30072 | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 2 | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | TV Shows | -| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd | -| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 | -| `Nocache` | **bool* | :heavy_minus_sign: | N/A | true | -| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | -| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Reacher | -| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2022 | -| `Summary` | **string* | :heavy_minus_sign: | N/A | When retired Military Police Officer Jack Reacher is arrested for a murder he did not commit, he finds himself in the middle of a deadly conspiracy full of dirty cops, shady businessmen, and scheming politicians. With nothing but his wits, he must figure out what is happening in Margrave, Georgia. | -| `Theme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/30072/theme/1705739923 | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/30072/thumb/1705739923 | -| `Title1` | **string* | :heavy_minus_sign: | N/A | TV Shows | -| `Title2` | **string* | :heavy_minus_sign: | N/A | Reacher | -| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | season | -| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65593 | -| `Directory` | [][operations.GetMetadataChildrenDirectory](../../models/operations/getmetadatachildrendirectory.md) | :heavy_minus_sign: | N/A | [
{
"leafCount": 16,
"thumb": "/library/metadata/30072/thumb/1705739923",
"viewedLeafCount": 16,
"key": "/library/metadata/30072/allLeaves",
"title": "All episodes"
}
] | -| `Metadata` | [][operations.GetMetadataChildrenMetadata](../../models/operations/getmetadatachildrenmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "66488",
"key": "/library/metadata/66488/children",
"parentRatingKey": "30072",
"guid": "plex://season/652aea6549508477c34c6000",
"parentGuid": "plex://show/5d9c09190aaccd001f8f42f0",
"parentStudio": "Amazon Studios",
"type": "season",
"title": "Season 2",
"parentKey": "/library/metadata/30072",
"parentTitle": "Reacher",
"summary": "Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge.",
"index": 2,
"parentIndex": 1,
"viewCount": 11,
"lastViewedAt": 1705646565,
"parentYear": 2022,
"thumb": "/library/metadata/66488/thumb/1703065033",
"art": "/library/metadata/30072/art/1705739923",
"parentThumb": "/library/metadata/30072/thumb/1705739923",
"parentTheme": "/library/metadata/30072/theme/1705739923",
"leafCount": 8,
"viewedLeafCount": 8,
"addedAt": 1702602021,
"updatedAt": 1703065033,
"userRating": 9,
"skipCount": 1,
"lastRatedAt": 1703881224
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 3 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/30072/art/1705739923 | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `Key` | **string* | :heavy_minus_sign: | N/A | 30072 | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 2 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | TV Shows | +| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd | +| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 | +| `Nocache` | **bool* | :heavy_minus_sign: | N/A | true | +| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | +| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Reacher | +| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2022 | +| `Summary` | **string* | :heavy_minus_sign: | N/A | When retired Military Police Officer Jack Reacher is arrested for a murder he did not commit, he finds himself in the middle of a deadly conspiracy full of dirty cops, shady businessmen, and scheming politicians. With nothing but his wits, he must figure out what is happening in Margrave, Georgia. | +| `Theme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/30072/theme/1705739923 | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/30072/thumb/1705739923 | +| `Title1` | **string* | :heavy_minus_sign: | N/A | TV Shows | +| `Title2` | **string* | :heavy_minus_sign: | N/A | Reacher | +| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | season | +| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65593 | +| `Directory` | [][operations.GetMetadataChildrenDirectory](../../models/operations/getmetadatachildrendirectory.md) | :heavy_minus_sign: | N/A | [
{
"leafCount": 16,
"thumb": "/library/metadata/30072/thumb/1705739923",
"viewedLeafCount": 16,
"key": "/library/metadata/30072/allLeaves",
"title": "All episodes"
}
] | +| `Metadata` | [][operations.GetMetadataChildrenMetadata](../../models/operations/getmetadatachildrenmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getmetadatamedia.md b/docs/models/operations/getmetadatamedia.md index aa24251..5a79d56 100644 --- a/docs/models/operations/getmetadatamedia.md +++ b/docs/models/operations/getmetadatamedia.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ID` | **int* | :heavy_minus_sign: | N/A | 15 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 141417 | -| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 2278 | -| `Width` | **int* | :heavy_minus_sign: | N/A | 1920 | -| `Height` | **int* | :heavy_minus_sign: | N/A | 814 | -| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 2.35 | -| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | -| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | aac | -| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | h264 | -| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 1080 | -| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | -| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | -| `OptimizedForStreaming` | **int* | :heavy_minus_sign: | N/A | 0 | -| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | -| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | -| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | -| `Part` | [][operations.GetMetadataPart](../../models/operations/getmetadatapart.md) | :heavy_minus_sign: | N/A | [
{
"id": 15,
"key": "/library/parts/15/1705637151/file.mp4",
"duration": 141417,
"file": "/movies/Serenity (2005)/Serenity (2005).mp4",
"size": 40271948,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high",
"Stream": [
{
"id": 30,
"streamType": 1,
"default": true,
"codec": "h264",
"index": 1,
"bitrate": 2160,
"bitDepth": 8,
"chromaLocation": "left",
"chromaSubsampling": 14520,
"codedHeight": 816,
"codedWidth": 1920,
"colorPrimaries": "bt709",
"colorRange": "tv",
"colorSpace": "bt709",
"colorTrc": "bt709",
"frameRate": 24,
"hasScalingMatrix": false,
"height": 814,
"level": 40,
"profile": "high",
"refFrames": 4,
"scanType": "progressive",
"streamIdentifier": "2",
"width": 1920,
"displayTitle": "1080p (H.264)",
"extendedDisplayTitle": "1080p (H.264)"
},
{
"id": 29,
"streamType": 2,
"selected": true,
"default": true,
"codec": "aac",
"index": 0,
"channels": 2,
"bitrate": 128,
"language": "English",
"languageTag": "en",
"languageCode": "eng",
"profile": "lc",
"samplingRate": 44100,
"streamIdentifier": "1",
"displayTitle": "English (AAC Stereo)",
"extendedDisplayTitle": "English (AAC Stereo)"
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ID` | **int* | :heavy_minus_sign: | N/A | 15 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 141417 | +| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 2278 | +| `Width` | **int* | :heavy_minus_sign: | N/A | 1920 | +| `Height` | **int* | :heavy_minus_sign: | N/A | 814 | +| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 2.35 | +| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | +| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | aac | +| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | h264 | +| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 1080 | +| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | +| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | +| `OptimizedForStreaming` | **int* | :heavy_minus_sign: | N/A | 0 | +| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | +| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | +| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | +| `Part` | [][operations.GetMetadataPart](../../models/operations/getmetadatapart.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getmetadatamediacontainer.md b/docs/models/operations/getmetadatamediacontainer.md index dfb2f18..607e8c9 100644 --- a/docs/models/operations/getmetadatamediacontainer.md +++ b/docs/models/operations/getmetadatamediacontainer.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | -| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | -| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1698860922 | -| `Metadata` | [][operations.GetMetadataMetadata](../../models/operations/getmetadatametadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "17",
"key": "/library/metadata/17",
"guid": "plex://movie/5d77683f6f4521001ea9dc53",
"studio": "Universal Pictures",
"type": "movie",
"title": "Serenity",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "PG-13",
"summary": "Serenity continues the story of the TV series it was based upon (\"Firefly\"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job.",
"rating": 8.2,
"audienceRating": 9.1,
"year": 2005,
"tagline": "They aim to misbehave.",
"thumb": "/library/metadata/17/thumb/1705637165",
"art": "/library/metadata/17/art/1705637165",
"duration": 141417,
"originallyAvailableAt": "2005-09-29T00:00:00Z",
"addedAt": 1705637164,
"updatedAt": 1705637165,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"hasPremiumPrimaryExtra": "1",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 15,
"duration": 141417,
"bitrate": 2278,
"width": 1920,
"height": 814,
"aspectRatio": 2.35,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 0,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 15,
"key": "/library/parts/15/1705637151/file.mp4",
"duration": 141417,
"file": "/movies/Serenity (2005)/Serenity (2005).mp4",
"size": 40271948,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high",
"Stream": [
{
"id": 30,
"streamType": 1,
"default": true,
"codec": "h264",
"index": 1,
"bitrate": 2160,
"bitDepth": 8,
"chromaLocation": "left",
"chromaSubsampling": 14520,
"codedHeight": 816,
"codedWidth": 1920,
"colorPrimaries": "bt709",
"colorRange": "tv",
"colorSpace": "bt709",
"colorTrc": "bt709",
"frameRate": 24,
"hasScalingMatrix": false,
"height": 814,
"level": 40,
"profile": "high",
"refFrames": 4,
"scanType": "progressive",
"streamIdentifier": "2",
"width": 1920,
"displayTitle": "1080p (H.264)",
"extendedDisplayTitle": "1080p (H.264)"
},
{
"id": 29,
"streamType": 2,
"selected": true,
"default": true,
"codec": "aac",
"index": 0,
"channels": 2,
"bitrate": 128,
"language": "English",
"languageTag": "en",
"languageCode": "eng",
"profile": "lc",
"samplingRate": 44100,
"streamIdentifier": "1",
"displayTitle": "English (AAC Stereo)",
"extendedDisplayTitle": "English (AAC Stereo)"
}
]
}
]
}
],
"Genre": [
{
"id": 5,
"filter": "genre=5",
"tag": "Science Fiction"
}
],
"Country": [
{
"id": 116,
"filter": "country=116",
"tag": "United States of America"
}
],
"Guid": [
{
"id": "imdb://tt0379786"
}
],
"Rating": [
{
"image": "imdb://image.rating",
"value": 7.8,
"type": "audience"
}
],
"Director": [
{
"id": 130,
"filter": "director=130",
"tag": "Joss Whedon",
"tagKey": "5d776828880197001ec90e8f",
"thumb": "https://metadata-static.plex.tv/people/5d776828880197001ec90e8f.jpg"
}
],
"Writer": [
{
"id": 132,
"filter": "writer=132",
"tag": "Joss Whedon",
"tagKey": "5d776828880197001ec90e8f",
"thumb": "https://metadata-static.plex.tv/people/5d776828880197001ec90e8f.jpg"
}
],
"Role": [
{
"id": 8,
"filter": "actor=8",
"tag": "Nathan Fillion",
"tagKey": "5d7768286f4521001ea9945c",
"role": "Malcolm \"Mal\" Reynolds",
"thumb": "https://metadata-static.plex.tv/4/people/4a2890ca346eb832500b1ed0add89d5e.jpg"
}
],
"Producer": [
{
"id": 221,
"filter": "producer=221",
"tag": "Barry Mendel",
"tagKey": "5d776826961905001eb90e2b",
"thumb": "https://metadata-static.plex.tv/8/people/87877371326a964634d18556d94547e1.jpg"
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | +| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | +| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1698860922 | +| `Metadata` | [][operations.GetMetadataMetadata](../../models/operations/getmetadatametadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getmetadatametadata.md b/docs/models/operations/getmetadatametadata.md index b33b955..21c2c43 100644 --- a/docs/models/operations/getmetadatametadata.md +++ b/docs/models/operations/getmetadatametadata.md @@ -3,38 +3,38 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 17 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17 | -| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | -| `Studio` | **string* | :heavy_minus_sign: | N/A | Universal Pictures | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `Title` | **string* | :heavy_minus_sign: | N/A | Serenity | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 | -| `Summary` | **string* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | -| `Rating` | **float64* | :heavy_minus_sign: | N/A | 8.2 | -| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.1 | -| `Year` | **int* | :heavy_minus_sign: | N/A | 2005 | -| `Tagline` | **string* | :heavy_minus_sign: | N/A | They aim to misbehave. | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | -| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 141417 | -| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | -| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705637164 | -| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705637165 | -| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `HasPremiumPrimaryExtra` | **string* | :heavy_minus_sign: | N/A | 1 | -| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `Media` | [][operations.GetMetadataMedia](../../models/operations/getmetadatamedia.md) | :heavy_minus_sign: | N/A | [
{
"id": 15,
"duration": 141417,
"bitrate": 2278,
"width": 1920,
"height": 814,
"aspectRatio": 2.35,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 0,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 15,
"key": "/library/parts/15/1705637151/file.mp4",
"duration": 141417,
"file": "/movies/Serenity (2005)/Serenity (2005).mp4",
"size": 40271948,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high",
"Stream": [
{
"id": 30,
"streamType": 1,
"default": true,
"codec": "h264",
"index": 1,
"bitrate": 2160,
"bitDepth": 8,
"chromaLocation": "left",
"chromaSubsampling": 14520,
"codedHeight": 816,
"codedWidth": 1920,
"colorPrimaries": "bt709",
"colorRange": "tv",
"colorSpace": "bt709",
"colorTrc": "bt709",
"frameRate": 24,
"hasScalingMatrix": false,
"height": 814,
"level": 40,
"profile": "high",
"refFrames": 4,
"scanType": "progressive",
"streamIdentifier": "2",
"width": 1920,
"displayTitle": "1080p (H.264)",
"extendedDisplayTitle": "1080p (H.264)"
},
{
"id": 29,
"streamType": 2,
"selected": true,
"default": true,
"codec": "aac",
"index": 0,
"channels": 2,
"bitrate": 128,
"language": "English",
"languageTag": "en",
"languageCode": "eng",
"profile": "lc",
"samplingRate": 44100,
"streamIdentifier": "1",
"displayTitle": "English (AAC Stereo)",
"extendedDisplayTitle": "English (AAC Stereo)"
}
]
}
]
}
] | -| `Genre` | [][operations.GetMetadataGenre](../../models/operations/getmetadatagenre.md) | :heavy_minus_sign: | N/A | [
{
"id": 184,
"filter": "genre=184",
"tag": "Thriller"
}
] | -| `Country` | [][operations.GetMetadataCountry](../../models/operations/getmetadatacountry.md) | :heavy_minus_sign: | N/A | [
{
"id": 116,
"filter": "country=116",
"tag": "United States of America"
}
] | -| `Guids` | [][operations.Guids](../../models/operations/guids.md) | :heavy_minus_sign: | N/A | [
{
"id": "tvdb://2337"
}
] | -| `Ratings` | [][operations.Ratings](../../models/operations/ratings.md) | :heavy_minus_sign: | N/A | [
{
"image": "themoviedb://image.rating",
"value": 7.4,
"type": "audience"
}
] | -| `Director` | [][operations.GetMetadataDirector](../../models/operations/getmetadatadirector.md) | :heavy_minus_sign: | N/A | [
{
"id": 130,
"filter": "director=130",
"tag": "Joss Whedon",
"tagKey": "5d776828880197001ec90e8f",
"thumb": "https://metadata-static.plex.tv/people/5d776828880197001ec90e8f.jpg"
}
] | -| `Writer` | [][operations.GetMetadataWriter](../../models/operations/getmetadatawriter.md) | :heavy_minus_sign: | N/A | [
{
"id": 132,
"filter": "writer=132",
"tag": "Joss Whedon",
"tagKey": "5d776828880197001ec90e8f",
"thumb": "https://metadata-static.plex.tv/people/5d776828880197001ec90e8f.jpg"
}
] | -| `Role` | [][operations.GetMetadataRole](../../models/operations/getmetadatarole.md) | :heavy_minus_sign: | N/A | [
{
"id": 220,
"filter": "actor=220",
"tag": "Dennis Keiffer",
"tagKey": "5d77683554f42c001f8c4708",
"role": "Bar Guy (uncredited)",
"thumb": "https://metadata-static.plex.tv/6/people/648e9a7ea1d537bccfcd7615134b78ce.jpg"
}
] | -| `Producer` | [][operations.Producer](../../models/operations/producer.md) | :heavy_minus_sign: | N/A | [
{
"id": 221,
"filter": "producer=221",
"tag": "Barry Mendel",
"tagKey": "5d776826961905001eb90e2b",
"thumb": "https://metadata-static.plex.tv/8/people/87877371326a964634d18556d94547e1.jpg"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 17 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17 | +| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | +| `Studio` | **string* | :heavy_minus_sign: | N/A | Universal Pictures | +| `Type` | **string* | :heavy_minus_sign: | N/A | movie | +| `Title` | **string* | :heavy_minus_sign: | N/A | Serenity | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/1 | +| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 | +| `Summary` | **string* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | +| `Rating` | **float64* | :heavy_minus_sign: | N/A | 8.2 | +| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.1 | +| `Year` | **int* | :heavy_minus_sign: | N/A | 2005 | +| `Tagline` | **string* | :heavy_minus_sign: | N/A | They aim to misbehave. | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 141417 | +| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | +| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705637164 | +| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705637165 | +| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | +| `HasPremiumPrimaryExtra` | **string* | :heavy_minus_sign: | N/A | 1 | +| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | +| `Media` | [][operations.GetMetadataMedia](../../models/operations/getmetadatamedia.md) | :heavy_minus_sign: | N/A | | +| `Genre` | [][operations.GetMetadataGenre](../../models/operations/getmetadatagenre.md) | :heavy_minus_sign: | N/A | | +| `Country` | [][operations.GetMetadataCountry](../../models/operations/getmetadatacountry.md) | :heavy_minus_sign: | N/A | | +| `Guids` | [][operations.Guids](../../models/operations/guids.md) | :heavy_minus_sign: | N/A | | +| `Ratings` | [][operations.Ratings](../../models/operations/ratings.md) | :heavy_minus_sign: | N/A | | +| `Director` | [][operations.GetMetadataDirector](../../models/operations/getmetadatadirector.md) | :heavy_minus_sign: | N/A | | +| `Writer` | [][operations.GetMetadataWriter](../../models/operations/getmetadatawriter.md) | :heavy_minus_sign: | N/A | | +| `Role` | [][operations.GetMetadataRole](../../models/operations/getmetadatarole.md) | :heavy_minus_sign: | N/A | | +| `Producer` | [][operations.Producer](../../models/operations/producer.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getmetadatapart.md b/docs/models/operations/getmetadatapart.md index e46d43d..8cae986 100644 --- a/docs/models/operations/getmetadatapart.md +++ b/docs/models/operations/getmetadatapart.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ID` | **int* | :heavy_minus_sign: | N/A | 15 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 141417 | -| `File` | **string* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | -| `Size` | **int* | :heavy_minus_sign: | N/A | 40271948 | -| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | -| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | -| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | -| `OptimizedForStreaming` | **bool* | :heavy_minus_sign: | N/A | false | -| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | -| `Stream` | [][operations.Stream](../../models/operations/stream.md) | :heavy_minus_sign: | N/A | [
{
"id": 29,
"streamType": 2,
"default": true,
"codec": "aac",
"index": 0,
"bitrate": 128,
"bitDepth": 8,
"chromaLocation": "left",
"chromaSubsampling": 14520,
"codedHeight": 816,
"codedWidth": 1920,
"colorPrimaries": "bt709",
"colorRange": "tv",
"colorSpace": "bt709",
"colorTrc": "bt709",
"frameRate": 24,
"hasScalingMatrix": false,
"height": 814,
"level": 40,
"profile": "lc",
"refFrames": 4,
"scanType": "progressive",
"streamIdentifier": "1",
"width": 1920,
"displayTitle": "English (AAC Stereo)",
"extendedDisplayTitle": "English (AAC Stereo)",
"selected": true,
"channels": 2,
"language": "English",
"languageTag": "en",
"languageCode": "eng",
"samplingRate": 44100
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ID` | **int* | :heavy_minus_sign: | N/A | 15 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 141417 | +| `File` | **string* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | +| `Size` | **int* | :heavy_minus_sign: | N/A | 40271948 | +| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | +| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | +| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | +| `OptimizedForStreaming` | **bool* | :heavy_minus_sign: | N/A | false | +| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | +| `Stream` | [][operations.Stream](../../models/operations/stream.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getplaylistcontentsmedia.md b/docs/models/operations/getplaylistcontentsmedia.md index 155b1ba..72e37ea 100644 --- a/docs/models/operations/getplaylistcontentsmedia.md +++ b/docs/models/operations/getplaylistcontentsmedia.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ID` | **int* | :heavy_minus_sign: | N/A | 15 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 141416 | -| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 2273 | -| `Width` | **int* | :heavy_minus_sign: | N/A | 1920 | -| `Height` | **int* | :heavy_minus_sign: | N/A | 814 | -| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 2.35 | -| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | -| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | aac | -| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | h264 | -| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 1080 | -| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | -| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | -| `OptimizedForStreaming` | **int* | :heavy_minus_sign: | N/A | 0 | -| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | -| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | -| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | -| `Part` | [][operations.GetPlaylistContentsPart](../../models/operations/getplaylistcontentspart.md) | :heavy_minus_sign: | N/A | [
{
"id": 15,
"key": "/library/parts/15/1705637151/file.mp4",
"duration": 141416,
"file": "/movies/Serenity (2005)/Serenity (2005).mp4",
"size": 40271948,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ID` | **int* | :heavy_minus_sign: | N/A | 15 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 141416 | +| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 2273 | +| `Width` | **int* | :heavy_minus_sign: | N/A | 1920 | +| `Height` | **int* | :heavy_minus_sign: | N/A | 814 | +| `AspectRatio` | **float64* | :heavy_minus_sign: | N/A | 2.35 | +| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | +| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | aac | +| `VideoCodec` | **string* | :heavy_minus_sign: | N/A | h264 | +| `VideoResolution` | **string* | :heavy_minus_sign: | N/A | 1080 | +| `Container` | **string* | :heavy_minus_sign: | N/A | mp4 | +| `VideoFrameRate` | **string* | :heavy_minus_sign: | N/A | 24p | +| `OptimizedForStreaming` | **int* | :heavy_minus_sign: | N/A | 0 | +| `AudioProfile` | **string* | :heavy_minus_sign: | N/A | lc | +| `Has64bitOffsets` | **bool* | :heavy_minus_sign: | N/A | false | +| `VideoProfile` | **string* | :heavy_minus_sign: | N/A | high | +| `Part` | [][operations.GetPlaylistContentsPart](../../models/operations/getplaylistcontentspart.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getplaylistcontentsmediacontainer.md b/docs/models/operations/getplaylistcontentsmediacontainer.md index c587589..d78263d 100644 --- a/docs/models/operations/getplaylistcontentsmediacontainer.md +++ b/docs/models/operations/getplaylistcontentsmediacontainer.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 2 | -| `Composite` | **string* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 282 | -| `LeafCount` | **int* | :heavy_minus_sign: | N/A | 2 | -| `PlaylistType` | **string* | :heavy_minus_sign: | N/A | video | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 95 | -| `Smart` | **bool* | :heavy_minus_sign: | N/A | true | -| `Title` | **string* | :heavy_minus_sign: | N/A | Smart Movie Playlist | -| `Metadata` | [][operations.GetPlaylistContentsMetadata](../../models/operations/getplaylistcontentsmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "17",
"key": "/library/metadata/17",
"guid": "plex://movie/5d77683f6f4521001ea9dc53",
"studio": "Universal Pictures",
"type": "movie",
"title": "Serenity",
"titleSort": "Amazing Spider-Man 2",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "PG-13",
"summary": "Serenity continues the story of the TV series it was based upon (\"Firefly\"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job.",
"rating": 8.2,
"audienceRating": 9.1,
"year": 2005,
"tagline": "They aim to misbehave.",
"thumb": "/library/metadata/17/thumb/1705637165",
"art": "/library/metadata/17/art/1705637165",
"duration": 141416,
"originallyAvailableAt": "2005-09-29T00:00:00Z",
"addedAt": 1705637164,
"updatedAt": 1705637165,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"hasPremiumExtras": "1",
"hasPremiumPrimaryExtra": "1",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 15,
"duration": 141416,
"bitrate": 2273,
"width": 1920,
"height": 814,
"aspectRatio": 2.35,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 0,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 15,
"key": "/library/parts/15/1705637151/file.mp4",
"duration": 141416,
"file": "/movies/Serenity (2005)/Serenity (2005).mp4",
"size": 40271948,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high"
}
]
}
],
"Genre": [
{
"tag": "Science Fiction"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Director": [
{
"tag": "Joss Whedon"
}
],
"Writer": [
{
"tag": "Joss Whedon"
}
],
"Role": [
{
"tag": "Nathan Fillion"
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 2 | +| `Composite` | **string* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 282 | +| `LeafCount` | **int* | :heavy_minus_sign: | N/A | 2 | +| `PlaylistType` | **string* | :heavy_minus_sign: | N/A | video | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 95 | +| `Smart` | **bool* | :heavy_minus_sign: | N/A | true | +| `Title` | **string* | :heavy_minus_sign: | N/A | Smart Movie Playlist | +| `Metadata` | [][operations.GetPlaylistContentsMetadata](../../models/operations/getplaylistcontentsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getplaylistcontentsmetadata.md b/docs/models/operations/getplaylistcontentsmetadata.md index c47efbc..f24b795 100644 --- a/docs/models/operations/getplaylistcontentsmetadata.md +++ b/docs/models/operations/getplaylistcontentsmetadata.md @@ -3,37 +3,37 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 17 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17 | -| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | -| `Studio` | **string* | :heavy_minus_sign: | N/A | Universal Pictures | -| `Type` | **string* | :heavy_minus_sign: | N/A | movie | -| `Title` | **string* | :heavy_minus_sign: | N/A | Serenity | -| `TitleSort` | **string* | :heavy_minus_sign: | N/A | Amazing Spider-Man 2 | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | -| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | -| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 | -| `Summary` | **string* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | -| `Rating` | **float64* | :heavy_minus_sign: | N/A | 8.2 | -| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.1 | -| `Year` | **int* | :heavy_minus_sign: | N/A | 2005 | -| `Tagline` | **string* | :heavy_minus_sign: | N/A | They aim to misbehave. | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | -| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 141416 | -| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | -| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705637164 | -| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705637165 | -| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `HasPremiumExtras` | **string* | :heavy_minus_sign: | N/A | 1 | -| `HasPremiumPrimaryExtra` | **string* | :heavy_minus_sign: | N/A | 1 | -| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `Media` | [][operations.GetPlaylistContentsMedia](../../models/operations/getplaylistcontentsmedia.md) | :heavy_minus_sign: | N/A | [
{
"id": 15,
"duration": 141416,
"bitrate": 2273,
"width": 1920,
"height": 814,
"aspectRatio": 2.35,
"audioChannels": 2,
"audioCodec": "aac",
"videoCodec": "h264",
"videoResolution": "1080",
"container": "mp4",
"videoFrameRate": "24p",
"optimizedForStreaming": 0,
"audioProfile": "lc",
"has64bitOffsets": false,
"videoProfile": "high",
"Part": [
{
"id": 15,
"key": "/library/parts/15/1705637151/file.mp4",
"duration": 141416,
"file": "/movies/Serenity (2005)/Serenity (2005).mp4",
"size": 40271948,
"audioProfile": "lc",
"container": "mp4",
"has64bitOffsets": false,
"optimizedForStreaming": false,
"videoProfile": "high"
}
]
}
] | -| `Genre` | [][operations.GetPlaylistContentsGenre](../../models/operations/getplaylistcontentsgenre.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Action"
}
] | -| `Country` | [][operations.GetPlaylistContentsCountry](../../models/operations/getplaylistcontentscountry.md) | :heavy_minus_sign: | N/A | [
{
"tag": "United States of America"
}
] | -| `Director` | [][operations.GetPlaylistContentsDirector](../../models/operations/getplaylistcontentsdirector.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Joss Whedon"
}
] | -| `Writer` | [][operations.GetPlaylistContentsWriter](../../models/operations/getplaylistcontentswriter.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Joss Whedon"
}
] | -| `Role` | [][operations.GetPlaylistContentsRole](../../models/operations/getplaylistcontentsrole.md) | :heavy_minus_sign: | N/A | [
{
"tag": "Gina Torres"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 17 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17 | +| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | +| `Studio` | **string* | :heavy_minus_sign: | N/A | Universal Pictures | +| `Type` | **string* | :heavy_minus_sign: | N/A | movie | +| `Title` | **string* | :heavy_minus_sign: | N/A | Serenity | +| `TitleSort` | **string* | :heavy_minus_sign: | N/A | Amazing Spider-Man 2 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies | +| `LibrarySectionID` | **int* | :heavy_minus_sign: | N/A | 1 | +| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/1 | +| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 | +| `Summary` | **string* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | +| `Rating` | **float64* | :heavy_minus_sign: | N/A | 8.2 | +| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.1 | +| `Year` | **int* | :heavy_minus_sign: | N/A | 2005 | +| `Tagline` | **string* | :heavy_minus_sign: | N/A | They aim to misbehave. | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 141416 | +| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | +| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705637164 | +| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705637165 | +| `AudienceRatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | +| `HasPremiumExtras` | **string* | :heavy_minus_sign: | N/A | 1 | +| `HasPremiumPrimaryExtra` | **string* | :heavy_minus_sign: | N/A | 1 | +| `RatingImage` | **string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | +| `Media` | [][operations.GetPlaylistContentsMedia](../../models/operations/getplaylistcontentsmedia.md) | :heavy_minus_sign: | N/A | | +| `Genre` | [][operations.GetPlaylistContentsGenre](../../models/operations/getplaylistcontentsgenre.md) | :heavy_minus_sign: | N/A | | +| `Country` | [][operations.GetPlaylistContentsCountry](../../models/operations/getplaylistcontentscountry.md) | :heavy_minus_sign: | N/A | | +| `Director` | [][operations.GetPlaylistContentsDirector](../../models/operations/getplaylistcontentsdirector.md) | :heavy_minus_sign: | N/A | | +| `Writer` | [][operations.GetPlaylistContentsWriter](../../models/operations/getplaylistcontentswriter.md) | :heavy_minus_sign: | N/A | | +| `Role` | [][operations.GetPlaylistContentsRole](../../models/operations/getplaylistcontentsrole.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getplaylistmediacontainer.md b/docs/models/operations/getplaylistmediacontainer.md index b7b3ee1..e6db8e1 100644 --- a/docs/models/operations/getplaylistmediacontainer.md +++ b/docs/models/operations/getplaylistmediacontainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | -| `Metadata` | [][operations.GetPlaylistMetadata](../../models/operations/getplaylistmetadata.md) | :heavy_minus_sign: | N/A | [
{
"content": "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1",
"ratingKey": "95",
"key": "/playlists/95/items",
"guid": "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91",
"type": "playlist",
"title": "Smart Movie Playlist",
"summary": "",
"smart": true,
"playlistType": "video",
"composite": "/playlists/95/composite/1705717387",
"icon": "playlist://image.smart",
"duration": 282000,
"leafCount": 2,
"addedAt": 1705716493,
"updatedAt": 1705717387
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Metadata` | [][operations.GetPlaylistMetadata](../../models/operations/getplaylistmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getplaylistsmediacontainer.md b/docs/models/operations/getplaylistsmediacontainer.md index 8175ada..e81c558 100644 --- a/docs/models/operations/getplaylistsmediacontainer.md +++ b/docs/models/operations/getplaylistsmediacontainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 4 | -| `Metadata` | [][operations.GetPlaylistsMetadata](../../models/operations/getplaylistsmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "92",
"key": "/playlists/92/items",
"guid": "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903",
"type": "playlist",
"title": "Static Playlist",
"summary": "A Great Playlist",
"smart": false,
"playlistType": "video",
"composite": "/playlists/92/composite/1705716440",
"icon": "playlist://image.smart",
"viewCount": 1,
"lastViewedAt": 1705716298,
"duration": 7328000,
"leafCount": 32,
"addedAt": 1705716298,
"updatedAt": 1705716440
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `Size` | **int* | :heavy_minus_sign: | N/A | 4 | +| `Metadata` | [][operations.GetPlaylistsMetadata](../../models/operations/getplaylistsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getserverpreferencesmediacontainer.md b/docs/models/operations/getserverpreferencesmediacontainer.md index f78f9b1..9e99137 100644 --- a/docs/models/operations/getserverpreferencesmediacontainer.md +++ b/docs/models/operations/getserverpreferencesmediacontainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 161 | -| `Setting` | [][operations.Setting](../../models/operations/setting.md) | :heavy_minus_sign: | N/A | [
{
"id": "EnableDatabaseTrace",
"label": "",
"summary": "",
"type": "bool",
"default": false,
"value": false,
"hidden": true,
"advanced": false,
"group": "",
"enumValues": "1:admin only\|2:everyone"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 161 | +| `Setting` | [][operations.Setting](../../models/operations/setting.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getsessionhistorymediacontainer.md b/docs/models/operations/getsessionhistorymediacontainer.md index 141acff..d803d3f 100644 --- a/docs/models/operations/getsessionhistorymediacontainer.md +++ b/docs/models/operations/getsessionhistorymediacontainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 10855 | -| `Metadata` | [][operations.GetSessionHistoryMetadata](../../models/operations/getsessionhistorymetadata.md) | :heavy_minus_sign: | N/A | [
{
"historyKey": "/status/sessions/history/1",
"key": "/library/metadata/32171",
"ratingKey": "32171",
"librarySectionID": "2",
"parentKey": "/library/metadata/32170",
"grandparentKey": "/library/metadata/32132",
"title": "The Noise That Blue Makes",
"grandparentTitle": "Taskmaster",
"type": "episode",
"thumb": "/library/metadata/32171/thumb/-1",
"parentThumb": "/library/metadata/32170/thumb/1654134301",
"grandparentThumb": "/library/metadata/32132/thumb/1703933346",
"grandparentArt": "/library/metadata/32132/art/1703933346",
"index": 1,
"parentIndex": 13,
"originallyAvailableAt": "2022-04-14T00:00:00Z",
"viewedAt": 1654139223,
"accountID": 1,
"deviceID": 5
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 10855 | +| `Metadata` | [][operations.GetSessionHistoryMetadata](../../models/operations/getsessionhistorymetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getsessionsmedia.md b/docs/models/operations/getsessionsmedia.md index c90ea35..294bdb9 100644 --- a/docs/models/operations/getsessionsmedia.md +++ b/docs/models/operations/getsessionsmedia.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | -| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | flac | -| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 1014 | -| `Container` | **string* | :heavy_minus_sign: | N/A | flac | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | -| `ID` | **string* | :heavy_minus_sign: | N/A | 130355 | -| `Selected` | **bool* | :heavy_minus_sign: | N/A | true | -| `Part` | [][operations.GetSessionsPart](../../models/operations/getsessionspart.md) | :heavy_minus_sign: | N/A | [
{
"container": "flac",
"duration": 186240,
"file": "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac",
"hasThumbnail": "1",
"id": "130625",
"key": "/library/parts/130625/1705543268/file.flac",
"size": 23644000,
"decision": "directplay",
"selected": true,
"Stream": [
{
"albumGain": "-12.94",
"albumPeak": "1.000000",
"albumRange": "4.751014",
"audioChannelLayout": "stereo",
"bitDepth": 16,
"bitrate": 1014,
"channels": 2,
"codec": "flac",
"displayTitle": "FLAC (Stereo)",
"extendedDisplayTitle": "FLAC (Stereo)",
"gain": "-12.94",
"id": "352487",
"index": 0,
"loudness": "-5.94",
"lra": "1.74",
"peak": "1.000000",
"samplingRate": 44100,
"selected": true,
"streamType": 2,
"location": "direct"
}
]
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `AudioChannels` | **int* | :heavy_minus_sign: | N/A | 2 | +| `AudioCodec` | **string* | :heavy_minus_sign: | N/A | flac | +| `Bitrate` | **int* | :heavy_minus_sign: | N/A | 1014 | +| `Container` | **string* | :heavy_minus_sign: | N/A | flac | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | +| `ID` | **string* | :heavy_minus_sign: | N/A | 130355 | +| `Selected` | **bool* | :heavy_minus_sign: | N/A | true | +| `Part` | [][operations.GetSessionsPart](../../models/operations/getsessionspart.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getsessionsmediacontainer.md b/docs/models/operations/getsessionsmediacontainer.md index 123f036..4d9f313 100644 --- a/docs/models/operations/getsessionsmediacontainer.md +++ b/docs/models/operations/getsessionsmediacontainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | -| `Metadata` | [][operations.GetSessionsMetadata](../../models/operations/getsessionsmetadata.md) | :heavy_minus_sign: | N/A | [
{
"addedAt": 1705543312,
"art": "/library/metadata/39904/art/1705310687",
"duration": 186240,
"grandparentArt": "/library/metadata/39904/art/1705310687",
"grandparentGuid": "plex://artist/5d07bbfd403c6402904a6480",
"grandparentKey": "/library/metadata/39904",
"grandparentRatingKey": "39904",
"grandparentThumb": "/library/metadata/39904/thumb/1705310687",
"grandparentTitle": "Green Day",
"guid": "plex://track/6535834f71f22f36f71a8e8f",
"index": 1,
"key": "/library/metadata/67085",
"librarySectionID": "3",
"librarySectionKey": "/library/sections/3",
"librarySectionTitle": "Music",
"musicAnalysisVersion": "1",
"parentGuid": "plex://album/65394d6d472b8ab03ef47f12",
"parentIndex": 1,
"parentKey": "/library/metadata/67084",
"parentRatingKey": "67084",
"parentStudio": "Reprise Records",
"parentThumb": "/library/metadata/67084/thumb/1705543314",
"parentTitle": "Saviors",
"parentYear": 2024,
"ratingCount": 45885,
"ratingKey": "67085",
"sessionKey": "203",
"thumb": "/library/metadata/67084/thumb/1705543314",
"title": "The American Dream Is Killing Me",
"titleSort": "American Dream Is Killing Me",
"type": "track",
"updatedAt": 1705543314,
"viewOffset": 1000,
"Media": [
{
"audioChannels": 2,
"audioCodec": "flac",
"bitrate": 1014,
"container": "flac",
"duration": 186240,
"id": "130355",
"selected": true,
"Part": [
{
"container": "flac",
"duration": 186240,
"file": "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac",
"hasThumbnail": "1",
"id": "130625",
"key": "/library/parts/130625/1705543268/file.flac",
"size": 23644000,
"decision": "directplay",
"selected": true,
"Stream": [
{
"albumGain": "-12.94",
"albumPeak": "1.000000",
"albumRange": "4.751014",
"audioChannelLayout": "stereo",
"bitDepth": 16,
"bitrate": 1014,
"channels": 2,
"codec": "flac",
"displayTitle": "FLAC (Stereo)",
"extendedDisplayTitle": "FLAC (Stereo)",
"gain": "-12.94",
"id": "352487",
"index": 0,
"loudness": "-5.94",
"lra": "1.74",
"peak": "1.000000",
"samplingRate": 44100,
"selected": true,
"streamType": 2,
"location": "direct"
}
]
}
]
}
],
"User": {
"id": "1",
"thumb": "https://plex.tv/users/844780fc6f8a26b5/avatar?c=1705853661",
"title": "Blindkitty38"
},
"Player": {
"address": "10.10.10.171",
"machineIdentifier": "3tsdzir85m2onc3qyr255aq1",
"model": "standalone",
"platform": "windows",
"platformVersion": "10.0.22621",
"product": "Plex for Windows",
"profile": "Plex Desktop",
"remotePublicAddress": "68.248.140.20",
"state": "playing",
"title": "DESKTOP-BL80MTD",
"version": "1.85.0.4071-21128b56",
"local": true,
"relayed": false,
"secure": true,
"userID": 1
},
"Session": {
"id": "93h7e00ncblxncqw9lkfaoxi",
"bandwidth": 1050,
"location": "lan"
}
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Metadata` | [][operations.GetSessionsMetadata](../../models/operations/getsessionsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getsessionsmetadata.md b/docs/models/operations/getsessionsmetadata.md index 87b5816..48ac726 100644 --- a/docs/models/operations/getsessionsmetadata.md +++ b/docs/models/operations/getsessionsmetadata.md @@ -3,42 +3,42 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705543312 | -| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | -| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `GrandparentGUID` | **string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | -| `GrandparentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | -| `GrandparentRatingKey` | **string* | :heavy_minus_sign: | N/A | 39904 | -| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | -| `GrandparentTitle` | **string* | :heavy_minus_sign: | N/A | Green Day | -| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | -| `Index` | **int* | :heavy_minus_sign: | N/A | 1 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | -| `LibrarySectionID` | **string* | :heavy_minus_sign: | N/A | 3 | -| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/3 | -| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Music | -| `MusicAnalysisVersion` | **string* | :heavy_minus_sign: | N/A | 1 | -| `ParentGUID` | **string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | -| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | -| `ParentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | -| `ParentRatingKey` | **string* | :heavy_minus_sign: | N/A | 67084 | -| `ParentStudio` | **string* | :heavy_minus_sign: | N/A | Reprise Records | -| `ParentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Saviors | -| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2024 | -| `RatingCount` | **int* | :heavy_minus_sign: | N/A | 45885 | -| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 67085 | -| `SessionKey` | **string* | :heavy_minus_sign: | N/A | 203 | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `Title` | **string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | -| `TitleSort` | **string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | -| `Type` | **string* | :heavy_minus_sign: | N/A | track | -| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705543314 | -| `ViewOffset` | **int* | :heavy_minus_sign: | N/A | 1000 | -| `Media` | [][operations.GetSessionsMedia](../../models/operations/getsessionsmedia.md) | :heavy_minus_sign: | N/A | [
{
"audioChannels": 2,
"audioCodec": "flac",
"bitrate": 1014,
"container": "flac",
"duration": 186240,
"id": "130355",
"selected": true,
"Part": [
{
"container": "flac",
"duration": 186240,
"file": "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac",
"hasThumbnail": "1",
"id": "130625",
"key": "/library/parts/130625/1705543268/file.flac",
"size": 23644000,
"decision": "directplay",
"selected": true,
"Stream": [
{
"albumGain": "-12.94",
"albumPeak": "1.000000",
"albumRange": "4.751014",
"audioChannelLayout": "stereo",
"bitDepth": 16,
"bitrate": 1014,
"channels": 2,
"codec": "flac",
"displayTitle": "FLAC (Stereo)",
"extendedDisplayTitle": "FLAC (Stereo)",
"gain": "-12.94",
"id": "352487",
"index": 0,
"loudness": "-5.94",
"lra": "1.74",
"peak": "1.000000",
"samplingRate": 44100,
"selected": true,
"streamType": 2,
"location": "direct"
}
]
}
]
}
] | -| `User` | [*operations.User](../../models/operations/user.md) | :heavy_minus_sign: | N/A | | -| `Player` | [*operations.Player](../../models/operations/player.md) | :heavy_minus_sign: | N/A | | -| `Session` | [*operations.Session](../../models/operations/session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1705543312 | +| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | +| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `GrandparentGUID` | **string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | +| `GrandparentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | +| `GrandparentRatingKey` | **string* | :heavy_minus_sign: | N/A | 39904 | +| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | +| `GrandparentTitle` | **string* | :heavy_minus_sign: | N/A | Green Day | +| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | +| `Index` | **int* | :heavy_minus_sign: | N/A | 1 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | +| `LibrarySectionID` | **string* | :heavy_minus_sign: | N/A | 3 | +| `LibrarySectionKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/3 | +| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Music | +| `MusicAnalysisVersion` | **string* | :heavy_minus_sign: | N/A | 1 | +| `ParentGUID` | **string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | +| `ParentIndex` | **int* | :heavy_minus_sign: | N/A | 1 | +| `ParentKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | +| `ParentRatingKey` | **string* | :heavy_minus_sign: | N/A | 67084 | +| `ParentStudio` | **string* | :heavy_minus_sign: | N/A | Reprise Records | +| `ParentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `ParentTitle` | **string* | :heavy_minus_sign: | N/A | Saviors | +| `ParentYear` | **int* | :heavy_minus_sign: | N/A | 2024 | +| `RatingCount` | **int* | :heavy_minus_sign: | N/A | 45885 | +| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 67085 | +| `SessionKey` | **string* | :heavy_minus_sign: | N/A | 203 | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `Title` | **string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | +| `TitleSort` | **string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | +| `Type` | **string* | :heavy_minus_sign: | N/A | track | +| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1705543314 | +| `ViewOffset` | **int* | :heavy_minus_sign: | N/A | 1000 | +| `Media` | [][operations.GetSessionsMedia](../../models/operations/getsessionsmedia.md) | :heavy_minus_sign: | N/A | | +| `User` | [*operations.User](../../models/operations/user.md) | :heavy_minus_sign: | N/A | | +| `Player` | [*operations.Player](../../models/operations/player.md) | :heavy_minus_sign: | N/A | | +| `Session` | [*operations.Session](../../models/operations/session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getsessionspart.md b/docs/models/operations/getsessionspart.md index 34bf0a2..8f7e15d 100644 --- a/docs/models/operations/getsessionspart.md +++ b/docs/models/operations/getsessionspart.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Container` | **string* | :heavy_minus_sign: | N/A | flac | -| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | -| `File` | **string* | :heavy_minus_sign: | N/A | /music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac | -| `HasThumbnail` | **string* | :heavy_minus_sign: | N/A | 1 | -| `ID` | **string* | :heavy_minus_sign: | N/A | 130625 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /library/parts/130625/1705543268/file.flac | -| `Size` | **int* | :heavy_minus_sign: | N/A | 23644000 | -| `Decision` | **string* | :heavy_minus_sign: | N/A | directplay | -| `Selected` | **bool* | :heavy_minus_sign: | N/A | true | -| `Stream` | [][operations.GetSessionsStream](../../models/operations/getsessionsstream.md) | :heavy_minus_sign: | N/A | [
{
"albumGain": "-12.94",
"albumPeak": "1.000000",
"albumRange": "4.751014",
"audioChannelLayout": "stereo",
"bitDepth": 16,
"bitrate": 1014,
"channels": 2,
"codec": "flac",
"displayTitle": "FLAC (Stereo)",
"extendedDisplayTitle": "FLAC (Stereo)",
"gain": "-12.94",
"id": "352487",
"index": 0,
"loudness": "-5.94",
"lra": "1.74",
"peak": "1.000000",
"samplingRate": 44100,
"selected": true,
"streamType": 2,
"location": "direct"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `Container` | **string* | :heavy_minus_sign: | N/A | flac | +| `Duration` | **int* | :heavy_minus_sign: | N/A | 186240 | +| `File` | **string* | :heavy_minus_sign: | N/A | /music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac | +| `HasThumbnail` | **string* | :heavy_minus_sign: | N/A | 1 | +| `ID` | **string* | :heavy_minus_sign: | N/A | 130625 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /library/parts/130625/1705543268/file.flac | +| `Size` | **int* | :heavy_minus_sign: | N/A | 23644000 | +| `Decision` | **string* | :heavy_minus_sign: | N/A | directplay | +| `Selected` | **bool* | :heavy_minus_sign: | N/A | true | +| `Stream` | [][operations.GetSessionsStream](../../models/operations/getsessionsstream.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getstatisticsmediacontainer.md b/docs/models/operations/getstatisticsmediacontainer.md index 5c36ad5..4fcefb5 100644 --- a/docs/models/operations/getstatisticsmediacontainer.md +++ b/docs/models/operations/getstatisticsmediacontainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 5497 | -| `Device` | [][operations.GetStatisticsDevice](../../models/operations/getstatisticsdevice.md) | :heavy_minus_sign: | N/A | [
{
"id": 208,
"name": "Roku Express",
"platform": "Roku",
"clientIdentifier": "793095d235660625108ef785cc7646e9",
"createdAt": 1706470556
}
] | -| `Account` | [][operations.Account](../../models/operations/account.md) | :heavy_minus_sign: | N/A | [
{
"id": 238960586,
"key": "/accounts/238960586",
"name": "Diane",
"defaultAudioLanguage": "en",
"autoSelectAudio": true,
"defaultSubtitleLanguage": "en",
"subtitleMode": 1,
"thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"
}
] | -| `StatisticsMedia` | [][operations.StatisticsMedia](../../models/operations/statisticsmedia.md) | :heavy_minus_sign: | N/A | [
{
"accountID": 1,
"deviceID": 13,
"timespan": 4,
"at": 1707141600,
"metadataType": 4,
"count": 1,
"duration": 1555
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 5497 | +| `Device` | [][operations.GetStatisticsDevice](../../models/operations/getstatisticsdevice.md) | :heavy_minus_sign: | N/A | | +| `Account` | [][operations.Account](../../models/operations/account.md) | :heavy_minus_sign: | N/A | | +| `StatisticsMedia` | [][operations.StatisticsMedia](../../models/operations/statisticsmedia.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/hub.md b/docs/models/operations/hub.md index 1a64234..e5762b6 100644 --- a/docs/models/operations/hub.md +++ b/docs/models/operations/hub.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `HubKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | -| `Key` | **string* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | -| `Title` | **string* | :heavy_minus_sign: | N/A | Recent Playlists | -| `Type` | **string* | :heavy_minus_sign: | N/A | playlist | -| `HubIdentifier` | **string* | :heavy_minus_sign: | N/A | home.playlists | -| `Context` | **string* | :heavy_minus_sign: | N/A | hub.home.playlists | -| `Size` | **int* | :heavy_minus_sign: | N/A | 6 | -| `More` | **bool* | :heavy_minus_sign: | N/A | true | -| `Style` | **string* | :heavy_minus_sign: | N/A | shelf | -| `Promoted` | **bool* | :heavy_minus_sign: | N/A | true | -| `Metadata` | [][operations.GetGlobalHubsMetadata](../../models/operations/getglobalhubsmetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "57070",
"key": "/playlists/57070/items",
"guid": "com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c",
"type": "playlist",
"title": "November Movie Day",
"titleSort": "Tracks",
"summary": "",
"smart": false,
"playlistType": "video",
"composite": "/playlists/57070/composite/1668787730",
"icon": "playlist://image.smart",
"viewCount": 2,
"lastViewedAt": 1668787732,
"duration": 16873000,
"leafCount": 3,
"addedAt": 1668779618,
"updatedAt": 1668787730
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `HubKey` | **string* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | +| `Key` | **string* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | +| `Title` | **string* | :heavy_minus_sign: | N/A | Recent Playlists | +| `Type` | **string* | :heavy_minus_sign: | N/A | playlist | +| `HubIdentifier` | **string* | :heavy_minus_sign: | N/A | home.playlists | +| `Context` | **string* | :heavy_minus_sign: | N/A | hub.home.playlists | +| `Size` | **int* | :heavy_minus_sign: | N/A | 6 | +| `More` | **bool* | :heavy_minus_sign: | N/A | true | +| `Style` | **string* | :heavy_minus_sign: | N/A | shelf | +| `Promoted` | **bool* | :heavy_minus_sign: | N/A | true | +| `Metadata` | [][operations.GetGlobalHubsMetadata](../../models/operations/getglobalhubsmetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/searchlibrarymediacontainer.md b/docs/models/operations/searchlibrarymediacontainer.md index 470d9af..8b533c4 100644 --- a/docs/models/operations/searchlibrarymediacontainer.md +++ b/docs/models/operations/searchlibrarymediacontainer.md @@ -3,18 +3,18 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Size` | **int* | :heavy_minus_sign: | N/A | 2 | -| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | false | -| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | -| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1698860922 | -| `Nocache` | **bool* | :heavy_minus_sign: | N/A | true | -| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/show.png | -| `Title1` | **string* | :heavy_minus_sign: | N/A | TV Shows | -| `Title2` | **string* | :heavy_minus_sign: | N/A | Search for '' | -| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | season | -| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65593 | -| `Metadata` | [][operations.SearchLibraryMetadata](../../models/operations/searchlibrarymetadata.md) | :heavy_minus_sign: | N/A | [
{
"ratingKey": "2",
"key": "/library/metadata/2/children",
"parentRatingKey": "1",
"guid": "plex://season/602e67e766dfdb002c0a1b5b",
"parentGuid": "plex://show/5d9c086c7d06d9001ffd27aa",
"parentStudio": "Mutant Enemy Productions",
"type": "season",
"title": "Season 1",
"parentKey": "/library/metadata/1",
"parentTitle": "Firefly",
"summary": "Captain Malcolm 'Mal' Reynolds is a former galactic war veteran who is the captain of the transport ship \"Serenity\". Mal and his crew, ensign Zoe Alleyne Washburne; Zoe's husband, pilot Hoban 'Wash' Washburne; muscular mercenary Jayne Cobb; young mechanic Kaylee Frye; former Alliance medical officer Simon Tam; his disturbed teenage sister River (both on the run from the interplanetary government \"The Alliance\"); the beautiful courtesan Inara Serra; and preacher Shepherd Book do any jobs, legal or illegal, they can find as the Serenity crew travels across the outskirts of outer space.",
"index": 1,
"parentIndex": 1,
"parentYear": 2002,
"thumb": "/library/metadata/2/thumb/1705636920",
"art": "/library/metadata/1/art/1705636920",
"parentThumb": "/library/metadata/1/thumb/1705636920",
"parentTheme": "/library/metadata/1/theme/1705636920",
"addedAt": 1705636916,
"updatedAt": 1705636920
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `Size` | **int* | :heavy_minus_sign: | N/A | 2 | +| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | false | +| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | +| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1698860922 | +| `Nocache` | **bool* | :heavy_minus_sign: | N/A | true | +| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/show.png | +| `Title1` | **string* | :heavy_minus_sign: | N/A | TV Shows | +| `Title2` | **string* | :heavy_minus_sign: | N/A | Search for '' | +| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | season | +| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65593 | +| `Metadata` | [][operations.SearchLibraryMetadata](../../models/operations/searchlibrarymetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/tag.md b/docs/models/operations/tag.md new file mode 100644 index 0000000..b85428b --- /dev/null +++ b/docs/models/operations/tag.md @@ -0,0 +1,28 @@ +# Tag + +A key representing a specific tag within the section. + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `TagAll` | all | +| `TagUnwatched` | unwatched | +| `TagNewest` | newest | +| `TagRecentlyAdded` | recentlyAdded | +| `TagRecentlyViewed` | recentlyViewed | +| `TagOnDeck` | onDeck | +| `TagCollection` | collection | +| `TagEdition` | edition | +| `TagGenre` | genre | +| `TagYear` | year | +| `TagDecade` | decade | +| `TagDirector` | director | +| `TagActor` | actor | +| `TagCountry` | country | +| `TagContentRating` | contentRating | +| `TagRating` | rating | +| `TagResolution` | resolution | +| `TagFirstCharacter` | firstCharacter | +| `TagFolder` | folder | \ No newline at end of file diff --git a/docs/models/sdkerrors/getlibraryitemserrors.md b/docs/models/sdkerrors/getlibraryitemserrors.md new file mode 100644 index 0000000..21428b6 --- /dev/null +++ b/docs/models/sdkerrors/getlibraryitemserrors.md @@ -0,0 +1,10 @@ +# GetLibraryItemsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | **float64* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | **string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | **float64* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/sdkerrors/getlibraryitemsresponsebody.md b/docs/models/sdkerrors/getlibraryitemsresponsebody.md new file mode 100644 index 0000000..292d36b --- /dev/null +++ b/docs/models/sdkerrors/getlibraryitemsresponsebody.md @@ -0,0 +1,11 @@ +# GetLibraryItemsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `Errors` | [][sdkerrors.GetLibraryItemsErrors](../../models/sdkerrors/getlibraryitemserrors.md) | :heavy_minus_sign: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/sdkerrors/searchlibraryerrors.md b/docs/models/sdkerrors/searchlibraryerrors.md new file mode 100644 index 0000000..af08623 --- /dev/null +++ b/docs/models/sdkerrors/searchlibraryerrors.md @@ -0,0 +1,10 @@ +# SearchLibraryErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `Code` | **float64* | :heavy_minus_sign: | N/A | 1001 | +| `Message` | **string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `Status` | **float64* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/sdkerrors/searchlibraryresponsebody.md b/docs/models/sdkerrors/searchlibraryresponsebody.md new file mode 100644 index 0000000..06dfe71 --- /dev/null +++ b/docs/models/sdkerrors/searchlibraryresponsebody.md @@ -0,0 +1,11 @@ +# SearchLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `Errors` | [][sdkerrors.SearchLibraryErrors](../../models/sdkerrors/searchlibraryerrors.md) | :heavy_minus_sign: | N/A | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index c52dac2..ede1c04 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -27,7 +27,6 @@ Get Server Activities package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -39,8 +38,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Activities.GetServerActivities(ctx) if err != nil { @@ -77,7 +74,6 @@ Cancel Server Activities package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -88,9 +84,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var activityUUID string = "25b71ed5-0f9d-461c-baa7-d404e9e10d3e" - ctx := context.Background() res, err := s.Activities.CancelServerActivities(ctx, activityUUID) if err != nil { diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index d8e5adb..ded362b 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -22,7 +22,6 @@ This endpoint provides the caller with a temporary token with the same access le package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -34,11 +33,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var type_ operations.GetTransientTokenQueryParamType = operations.GetTransientTokenQueryParamTypeDelegation var scope operations.Scope = operations.ScopeAll - ctx := context.Background() res, err := s.Authentication.GetTransientToken(ctx, type_, scope) if err != nil { @@ -79,7 +76,6 @@ Note: requires Plex Media Server >= 1.15.4. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -90,9 +86,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var source string = "server://client-identifier" - ctx := context.Background() res, err := s.Authentication.GetSourceConnectionInformation(ctx, source) if err != nil { diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 6ccd4db..075caee 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -24,7 +24,6 @@ Returns a list of butler tasks package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -36,8 +35,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Butler.GetButlerTasks(ctx) if err != nil { @@ -79,7 +76,6 @@ This endpoint will attempt to start all Butler tasks that are enabled in the set package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -91,8 +87,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Butler.StartAllTasks(ctx) if err != nil { @@ -130,7 +124,6 @@ This endpoint will stop all currently running tasks and remove any scheduled tas package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -142,8 +135,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Butler.StopAllTasks(ctx) if err != nil { @@ -185,7 +176,6 @@ This endpoint will attempt to start a single Butler task that is enabled in the package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -197,9 +187,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var taskName operations.TaskName = operations.TaskNameCleanOldBundles - ctx := context.Background() res, err := s.Butler.StartTask(ctx, taskName) if err != nil { @@ -238,7 +226,6 @@ This endpoint will stop a currently running task by name, or remove it from the package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -250,9 +237,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var taskName operations.PathParamTaskName = operations.PathParamTaskNameBackupDatabase - ctx := context.Background() res, err := s.Butler.StopTask(ctx, taskName) if err != nil { diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 10b4811..7eff3b8 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -21,7 +21,6 @@ Get Global Hubs filtered by the parameters provided. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -33,11 +32,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var count *float64 = plexgo.Float64(1262.49) var onlyTransient *operations.OnlyTransient = operations.OnlyTransientOne.ToPointer() - ctx := context.Background() res, err := s.Hubs.GetGlobalHubs(ctx, count, onlyTransient) if err != nil { @@ -77,7 +74,6 @@ This endpoint will return a list of library specific hubs package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -89,13 +85,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var sectionID float64 = 6728.76 var count *float64 = plexgo.Float64(9010.22) var onlyTransient *operations.QueryParamOnlyTransient = operations.QueryParamOnlyTransientZero.ToPointer() - ctx := context.Background() res, err := s.Hubs.GetLibraryHubs(ctx, sectionID, count, onlyTransient) if err != nil { diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 1abf1c0..f02e2e8 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -13,6 +13,7 @@ API Calls interacting with Plex Media Server Libraries * [GetLibraries](#getlibraries) - Get All Libraries * [GetLibrary](#getlibrary) - Get Library Details * [DeleteLibrary](#deletelibrary) - Delete Library Section +* [GetLibraryItems](#getlibraryitems) - Get Library Items * [RefreshLibrary](#refreshlibrary) - Refresh Library * [SearchLibrary](#searchlibrary) - Search Library * [GetMetadata](#getmetadata) - Get Items Metadata @@ -29,7 +30,6 @@ This resource returns hash values for local files package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -40,11 +40,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var url_ string = "file://C:\Image.png&type=13" var type_ *float64 = plexgo.Float64(4462.17) - ctx := context.Background() res, err := s.Library.GetFileHash(ctx, url_, type_) if err != nil { @@ -84,7 +82,6 @@ This endpoint will return the recently added content. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -96,8 +93,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Library.GetRecentlyAdded(ctx) if err != nil { @@ -140,7 +135,6 @@ This allows a client to provide a rich interface around the media (e.g. allow so package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -152,8 +146,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Library.GetLibraries(ctx) if err != nil { @@ -229,7 +221,6 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -241,11 +232,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var sectionID float64 = 1000 var includeDetails *operations.IncludeDetails = operations.IncludeDetailsZero.ToPointer() - ctx := context.Background() res, err := s.Library.GetLibrary(ctx, sectionID, includeDetails) if err != nil { @@ -284,7 +273,6 @@ Delate a library using a specific section package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -295,9 +283,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var sectionID float64 = 1000 - ctx := context.Background() res, err := s.Library.DeleteLibrary(ctx, sectionID) if err != nil { @@ -325,6 +311,78 @@ func main() { | sdkerrors.DeleteLibraryResponseBody | 401 | application/json | | sdkerrors.SDKError | 4xx-5xx | */* | +## GetLibraryItems + +Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: +- `all`: All items in the section. +- `unwatched`: Items that have not been played. +- `newest`: Items that are recently released. +- `recentlyAdded`: Items that are recently added to the library. +- `recentlyViewed`: Items that were recently viewed. +- `onDeck`: Items to continue watching. +- `collection`: Items categorized by collection. +- `edition`: Items categorized by edition. +- `genre`: Items categorized by genre. +- `year`: Items categorized by year of release. +- `decade`: Items categorized by decade. +- `director`: Items categorized by director. +- `actor`: Items categorized by starring actor. +- `country`: Items categorized by country of origin. +- `contentRating`: Items categorized by content rating. +- `rating`: Items categorized by rating. +- `resolution`: Items categorized by resolution. +- `firstCharacter`: Items categorized by the first letter. +- `folder`: Items categorized by folder. + + +### Example Usage + +```go +package main + +import( + "github.com/LukeHagar/plexgo" + "github.com/LukeHagar/plexgo/models/operations" + "context" + "log" +) + +func main() { + s := plexgo.New( + plexgo.WithSecurity(""), + plexgo.WithXPlexClientIdentifier("Postman"), + ) + var sectionID int64 = 1 + + var tag operations.Tag = operations.TagGenre + ctx := context.Background() + res, err := s.Library.GetLibraryItems(ctx, sectionID, tag) + if err != nil { + log.Fatal(err) + } + if res.Object != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `sectionID` | *int64* | :heavy_check_mark: | the Id of the library to query | 1 | +| `tag` | [operations.Tag](../../models/operations/tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | + + +### Response + +**[*operations.GetLibraryItemsResponse](../../models/operations/getlibraryitemsresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| sdkerrors.GetLibraryItemsResponseBody | 401 | application/json | +| sdkerrors.SDKError | 4xx-5xx | */* | + ## RefreshLibrary This endpoint Refreshes the library. @@ -336,7 +394,6 @@ This endpoint Refreshes the library. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -347,9 +404,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var sectionID float64 = 934.16 - ctx := context.Background() res, err := s.Library.RefreshLibrary(ctx, sectionID) if err != nil { @@ -405,7 +460,6 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -417,11 +471,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var sectionID int64 = 933505 var type_ operations.Type = operations.TypeFour - ctx := context.Background() res, err := s.Library.SearchLibrary(ctx, sectionID, type_) if err != nil { @@ -445,9 +497,10 @@ func main() { ### Response **[*operations.SearchLibraryResponse](../../models/operations/searchlibraryresponse.md), error** -| Error Object | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| sdkerrors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.SearchLibraryResponseBody | 401 | application/json | +| sdkerrors.SDKError | 4xx-5xx | */* | ## GetMetadata @@ -460,7 +513,6 @@ This endpoint will return the metadata of a library item specified with the rati package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -471,9 +523,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var ratingKey float64 = 8382.31 - ctx := context.Background() res, err := s.Library.GetMetadata(ctx, ratingKey) if err != nil { @@ -512,7 +562,6 @@ This endpoint will return the children of of a library item specified with the r package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -523,9 +572,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var ratingKey float64 = 1539.14 - ctx := context.Background() res, err := s.Library.GetMetadataChildren(ctx, ratingKey) if err != nil { @@ -564,7 +611,6 @@ This endpoint will return the on deck content. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -576,8 +622,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Library.GetOnDeck(ctx) if err != nil { diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index db2bccd..1a65e53 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -23,7 +23,6 @@ This endpoint will write a single-line log message, including a level and source package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -35,13 +34,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var level operations.Level = operations.LevelThree var message string = "Test log message" var source string = "Postman" - ctx := context.Background() res, err := s.Log.LogLine(ctx, level, message, source) if err != nil { @@ -102,7 +99,6 @@ Ensure each parameter is properly URL-encoded to avoid interpretation issues. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -113,11 +109,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var request string = "level=4&message=Test%20message%201&source=postman level=3&message=Test%20message%202&source=postman level=1&message=Test%20message%203&source=postman" - ctx := context.Background() res, err := s.Log.LogMultiLine(ctx, request) if err != nil { @@ -156,7 +150,6 @@ This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -168,8 +161,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Log.EnablePaperTrail(ctx) if err != nil { diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index d5585df..9c9dfdc 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -22,7 +22,6 @@ This will mark the provided media key as Played. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -33,9 +32,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var key float64 = 59398 - ctx := context.Background() res, err := s.Media.MarkPlayed(ctx, key) if err != nil { @@ -73,7 +70,6 @@ This will mark the provided media key as Unplayed. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -84,9 +80,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var key float64 = 59398 - ctx := context.Background() res, err := s.Media.MarkUnplayed(ctx, key) if err != nil { @@ -125,7 +119,6 @@ This API command can be used to update the play progress of a media item. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -136,13 +129,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var key string = "" var time float64 = 90000 var state string = "played" - ctx := context.Background() res, err := s.Media.UpdatePlayProgress(ctx, key, time, state) if err != nil { diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 5161ec4..fa53296 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -34,7 +34,6 @@ Create a new playlist. By default the playlist is blank. To create a playlist al package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -46,14 +45,12 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - request := operations.CreatePlaylistRequest{ Title: "", Type: operations.QueryParamTypePhoto, Smart: operations.SmartOne, URI: "https://inborn-brochure.biz", } - ctx := context.Background() res, err := s.Playlists.CreatePlaylist(ctx, request) if err != nil { @@ -91,7 +88,6 @@ Get All Playlists given the specified filters. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -103,11 +99,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistType *operations.PlaylistType = operations.PlaylistTypeAudio.ToPointer() var smart *operations.QueryParamSmart = operations.QueryParamSmartZero.ToPointer() - ctx := context.Background() res, err := s.Playlists.GetPlaylists(ctx, playlistType, smart) if err != nil { @@ -148,7 +142,6 @@ Smart playlist details contain the `content` attribute. This is the content URI package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -159,9 +152,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistID float64 = 4109.48 - ctx := context.Background() res, err := s.Playlists.GetPlaylist(ctx, playlistID) if err != nil { @@ -200,7 +191,6 @@ This endpoint will delete a playlist package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -211,9 +201,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistID float64 = 216.22 - ctx := context.Background() res, err := s.Playlists.DeletePlaylist(ctx, playlistID) if err != nil { @@ -252,7 +240,6 @@ From PMS version 1.9.1 clients can also edit playlist metadata using this endpoi package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -263,13 +250,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistID float64 = 3915 var title *string = plexgo.String("") var summary *string = plexgo.String("") - ctx := context.Background() res, err := s.Playlists.UpdatePlaylist(ctx, playlistID, title, summary) if err != nil { @@ -313,7 +298,6 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -324,11 +308,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistID float64 = 5004.46 var type_ float64 = 9403.59 - ctx := context.Background() res, err := s.Playlists.GetPlaylistContents(ctx, playlistID, type_) if err != nil { @@ -368,7 +350,6 @@ Clears a playlist, only works with dumb playlists. Returns the playlist. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -379,9 +360,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistID float64 = 1893.18 - ctx := context.Background() res, err := s.Playlists.ClearPlaylistContents(ctx, playlistID) if err != nil { @@ -421,7 +400,6 @@ With a smart playlist, passing a new `uri` parameter replaces the rules for the package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -432,13 +410,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var playlistID float64 = 8502.01 var uri string = "server://12345/com.plexapp.plugins.library/library/metadata/1" var playQueueID *float64 = plexgo.Float64(123) - ctx := context.Background() res, err := s.Playlists.AddPlaylistContents(ctx, playlistID, uri, playQueueID) if err != nil { @@ -479,7 +455,6 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -491,11 +466,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var path string = "/home/barkley/playlist.m3u" var force operations.Force = operations.ForceZero - ctx := context.Background() res, err := s.Playlists.UploadPlaylist(ctx, path, force) if err != nil { diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 9f1b425..6026e74 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -30,11 +30,9 @@ func main() { s := plexgo.New( plexgo.WithXPlexClientIdentifier("Postman"), ) - var strong *bool = plexgo.Bool(false) var xPlexClientIdentifier *string = plexgo.String("Postman") - ctx := context.Background() res, err := s.Plex.GetPin(ctx, strong, xPlexClientIdentifier) if err != nil { @@ -83,11 +81,9 @@ func main() { s := plexgo.New( plexgo.WithXPlexClientIdentifier("Postman"), ) - var pinID string = "" var xPlexClientIdentifier *string = plexgo.String("Postman") - ctx := context.Background() res, err := s.Plex.GetToken(ctx, pinID, xPlexClientIdentifier) if err != nil { diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index f651502..0805889 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -34,7 +34,6 @@ This request is intended to be very fast, and called as the user types. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -45,13 +44,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var query string = "dylan" var sectionID *float64 = plexgo.Float64(1516.53) var limit *float64 = plexgo.Float64(5) - ctx := context.Background() res, err := s.Search.PerformSearch(ctx, query, sectionID, limit) if err != nil { @@ -95,7 +92,6 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -106,13 +102,11 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var query string = "dead+poop" var sectionID *float64 = plexgo.Float64(4094.8) var limit *float64 = plexgo.Float64(5) - ctx := context.Background() res, err := s.Search.PerformVoiceSearch(ctx, query, sectionID, limit) if err != nil { @@ -152,7 +146,6 @@ This will search the database for the string provided. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -163,9 +156,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var query string = "110" - ctx := context.Background() res, err := s.Search.GetSearchResults(ctx, query) if err != nil { diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 134d281..cc60aa4 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -27,7 +27,6 @@ Server Capabilities package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -39,8 +38,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetServerCapabilities(ctx) if err != nil { @@ -77,7 +74,6 @@ Get Server Preferences package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -89,8 +85,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetServerPreferences(ctx) if err != nil { @@ -127,7 +121,6 @@ Get Available Clients package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -139,8 +132,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetAvailableClients(ctx) if err != nil { @@ -177,7 +168,6 @@ Get Devices package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -189,8 +179,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetDevices(ctx) if err != nil { @@ -227,7 +215,6 @@ Get Server Identity package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -239,8 +226,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetServerIdentity(ctx) if err != nil { @@ -277,7 +262,6 @@ Returns MyPlex Account Information package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -289,8 +273,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetMyPlexAccount(ctx) if err != nil { @@ -328,7 +310,6 @@ Plex's Photo transcoder is used throughout the service to serve images at specif package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -340,7 +321,6 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - request := operations.GetResizedPhotoRequest{ Width: 110, Height: 165, @@ -350,7 +330,6 @@ func main() { Upscale: operations.UpscaleZero, URL: "/library/metadata/49564/thumb/1654258204", } - ctx := context.Background() res, err := s.Server.GetResizedPhoto(ctx, request) if err != nil { @@ -388,7 +367,6 @@ Get Server List package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -400,8 +378,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Server.GetServerList(ctx) if err != nil { diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 1893e25..c889aa5 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -23,7 +23,6 @@ This will retrieve the "Now Playing" Information of the PMS. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -35,8 +34,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Sessions.GetSessions(ctx) if err != nil { @@ -73,7 +70,6 @@ This will Retrieve a listing of all history views. package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -85,8 +81,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Sessions.GetSessionHistory(ctx) if err != nil { @@ -123,7 +117,6 @@ Get Transcode Sessions package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -135,8 +128,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Sessions.GetTranscodeSessions(ctx) if err != nil { @@ -173,7 +164,6 @@ Stop a Transcode Session package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -184,9 +174,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var sessionKey string = "zz7llzqlx8w9vnrsbnwhbmep" - ctx := context.Background() res, err := s.Sessions.StopTranscodeSession(ctx, sessionKey) if err != nil { diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index dad5ac6..df77e61 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -20,7 +20,6 @@ This will return the media statistics for the server package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -31,9 +30,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var timespan *int64 = plexgo.Int64(4) - ctx := context.Background() res, err := s.Statistics.GetStatistics(ctx, timespan) if err != nil { diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index ad2c3f6..87e22e2 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -23,7 +23,6 @@ Querying status of updates package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "context" "log" @@ -35,8 +34,6 @@ func main() { plexgo.WithXPlexClientIdentifier("Postman"), ) - - ctx := context.Background() res, err := s.Updater.GetUpdateStatus(ctx) if err != nil { @@ -73,7 +70,6 @@ Checking for updates package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -85,9 +81,7 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var download *operations.Download = operations.DownloadOne.ToPointer() - ctx := context.Background() res, err := s.Updater.CheckForUpdates(ctx, download) if err != nil { @@ -126,7 +120,6 @@ Note that these two parameters are effectively mutually exclusive. The `tonight` package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -138,11 +131,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - var tonight *operations.Tonight = operations.TonightOne.ToPointer() var skip *operations.Skip = operations.SkipOne.ToPointer() - ctx := context.Background() res, err := s.Updater.ApplyUpdates(ctx, tonight, skip) if err != nil { diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index 601f32b..0821981 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -21,7 +21,6 @@ Get the timeline for a media item package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -33,7 +32,6 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - request := operations.GetTimelineRequest{ RatingKey: 23409, Key: "/library/metadata/23409", @@ -46,7 +44,6 @@ func main() { PlayBackTime: 2000, Row: 1, } - ctx := context.Background() res, err := s.Video.GetTimeline(ctx, request) if err != nil { @@ -84,7 +81,6 @@ Begin a Universal Transcode Session package main import( - "github.com/LukeHagar/plexgo/models/components" "github.com/LukeHagar/plexgo" "github.com/LukeHagar/plexgo/models/operations" "context" @@ -96,7 +92,6 @@ func main() { plexgo.WithSecurity(""), plexgo.WithXPlexClientIdentifier("Postman"), ) - request := operations.StartUniversalTranscodeRequest{ HasMDE: 1, Path: "/library/metadata/23409", @@ -115,7 +110,6 @@ func main() { AddDebugOverlay: plexgo.Float64(0), AutoAdjustQuality: plexgo.Float64(0), } - ctx := context.Background() res, err := s.Video.StartUniversalTranscode(ctx, request) if err != nil { diff --git a/hubs.go b/hubs.go index d7c5879..9ead6b9 100644 --- a/hubs.go +++ b/hubs.go @@ -141,6 +141,7 @@ func (s *Hubs) GetGlobalHubs(ctx context.Context, count *float64, onlyTransient } return res, nil + } // GetLibraryHubs - Get library specific hubs @@ -259,4 +260,5 @@ func (s *Hubs) GetLibraryHubs(ctx context.Context, sectionID float64, count *flo } return res, nil + } diff --git a/internal/utils/headers.go b/internal/utils/headers.go index 0249876..107d210 100644 --- a/internal/utils/headers.go +++ b/internal/utils/headers.go @@ -18,8 +18,7 @@ func PopulateHeaders(_ context.Context, req *http.Request, headers interface{}, } func populateHeaders(headers interface{}, globals interface{}, reqHeaders http.Header, skipFields []string) []string { - headerParamsStructType := reflect.TypeOf(headers) - headerParamsValType := reflect.ValueOf(headers) + headerParamsStructType, headerParamsValType := dereferencePointers(reflect.TypeOf(headers), reflect.ValueOf(headers)) globalsAlreadyPopulated := []string{} diff --git a/internal/utils/pathparams.go b/internal/utils/pathparams.go index 73e4ad9..1eccb02 100644 --- a/internal/utils/pathparams.go +++ b/internal/utils/pathparams.go @@ -38,8 +38,7 @@ func GenerateURL(_ context.Context, serverURL, path string, pathParams interface } func populateParsedParameters(pathParams interface{}, globals interface{}, parsedParameters map[string]string, skipFields []string) ([]string, error) { - pathParamsStructType := reflect.TypeOf(pathParams) - pathParamsValType := reflect.ValueOf(pathParams) + pathParamsStructType, pathParamsValType := dereferencePointers(reflect.TypeOf(pathParams), reflect.ValueOf(pathParams)) globalsAlreadyPopulated := []string{} diff --git a/internal/utils/queryparams.go b/internal/utils/queryparams.go index 8d1bf47..e2c5b9d 100644 --- a/internal/utils/queryparams.go +++ b/internal/utils/queryparams.go @@ -32,8 +32,7 @@ func PopulateQueryParams(_ context.Context, req *http.Request, queryParams inter } func populateQueryParams(queryParams interface{}, globals interface{}, values url.Values, skipFields []string) ([]string, error) { - queryParamsStructType := reflect.TypeOf(queryParams) - queryParamsValType := reflect.ValueOf(queryParams) + queryParamsStructType, queryParamsValType := dereferencePointers(reflect.TypeOf(queryParams), reflect.ValueOf(queryParams)) globalsAlreadyPopulated := []string{} diff --git a/internal/utils/security.go b/internal/utils/security.go index 8023225..f7abb69 100644 --- a/internal/utils/security.go +++ b/internal/utils/security.go @@ -196,6 +196,10 @@ func handleBasicAuthScheme(headers map[string]string, scheme interface{}) { fieldType := schemeStructType.Field(i) valType := schemeValType.Field(i) + if fieldType.Type.Kind() == reflect.Ptr { + valType = valType.Elem() + } + secTag := parseSecurityTag(fieldType) if secTag == nil || secTag.Name == "" { continue diff --git a/internal/utils/utils.go b/internal/utils/utils.go index a35dc9b..eab3682 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -3,6 +3,7 @@ package utils import ( + "context" "fmt" "io" "math/big" @@ -87,6 +88,12 @@ func MatchStatusCodes(expectedCodes []string, statusCode int) bool { return false } +func AsSecuritySource(security interface{}) func(context.Context) (interface{}, error) { + return func(context.Context) (interface{}, error) { + return security, nil + } +} + func parseStructTag(tagKey string, field reflect.StructField) map[string]string { tag := field.Tag.Get(tagKey) if tag == "" { diff --git a/library.go b/library.go index 247c85f..26bff36 100644 --- a/library.go +++ b/library.go @@ -130,6 +130,7 @@ func (s *Library) GetFileHash(ctx context.Context, url_ string, type_ *float64) } return res, nil + } // GetRecentlyAdded - Get Recently Added @@ -238,6 +239,7 @@ func (s *Library) GetRecentlyAdded(ctx context.Context) (*operations.GetRecently } return res, nil + } // GetLibraries - Get All Libraries @@ -351,6 +353,7 @@ func (s *Library) GetLibraries(ctx context.Context) (*operations.GetLibrariesRes } return res, nil + } // GetLibrary - Get Library Details @@ -506,6 +509,7 @@ func (s *Library) GetLibrary(ctx context.Context, sectionID float64, includeDeta } return res, nil + } // DeleteLibrary - Delete Library Section @@ -607,6 +611,140 @@ func (s *Library) DeleteLibrary(ctx context.Context, sectionID float64) (*operat } return res, nil + +} + +// GetLibraryItems - Get Library Items +// Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: +// - `all`: All items in the section. +// - `unwatched`: Items that have not been played. +// - `newest`: Items that are recently released. +// - `recentlyAdded`: Items that are recently added to the library. +// - `recentlyViewed`: Items that were recently viewed. +// - `onDeck`: Items to continue watching. +// - `collection`: Items categorized by collection. +// - `edition`: Items categorized by edition. +// - `genre`: Items categorized by genre. +// - `year`: Items categorized by year of release. +// - `decade`: Items categorized by decade. +// - `director`: Items categorized by director. +// - `actor`: Items categorized by starring actor. +// - `country`: Items categorized by country of origin. +// - `contentRating`: Items categorized by content rating. +// - `rating`: Items categorized by rating. +// - `resolution`: Items categorized by resolution. +// - `firstCharacter`: Items categorized by the first letter. +// - `folder`: Items categorized by folder. +func (s *Library) GetLibraryItems(ctx context.Context, sectionID int64, tag operations.Tag) (*operations.GetLibraryItemsResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getLibraryItems", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + request := operations.GetLibraryItemsRequest{ + SectionID: sectionID, + Tag: tag, + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/library/sections/{sectionId}/{tag}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"400", "401", "4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.GetLibraryItemsResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out operations.GetLibraryItemsResponseBody + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Object = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 401: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out sdkerrors.GetLibraryItemsResponseBody + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.RawResponse = httpRes + return nil, &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + default: + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + } // RefreshLibrary - Refresh Library @@ -708,6 +846,7 @@ func (s *Library) RefreshLibrary(ctx context.Context, sectionID float64) (*opera } return res, nil + } // SearchLibrary - Search Library @@ -778,7 +917,7 @@ func (s *Library) SearchLibrary(ctx context.Context, sectionID int64, type_ oper _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"400", "401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -818,15 +957,31 @@ func (s *Library) SearchLibrary(ctx context.Context, sectionID int64, type_ oper default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 400: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode == 401: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out sdkerrors.SearchLibraryResponseBody + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + out.RawResponse = httpRes + return nil, &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } default: return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil + } // GetMetadata - Get Items Metadata @@ -939,6 +1094,7 @@ func (s *Library) GetMetadata(ctx context.Context, ratingKey float64) (*operatio } return res, nil + } // GetMetadataChildren - Get Items Children @@ -1051,6 +1207,7 @@ func (s *Library) GetMetadataChildren(ctx context.Context, ratingKey float64) (* } return res, nil + } // GetOnDeck - Get On Deck @@ -1159,4 +1316,5 @@ func (s *Library) GetOnDeck(ctx context.Context) (*operations.GetOnDeckResponse, } return res, nil + } diff --git a/log.go b/log.go index 49a7ba2..b768854 100644 --- a/log.go +++ b/log.go @@ -131,6 +131,7 @@ func (s *Log) LogLine(ctx context.Context, level operations.Level, message strin } return res, nil + } // LogMultiLine - Logging a multi-line message @@ -254,6 +255,7 @@ func (s *Log) LogMultiLine(ctx context.Context, request string) (*operations.Log } return res, nil + } // EnablePaperTrail - Enabling Papertrail @@ -353,4 +355,5 @@ func (s *Log) EnablePaperTrail(ctx context.Context) (*operations.EnablePaperTrai } return res, nil + } diff --git a/media.go b/media.go index 6590dd2..0c49c35 100644 --- a/media.go +++ b/media.go @@ -129,6 +129,7 @@ func (s *Media) MarkPlayed(ctx context.Context, key float64) (*operations.MarkPl } return res, nil + } // MarkUnplayed - Mark Media Unplayed @@ -234,6 +235,7 @@ func (s *Media) MarkUnplayed(ctx context.Context, key float64) (*operations.Mark } return res, nil + } // UpdatePlayProgress - Update Media Play Progress @@ -341,4 +343,5 @@ func (s *Media) UpdatePlayProgress(ctx context.Context, key string, time float64 } return res, nil + } diff --git a/models/operations/applyupdates.go b/models/operations/applyupdates.go index 601204d..9864449 100644 --- a/models/operations/applyupdates.go +++ b/models/operations/applyupdates.go @@ -19,7 +19,6 @@ const ( func (e Tonight) ToPointer() *Tonight { return &e } - func (e *Tonight) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { @@ -47,7 +46,6 @@ const ( func (e Skip) ToPointer() *Skip { return &e } - func (e *Skip) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/checkforupdates.go b/models/operations/checkforupdates.go index ecd960b..fdc2d1c 100644 --- a/models/operations/checkforupdates.go +++ b/models/operations/checkforupdates.go @@ -19,7 +19,6 @@ const ( func (e Download) ToPointer() *Download { return &e } - func (e *Download) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/createplaylist.go b/models/operations/createplaylist.go index ad26562..fcc01ba 100644 --- a/models/operations/createplaylist.go +++ b/models/operations/createplaylist.go @@ -20,7 +20,6 @@ const ( func (e QueryParamType) ToPointer() *QueryParamType { return &e } - func (e *QueryParamType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { @@ -50,7 +49,6 @@ const ( func (e Smart) ToPointer() *Smart { return &e } - func (e *Smart) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/getglobalhubs.go b/models/operations/getglobalhubs.go index 428284a..50ca573 100644 --- a/models/operations/getglobalhubs.go +++ b/models/operations/getglobalhubs.go @@ -19,7 +19,6 @@ const ( func (e OnlyTransient) ToPointer() *OnlyTransient { return &e } - func (e *OnlyTransient) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/getlibrary.go b/models/operations/getlibrary.go index a2659e8..61d6723 100644 --- a/models/operations/getlibrary.go +++ b/models/operations/getlibrary.go @@ -21,7 +21,6 @@ const ( func (e IncludeDetails) ToPointer() *IncludeDetails { return &e } - func (e *IncludeDetails) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/getlibraryhubs.go b/models/operations/getlibraryhubs.go index 3dd7714..bbd5968 100644 --- a/models/operations/getlibraryhubs.go +++ b/models/operations/getlibraryhubs.go @@ -21,7 +21,6 @@ const ( func (e QueryParamOnlyTransient) ToPointer() *QueryParamOnlyTransient { return &e } - func (e *QueryParamOnlyTransient) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/getlibraryitems.go b/models/operations/getlibraryitems.go new file mode 100644 index 0000000..e2466bd --- /dev/null +++ b/models/operations/getlibraryitems.go @@ -0,0 +1,991 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "encoding/json" + "fmt" + "github.com/LukeHagar/plexgo/internal/utils" + "github.com/LukeHagar/plexgo/types" + "net/http" +) + +// Tag - A key representing a specific tag within the section. +type Tag string + +const ( + TagAll Tag = "all" + TagUnwatched Tag = "unwatched" + TagNewest Tag = "newest" + TagRecentlyAdded Tag = "recentlyAdded" + TagRecentlyViewed Tag = "recentlyViewed" + TagOnDeck Tag = "onDeck" + TagCollection Tag = "collection" + TagEdition Tag = "edition" + TagGenre Tag = "genre" + TagYear Tag = "year" + TagDecade Tag = "decade" + TagDirector Tag = "director" + TagActor Tag = "actor" + TagCountry Tag = "country" + TagContentRating Tag = "contentRating" + TagRating Tag = "rating" + TagResolution Tag = "resolution" + TagFirstCharacter Tag = "firstCharacter" + TagFolder Tag = "folder" +) + +func (e Tag) ToPointer() *Tag { + return &e +} +func (e *Tag) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "all": + fallthrough + case "unwatched": + fallthrough + case "newest": + fallthrough + case "recentlyAdded": + fallthrough + case "recentlyViewed": + fallthrough + case "onDeck": + fallthrough + case "collection": + fallthrough + case "edition": + fallthrough + case "genre": + fallthrough + case "year": + fallthrough + case "decade": + fallthrough + case "director": + fallthrough + case "actor": + fallthrough + case "country": + fallthrough + case "contentRating": + fallthrough + case "rating": + fallthrough + case "resolution": + fallthrough + case "firstCharacter": + fallthrough + case "folder": + *e = Tag(v) + return nil + default: + return fmt.Errorf("invalid value for Tag: %v", v) + } +} + +type GetLibraryItemsRequest struct { + // the Id of the library to query + SectionID int64 `pathParam:"style=simple,explode=false,name=sectionId"` + // A key representing a specific tag within the section. + Tag Tag `pathParam:"style=simple,explode=false,name=tag"` +} + +func (o *GetLibraryItemsRequest) GetSectionID() int64 { + if o == nil { + return 0 + } + return o.SectionID +} + +func (o *GetLibraryItemsRequest) GetTag() Tag { + if o == nil { + return Tag("") + } + return o.Tag +} + +type GetLibraryItemsPart struct { + ID *int `json:"id,omitempty"` + Key *string `json:"key,omitempty"` + Duration *int `json:"duration,omitempty"` + File *string `json:"file,omitempty"` + Size *int64 `json:"size,omitempty"` + Container *string `json:"container,omitempty"` + VideoProfile *string `json:"videoProfile,omitempty"` +} + +func (o *GetLibraryItemsPart) GetID() *int { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetLibraryItemsPart) GetKey() *string { + if o == nil { + return nil + } + return o.Key +} + +func (o *GetLibraryItemsPart) GetDuration() *int { + if o == nil { + return nil + } + return o.Duration +} + +func (o *GetLibraryItemsPart) GetFile() *string { + if o == nil { + return nil + } + return o.File +} + +func (o *GetLibraryItemsPart) GetSize() *int64 { + if o == nil { + return nil + } + return o.Size +} + +func (o *GetLibraryItemsPart) GetContainer() *string { + if o == nil { + return nil + } + return o.Container +} + +func (o *GetLibraryItemsPart) GetVideoProfile() *string { + if o == nil { + return nil + } + return o.VideoProfile +} + +type GetLibraryItemsMedia struct { + ID *int `json:"id,omitempty"` + Duration *int `json:"duration,omitempty"` + Bitrate *int `json:"bitrate,omitempty"` + Width *int `json:"width,omitempty"` + Height *int `json:"height,omitempty"` + AspectRatio *float64 `json:"aspectRatio,omitempty"` + AudioChannels *int `json:"audioChannels,omitempty"` + AudioCodec *string `json:"audioCodec,omitempty"` + VideoCodec *string `json:"videoCodec,omitempty"` + VideoResolution *string `json:"videoResolution,omitempty"` + Container *string `json:"container,omitempty"` + VideoFrameRate *string `json:"videoFrameRate,omitempty"` + VideoProfile *string `json:"videoProfile,omitempty"` + Part []GetLibraryItemsPart `json:"Part,omitempty"` +} + +func (o *GetLibraryItemsMedia) GetID() *int { + if o == nil { + return nil + } + return o.ID +} + +func (o *GetLibraryItemsMedia) GetDuration() *int { + if o == nil { + return nil + } + return o.Duration +} + +func (o *GetLibraryItemsMedia) GetBitrate() *int { + if o == nil { + return nil + } + return o.Bitrate +} + +func (o *GetLibraryItemsMedia) GetWidth() *int { + if o == nil { + return nil + } + return o.Width +} + +func (o *GetLibraryItemsMedia) GetHeight() *int { + if o == nil { + return nil + } + return o.Height +} + +func (o *GetLibraryItemsMedia) GetAspectRatio() *float64 { + if o == nil { + return nil + } + return o.AspectRatio +} + +func (o *GetLibraryItemsMedia) GetAudioChannels() *int { + if o == nil { + return nil + } + return o.AudioChannels +} + +func (o *GetLibraryItemsMedia) GetAudioCodec() *string { + if o == nil { + return nil + } + return o.AudioCodec +} + +func (o *GetLibraryItemsMedia) GetVideoCodec() *string { + if o == nil { + return nil + } + return o.VideoCodec +} + +func (o *GetLibraryItemsMedia) GetVideoResolution() *string { + if o == nil { + return nil + } + return o.VideoResolution +} + +func (o *GetLibraryItemsMedia) GetContainer() *string { + if o == nil { + return nil + } + return o.Container +} + +func (o *GetLibraryItemsMedia) GetVideoFrameRate() *string { + if o == nil { + return nil + } + return o.VideoFrameRate +} + +func (o *GetLibraryItemsMedia) GetVideoProfile() *string { + if o == nil { + return nil + } + return o.VideoProfile +} + +func (o *GetLibraryItemsMedia) GetPart() []GetLibraryItemsPart { + if o == nil { + return nil + } + return o.Part +} + +type GetLibraryItemsGenre struct { + Tag *string `json:"tag,omitempty"` +} + +func (o *GetLibraryItemsGenre) GetTag() *string { + if o == nil { + return nil + } + return o.Tag +} + +type GetLibraryItemsCountry struct { + Tag *string `json:"tag,omitempty"` +} + +func (o *GetLibraryItemsCountry) GetTag() *string { + if o == nil { + return nil + } + return o.Tag +} + +type GetLibraryItemsDirector struct { + Tag *string `json:"tag,omitempty"` +} + +func (o *GetLibraryItemsDirector) GetTag() *string { + if o == nil { + return nil + } + return o.Tag +} + +type GetLibraryItemsWriter struct { + Tag *string `json:"tag,omitempty"` +} + +func (o *GetLibraryItemsWriter) GetTag() *string { + if o == nil { + return nil + } + return o.Tag +} + +type GetLibraryItemsRole struct { + Tag *string `json:"tag,omitempty"` +} + +func (o *GetLibraryItemsRole) GetTag() *string { + if o == nil { + return nil + } + return o.Tag +} + +type GetLibraryItemsMetadata struct { + RatingKey *string `json:"ratingKey,omitempty"` + Key *string `json:"key,omitempty"` + GUID *string `json:"guid,omitempty"` + Studio *string `json:"studio,omitempty"` + Type *string `json:"type,omitempty"` + Title *string `json:"title,omitempty"` + ContentRating *string `json:"contentRating,omitempty"` + Summary *string `json:"summary,omitempty"` + Rating *float64 `json:"rating,omitempty"` + AudienceRating *float64 `json:"audienceRating,omitempty"` + Year *int `json:"year,omitempty"` + Tagline *string `json:"tagline,omitempty"` + Thumb *string `json:"thumb,omitempty"` + Art *string `json:"art,omitempty"` + Duration *int `json:"duration,omitempty"` + OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"` + AddedAt *int `json:"addedAt,omitempty"` + UpdatedAt *int `json:"updatedAt,omitempty"` + AudienceRatingImage *string `json:"audienceRatingImage,omitempty"` + ChapterSource *string `json:"chapterSource,omitempty"` + PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"` + RatingImage *string `json:"ratingImage,omitempty"` + GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"` + GrandparentGUID *string `json:"grandparentGuid,omitempty"` + GrandparentKey *string `json:"grandparentKey,omitempty"` + GrandparentTitle *string `json:"grandparentTitle,omitempty"` + GrandparentThumb *string `json:"grandparentThumb,omitempty"` + GrandparentArt *string `json:"grandparentArt,omitempty"` + GrandparentTheme *string `json:"grandparentTheme,omitempty"` + Media []GetLibraryItemsMedia `json:"Media,omitempty"` + Genre []GetLibraryItemsGenre `json:"Genre,omitempty"` + Country []GetLibraryItemsCountry `json:"Country,omitempty"` + Director []GetLibraryItemsDirector `json:"Director,omitempty"` + Writer []GetLibraryItemsWriter `json:"Writer,omitempty"` + Role []GetLibraryItemsRole `json:"Role,omitempty"` + TitleSort *string `json:"titleSort,omitempty"` + ViewCount *int `json:"viewCount,omitempty"` + LastViewedAt *int `json:"lastViewedAt,omitempty"` + OriginalTitle *string `json:"originalTitle,omitempty"` + ViewOffset *int `json:"viewOffset,omitempty"` + SkipCount *int `json:"skipCount,omitempty"` + Index *int `json:"index,omitempty"` + Theme *string `json:"theme,omitempty"` + LeafCount *int `json:"leafCount,omitempty"` + ViewedLeafCount *int `json:"viewedLeafCount,omitempty"` + ChildCount *int `json:"childCount,omitempty"` + HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"` + HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"` + ParentRatingKey *string `json:"parentRatingKey,omitempty"` + ParentGUID *string `json:"parentGuid,omitempty"` + ParentStudio *string `json:"parentStudio,omitempty"` + ParentKey *string `json:"parentKey,omitempty"` + ParentTitle *string `json:"parentTitle,omitempty"` + ParentIndex *int `json:"parentIndex,omitempty"` + ParentYear *int `json:"parentYear,omitempty"` + ParentThumb *string `json:"parentThumb,omitempty"` + ParentTheme *string `json:"parentTheme,omitempty"` +} + +func (g GetLibraryItemsMetadata) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetLibraryItemsMetadata) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + return err + } + return nil +} + +func (o *GetLibraryItemsMetadata) GetRatingKey() *string { + if o == nil { + return nil + } + return o.RatingKey +} + +func (o *GetLibraryItemsMetadata) GetKey() *string { + if o == nil { + return nil + } + return o.Key +} + +func (o *GetLibraryItemsMetadata) GetGUID() *string { + if o == nil { + return nil + } + return o.GUID +} + +func (o *GetLibraryItemsMetadata) GetStudio() *string { + if o == nil { + return nil + } + return o.Studio +} + +func (o *GetLibraryItemsMetadata) GetType() *string { + if o == nil { + return nil + } + return o.Type +} + +func (o *GetLibraryItemsMetadata) GetTitle() *string { + if o == nil { + return nil + } + return o.Title +} + +func (o *GetLibraryItemsMetadata) GetContentRating() *string { + if o == nil { + return nil + } + return o.ContentRating +} + +func (o *GetLibraryItemsMetadata) GetSummary() *string { + if o == nil { + return nil + } + return o.Summary +} + +func (o *GetLibraryItemsMetadata) GetRating() *float64 { + if o == nil { + return nil + } + return o.Rating +} + +func (o *GetLibraryItemsMetadata) GetAudienceRating() *float64 { + if o == nil { + return nil + } + return o.AudienceRating +} + +func (o *GetLibraryItemsMetadata) GetYear() *int { + if o == nil { + return nil + } + return o.Year +} + +func (o *GetLibraryItemsMetadata) GetTagline() *string { + if o == nil { + return nil + } + return o.Tagline +} + +func (o *GetLibraryItemsMetadata) GetThumb() *string { + if o == nil { + return nil + } + return o.Thumb +} + +func (o *GetLibraryItemsMetadata) GetArt() *string { + if o == nil { + return nil + } + return o.Art +} + +func (o *GetLibraryItemsMetadata) GetDuration() *int { + if o == nil { + return nil + } + return o.Duration +} + +func (o *GetLibraryItemsMetadata) GetOriginallyAvailableAt() *types.Date { + if o == nil { + return nil + } + return o.OriginallyAvailableAt +} + +func (o *GetLibraryItemsMetadata) GetAddedAt() *int { + if o == nil { + return nil + } + return o.AddedAt +} + +func (o *GetLibraryItemsMetadata) GetUpdatedAt() *int { + if o == nil { + return nil + } + return o.UpdatedAt +} + +func (o *GetLibraryItemsMetadata) GetAudienceRatingImage() *string { + if o == nil { + return nil + } + return o.AudienceRatingImage +} + +func (o *GetLibraryItemsMetadata) GetChapterSource() *string { + if o == nil { + return nil + } + return o.ChapterSource +} + +func (o *GetLibraryItemsMetadata) GetPrimaryExtraKey() *string { + if o == nil { + return nil + } + return o.PrimaryExtraKey +} + +func (o *GetLibraryItemsMetadata) GetRatingImage() *string { + if o == nil { + return nil + } + return o.RatingImage +} + +func (o *GetLibraryItemsMetadata) GetGrandparentRatingKey() *string { + if o == nil { + return nil + } + return o.GrandparentRatingKey +} + +func (o *GetLibraryItemsMetadata) GetGrandparentGUID() *string { + if o == nil { + return nil + } + return o.GrandparentGUID +} + +func (o *GetLibraryItemsMetadata) GetGrandparentKey() *string { + if o == nil { + return nil + } + return o.GrandparentKey +} + +func (o *GetLibraryItemsMetadata) GetGrandparentTitle() *string { + if o == nil { + return nil + } + return o.GrandparentTitle +} + +func (o *GetLibraryItemsMetadata) GetGrandparentThumb() *string { + if o == nil { + return nil + } + return o.GrandparentThumb +} + +func (o *GetLibraryItemsMetadata) GetGrandparentArt() *string { + if o == nil { + return nil + } + return o.GrandparentArt +} + +func (o *GetLibraryItemsMetadata) GetGrandparentTheme() *string { + if o == nil { + return nil + } + return o.GrandparentTheme +} + +func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia { + if o == nil { + return nil + } + return o.Media +} + +func (o *GetLibraryItemsMetadata) GetGenre() []GetLibraryItemsGenre { + if o == nil { + return nil + } + return o.Genre +} + +func (o *GetLibraryItemsMetadata) GetCountry() []GetLibraryItemsCountry { + if o == nil { + return nil + } + return o.Country +} + +func (o *GetLibraryItemsMetadata) GetDirector() []GetLibraryItemsDirector { + if o == nil { + return nil + } + return o.Director +} + +func (o *GetLibraryItemsMetadata) GetWriter() []GetLibraryItemsWriter { + if o == nil { + return nil + } + return o.Writer +} + +func (o *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole { + if o == nil { + return nil + } + return o.Role +} + +func (o *GetLibraryItemsMetadata) GetTitleSort() *string { + if o == nil { + return nil + } + return o.TitleSort +} + +func (o *GetLibraryItemsMetadata) GetViewCount() *int { + if o == nil { + return nil + } + return o.ViewCount +} + +func (o *GetLibraryItemsMetadata) GetLastViewedAt() *int { + if o == nil { + return nil + } + return o.LastViewedAt +} + +func (o *GetLibraryItemsMetadata) GetOriginalTitle() *string { + if o == nil { + return nil + } + return o.OriginalTitle +} + +func (o *GetLibraryItemsMetadata) GetViewOffset() *int { + if o == nil { + return nil + } + return o.ViewOffset +} + +func (o *GetLibraryItemsMetadata) GetSkipCount() *int { + if o == nil { + return nil + } + return o.SkipCount +} + +func (o *GetLibraryItemsMetadata) GetIndex() *int { + if o == nil { + return nil + } + return o.Index +} + +func (o *GetLibraryItemsMetadata) GetTheme() *string { + if o == nil { + return nil + } + return o.Theme +} + +func (o *GetLibraryItemsMetadata) GetLeafCount() *int { + if o == nil { + return nil + } + return o.LeafCount +} + +func (o *GetLibraryItemsMetadata) GetViewedLeafCount() *int { + if o == nil { + return nil + } + return o.ViewedLeafCount +} + +func (o *GetLibraryItemsMetadata) GetChildCount() *int { + if o == nil { + return nil + } + return o.ChildCount +} + +func (o *GetLibraryItemsMetadata) GetHasPremiumExtras() *string { + if o == nil { + return nil + } + return o.HasPremiumExtras +} + +func (o *GetLibraryItemsMetadata) GetHasPremiumPrimaryExtra() *string { + if o == nil { + return nil + } + return o.HasPremiumPrimaryExtra +} + +func (o *GetLibraryItemsMetadata) GetParentRatingKey() *string { + if o == nil { + return nil + } + return o.ParentRatingKey +} + +func (o *GetLibraryItemsMetadata) GetParentGUID() *string { + if o == nil { + return nil + } + return o.ParentGUID +} + +func (o *GetLibraryItemsMetadata) GetParentStudio() *string { + if o == nil { + return nil + } + return o.ParentStudio +} + +func (o *GetLibraryItemsMetadata) GetParentKey() *string { + if o == nil { + return nil + } + return o.ParentKey +} + +func (o *GetLibraryItemsMetadata) GetParentTitle() *string { + if o == nil { + return nil + } + return o.ParentTitle +} + +func (o *GetLibraryItemsMetadata) GetParentIndex() *int { + if o == nil { + return nil + } + return o.ParentIndex +} + +func (o *GetLibraryItemsMetadata) GetParentYear() *int { + if o == nil { + return nil + } + return o.ParentYear +} + +func (o *GetLibraryItemsMetadata) GetParentThumb() *string { + if o == nil { + return nil + } + return o.ParentThumb +} + +func (o *GetLibraryItemsMetadata) GetParentTheme() *string { + if o == nil { + return nil + } + return o.ParentTheme +} + +type GetLibraryItemsMediaContainer struct { + Size *int `json:"size,omitempty"` + AllowSync *bool `json:"allowSync,omitempty"` + Art *string `json:"art,omitempty"` + Identifier *string `json:"identifier,omitempty"` + LibrarySectionID *int `json:"librarySectionID,omitempty"` + LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"` + LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"` + MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"` + MediaTagVersion *int `json:"mediaTagVersion,omitempty"` + Thumb *string `json:"thumb,omitempty"` + Title1 *string `json:"title1,omitempty"` + Title2 *string `json:"title2,omitempty"` + ViewGroup *string `json:"viewGroup,omitempty"` + ViewMode *int `json:"viewMode,omitempty"` + MixedParents *bool `json:"mixedParents,omitempty"` + Metadata []GetLibraryItemsMetadata `json:"Metadata,omitempty"` +} + +func (o *GetLibraryItemsMediaContainer) GetSize() *int { + if o == nil { + return nil + } + return o.Size +} + +func (o *GetLibraryItemsMediaContainer) GetAllowSync() *bool { + if o == nil { + return nil + } + return o.AllowSync +} + +func (o *GetLibraryItemsMediaContainer) GetArt() *string { + if o == nil { + return nil + } + return o.Art +} + +func (o *GetLibraryItemsMediaContainer) GetIdentifier() *string { + if o == nil { + return nil + } + return o.Identifier +} + +func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() *int { + if o == nil { + return nil + } + return o.LibrarySectionID +} + +func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string { + if o == nil { + return nil + } + return o.LibrarySectionTitle +} + +func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string { + if o == nil { + return nil + } + return o.LibrarySectionUUID +} + +func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() *string { + if o == nil { + return nil + } + return o.MediaTagPrefix +} + +func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() *int { + if o == nil { + return nil + } + return o.MediaTagVersion +} + +func (o *GetLibraryItemsMediaContainer) GetThumb() *string { + if o == nil { + return nil + } + return o.Thumb +} + +func (o *GetLibraryItemsMediaContainer) GetTitle1() *string { + if o == nil { + return nil + } + return o.Title1 +} + +func (o *GetLibraryItemsMediaContainer) GetTitle2() *string { + if o == nil { + return nil + } + return o.Title2 +} + +func (o *GetLibraryItemsMediaContainer) GetViewGroup() *string { + if o == nil { + return nil + } + return o.ViewGroup +} + +func (o *GetLibraryItemsMediaContainer) GetViewMode() *int { + if o == nil { + return nil + } + return o.ViewMode +} + +func (o *GetLibraryItemsMediaContainer) GetMixedParents() *bool { + if o == nil { + return nil + } + return o.MixedParents +} + +func (o *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata { + if o == nil { + return nil + } + return o.Metadata +} + +// GetLibraryItemsResponseBody - The contents of the library by section and tag +type GetLibraryItemsResponseBody struct { + MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"` +} + +func (o *GetLibraryItemsResponseBody) GetMediaContainer() *GetLibraryItemsMediaContainer { + if o == nil { + return nil + } + return o.MediaContainer +} + +type GetLibraryItemsResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // The contents of the library by section and tag + Object *GetLibraryItemsResponseBody +} + +func (o *GetLibraryItemsResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetLibraryItemsResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetLibraryItemsResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *GetLibraryItemsResponse) GetObject() *GetLibraryItemsResponseBody { + if o == nil { + return nil + } + return o.Object +} diff --git a/models/operations/getplaylists.go b/models/operations/getplaylists.go index a997981..00ca8e3 100644 --- a/models/operations/getplaylists.go +++ b/models/operations/getplaylists.go @@ -20,7 +20,6 @@ const ( func (e PlaylistType) ToPointer() *PlaylistType { return &e } - func (e *PlaylistType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { @@ -50,7 +49,6 @@ const ( func (e QueryParamSmart) ToPointer() *QueryParamSmart { return &e } - func (e *QueryParamSmart) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/getresizedphoto.go b/models/operations/getresizedphoto.go index d6bbabb..ceeed39 100644 --- a/models/operations/getresizedphoto.go +++ b/models/operations/getresizedphoto.go @@ -20,7 +20,6 @@ const ( func (e MinSize) ToPointer() *MinSize { return &e } - func (e *MinSize) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { @@ -48,7 +47,6 @@ const ( func (e Upscale) ToPointer() *Upscale { return &e } - func (e *Upscale) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/gettimeline.go b/models/operations/gettimeline.go index 81391e0..bd3681a 100644 --- a/models/operations/gettimeline.go +++ b/models/operations/gettimeline.go @@ -20,7 +20,6 @@ const ( func (e State) ToPointer() *State { return &e } - func (e *State) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/gettransienttoken.go b/models/operations/gettransienttoken.go index 65bcebb..31f5ff1 100644 --- a/models/operations/gettransienttoken.go +++ b/models/operations/gettransienttoken.go @@ -18,7 +18,6 @@ const ( func (e GetTransientTokenQueryParamType) ToPointer() *GetTransientTokenQueryParamType { return &e } - func (e *GetTransientTokenQueryParamType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { @@ -43,7 +42,6 @@ const ( func (e Scope) ToPointer() *Scope { return &e } - func (e *Scope) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/logline.go b/models/operations/logline.go index 2dcf0a5..875dcca 100644 --- a/models/operations/logline.go +++ b/models/operations/logline.go @@ -27,7 +27,6 @@ const ( func (e Level) ToPointer() *Level { return &e } - func (e *Level) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/searchlibrary.go b/models/operations/searchlibrary.go index 79b7cac..246104f 100644 --- a/models/operations/searchlibrary.go +++ b/models/operations/searchlibrary.go @@ -21,7 +21,6 @@ const ( func (e Type) ToPointer() *Type { return &e } - func (e *Type) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/starttask.go b/models/operations/starttask.go index 3eafbee..9370014 100644 --- a/models/operations/starttask.go +++ b/models/operations/starttask.go @@ -31,7 +31,6 @@ const ( func (e TaskName) ToPointer() *TaskName { return &e } - func (e *TaskName) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/stoptask.go b/models/operations/stoptask.go index 24b22f7..13e204b 100644 --- a/models/operations/stoptask.go +++ b/models/operations/stoptask.go @@ -31,7 +31,6 @@ const ( func (e PathParamTaskName) ToPointer() *PathParamTaskName { return &e } - func (e *PathParamTaskName) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/operations/uploadplaylist.go b/models/operations/uploadplaylist.go index fb7f786..38b3674 100644 --- a/models/operations/uploadplaylist.go +++ b/models/operations/uploadplaylist.go @@ -22,7 +22,6 @@ const ( func (e Force) ToPointer() *Force { return &e } - func (e *Force) UnmarshalJSON(data []byte) error { var v int64 if err := json.Unmarshal(data, &v); err != nil { diff --git a/models/sdkerrors/getlibraryitems.go b/models/sdkerrors/getlibraryitems.go new file mode 100644 index 0000000..63c340d --- /dev/null +++ b/models/sdkerrors/getlibraryitems.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package sdkerrors + +import ( + "encoding/json" + "net/http" +) + +type GetLibraryItemsErrors struct { + Code *float64 `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *float64 `json:"status,omitempty"` +} + +func (o *GetLibraryItemsErrors) GetCode() *float64 { + if o == nil { + return nil + } + return o.Code +} + +func (o *GetLibraryItemsErrors) GetMessage() *string { + if o == nil { + return nil + } + return o.Message +} + +func (o *GetLibraryItemsErrors) GetStatus() *float64 { + if o == nil { + return nil + } + return o.Status +} + +// GetLibraryItemsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +type GetLibraryItemsResponseBody struct { + Errors []GetLibraryItemsErrors `json:"errors,omitempty"` + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response `json:"-"` +} + +var _ error = &GetLibraryItemsResponseBody{} + +func (e *GetLibraryItemsResponseBody) Error() string { + data, _ := json.Marshal(e) + return string(data) +} diff --git a/models/sdkerrors/searchlibrary.go b/models/sdkerrors/searchlibrary.go new file mode 100644 index 0000000..9c2d782 --- /dev/null +++ b/models/sdkerrors/searchlibrary.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package sdkerrors + +import ( + "encoding/json" + "net/http" +) + +type SearchLibraryErrors struct { + Code *float64 `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *float64 `json:"status,omitempty"` +} + +func (o *SearchLibraryErrors) GetCode() *float64 { + if o == nil { + return nil + } + return o.Code +} + +func (o *SearchLibraryErrors) GetMessage() *string { + if o == nil { + return nil + } + return o.Message +} + +func (o *SearchLibraryErrors) GetStatus() *float64 { + if o == nil { + return nil + } + return o.Status +} + +// SearchLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +type SearchLibraryResponseBody struct { + Errors []SearchLibraryErrors `json:"errors,omitempty"` + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response `json:"-"` +} + +var _ error = &SearchLibraryResponseBody{} + +func (e *SearchLibraryResponseBody) Error() string { + data, _ := json.Marshal(e) + return string(data) +} diff --git a/playlists.go b/playlists.go index 845c9ee..e5d0a66 100644 --- a/playlists.go +++ b/playlists.go @@ -141,6 +141,7 @@ func (s *Playlists) CreatePlaylist(ctx context.Context, request operations.Creat } return res, nil + } // GetPlaylists - Get All Playlists @@ -258,6 +259,7 @@ func (s *Playlists) GetPlaylists(ctx context.Context, playlistType *operations.P } return res, nil + } // GetPlaylist - Retrieve Playlist @@ -371,6 +373,7 @@ func (s *Playlists) GetPlaylist(ctx context.Context, playlistID float64) (*opera } return res, nil + } // DeletePlaylist - Deletes a Playlist @@ -472,6 +475,7 @@ func (s *Playlists) DeletePlaylist(ctx context.Context, playlistID float64) (*op } return res, nil + } // UpdatePlaylist - Update a Playlist @@ -579,6 +583,7 @@ func (s *Playlists) UpdatePlaylist(ctx context.Context, playlistID float64, titl } return res, nil + } // GetPlaylistContents - Retrieve Playlist Contents @@ -699,6 +704,7 @@ func (s *Playlists) GetPlaylistContents(ctx context.Context, playlistID float64, } return res, nil + } // ClearPlaylistContents - Delete Playlist Contents @@ -800,6 +806,7 @@ func (s *Playlists) ClearPlaylistContents(ctx context.Context, playlistID float6 } return res, nil + } // AddPlaylistContents - Adding to a Playlist @@ -919,6 +926,7 @@ func (s *Playlists) AddPlaylistContents(ctx context.Context, playlistID float64, } return res, nil + } // UploadPlaylist - Upload Playlist @@ -1025,4 +1033,5 @@ func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force opera } return res, nil + } diff --git a/plex.go b/plex.go index ed9e6e7..cd1228f 100644 --- a/plex.go +++ b/plex.go @@ -154,6 +154,7 @@ func (s *Plex) GetPin(ctx context.Context, strong *bool, xPlexClientIdentifier * } return res, nil + } // GetToken - Get Access Token @@ -274,4 +275,5 @@ func (s *Plex) GetToken(ctx context.Context, pinID string, xPlexClientIdentifier } return res, nil + } diff --git a/plexapi.go b/plexapi.go index 2b4d96b..a01f910 100644 --- a/plexapi.go +++ b/plexapi.go @@ -171,7 +171,6 @@ const ( func (e ServerProtocol) ToPointer() *ServerProtocol { return &e } - func (e *ServerProtocol) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { @@ -234,17 +233,11 @@ func WithClient(client HTTPClient) SDKOption { } } -func withSecurity(security interface{}) func(context.Context) (interface{}, error) { - return func(context.Context) (interface{}, error) { - return security, nil - } -} - // WithSecurity configures the SDK to use the provided security details func WithSecurity(accessToken string) SDKOption { return func(sdk *PlexAPI) { security := components.Security{AccessToken: accessToken} - sdk.sdkConfiguration.Security = withSecurity(&security) + sdk.sdkConfiguration.Security = utils.AsSecuritySource(&security) } } @@ -276,9 +269,9 @@ func New(opts ...SDKOption) *PlexAPI { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.3", - SDKVersion: "0.7.0", - GenVersion: "2.326.3", - UserAgent: "speakeasy-sdk/go 0.7.0 2.326.3 0.0.3 github.com/LukeHagar/plexgo", + SDKVersion: "0.8.0", + GenVersion: "2.335.5", + UserAgent: "speakeasy-sdk/go 0.8.0 2.335.5 0.0.3 github.com/LukeHagar/plexgo", Globals: globals.Globals{}, ServerDefaults: []map[string]string{ { diff --git a/search.go b/search.go index ab66d81..73a8694 100644 --- a/search.go +++ b/search.go @@ -143,6 +143,7 @@ func (s *Search) PerformSearch(ctx context.Context, query string, sectionID *flo } return res, nil + } // PerformVoiceSearch - Perform a voice search @@ -253,6 +254,7 @@ func (s *Search) PerformVoiceSearch(ctx context.Context, query string, sectionID } return res, nil + } // GetSearchResults - Get Search Results @@ -369,4 +371,5 @@ func (s *Search) GetSearchResults(ctx context.Context, query string) (*operation } return res, nil + } diff --git a/server.go b/server.go index 509896f..ee4a090 100644 --- a/server.go +++ b/server.go @@ -132,6 +132,7 @@ func (s *Server) GetServerCapabilities(ctx context.Context) (*operations.GetServ } return res, nil + } // GetServerPreferences - Get Server Preferences @@ -240,6 +241,7 @@ func (s *Server) GetServerPreferences(ctx context.Context) (*operations.GetServe } return res, nil + } // GetAvailableClients - Get Available Clients @@ -348,6 +350,7 @@ func (s *Server) GetAvailableClients(ctx context.Context) (*operations.GetAvaila } return res, nil + } // GetDevices - Get Devices @@ -456,6 +459,7 @@ func (s *Server) GetDevices(ctx context.Context) (*operations.GetDevicesResponse } return res, nil + } // GetServerIdentity - Get Server Identity @@ -564,6 +568,7 @@ func (s *Server) GetServerIdentity(ctx context.Context) (*operations.GetServerId } return res, nil + } // GetMyPlexAccount - Get MyPlex Account @@ -672,6 +677,7 @@ func (s *Server) GetMyPlexAccount(ctx context.Context) (*operations.GetMyPlexAcc } return res, nil + } // GetResizedPhoto - Get a Resized Photo @@ -773,6 +779,7 @@ func (s *Server) GetResizedPhoto(ctx context.Context, request operations.GetResi } return res, nil + } // GetServerList - Get Server List @@ -881,4 +888,5 @@ func (s *Server) GetServerList(ctx context.Context) (*operations.GetServerListRe } return res, nil + } diff --git a/sessions.go b/sessions.go index b0fba2d..8f4596b 100644 --- a/sessions.go +++ b/sessions.go @@ -132,6 +132,7 @@ func (s *Sessions) GetSessions(ctx context.Context) (*operations.GetSessionsResp } return res, nil + } // GetSessionHistory - Get Session History @@ -240,6 +241,7 @@ func (s *Sessions) GetSessionHistory(ctx context.Context) (*operations.GetSessio } return res, nil + } // GetTranscodeSessions - Get Transcode Sessions @@ -348,6 +350,7 @@ func (s *Sessions) GetTranscodeSessions(ctx context.Context) (*operations.GetTra } return res, nil + } // StopTranscodeSession - Stop a Transcode Session @@ -449,4 +452,5 @@ func (s *Sessions) StopTranscodeSession(ctx context.Context, sessionKey string) } return res, nil + } diff --git a/statistics.go b/statistics.go index b06affc..a5aa4ea 100644 --- a/statistics.go +++ b/statistics.go @@ -140,4 +140,5 @@ func (s *Statistics) GetStatistics(ctx context.Context, timespan *int64) (*opera } return res, nil + } diff --git a/updater.go b/updater.go index 7e0f819..2632f05 100644 --- a/updater.go +++ b/updater.go @@ -133,6 +133,7 @@ func (s *Updater) GetUpdateStatus(ctx context.Context) (*operations.GetUpdateSta } return res, nil + } // CheckForUpdates - Checking for updates @@ -238,6 +239,7 @@ func (s *Updater) CheckForUpdates(ctx context.Context, download *operations.Down } return res, nil + } // ApplyUpdates - Apply Updates @@ -346,4 +348,5 @@ func (s *Updater) ApplyUpdates(ctx context.Context, tonight *operations.Tonight, } return res, nil + } diff --git a/video.go b/video.go index c238c70..16a4e9e 100644 --- a/video.go +++ b/video.go @@ -125,6 +125,7 @@ func (s *Video) GetTimeline(ctx context.Context, request operations.GetTimelineR } return res, nil + } // StartUniversalTranscode - Start Universal Transcode @@ -226,4 +227,5 @@ func (s *Video) StartUniversalTranscode(ctx context.Context, request operations. } return res, nil + }