mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 20:47:48 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f52d81d1f6 |
File diff suppressed because one or more lines are too long
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
go:
|
go:
|
||||||
version: 0.11.14
|
version: 0.12.0
|
||||||
additionalDependencies: {}
|
additionalDependencies: {}
|
||||||
allowUnknownFieldsInWeakUnions: false
|
allowUnknownFieldsInWeakUnions: false
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.399.2
|
speakeasyVersion: 1.401.2
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -9,8 +9,8 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
|
sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069
|
||||||
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
|
sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -18,10 +18,10 @@ targets:
|
|||||||
plexgo:
|
plexgo:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
|
sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069
|
||||||
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
|
sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f
|
||||||
codeSamplesNamespace: code-samples-go-plexgo
|
codeSamplesNamespace: code-samples-go-plexgo
|
||||||
codeSamplesRevisionDigest: sha256:4c8c0f04287fab8c7e38d97036bd7445df35a0428b0be13df8fc4f642e87b0ca
|
codeSamplesRevisionDigest: sha256:366a4aca940e2161009b4efe3c83407ecf0d02ac6a9e3420964c593aa24e3a34
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -588,7 +588,7 @@ d6 := types.MustDateFromString("2019-01-01") // returns types.Date and panics on
|
|||||||
|
|
||||||
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
|
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
|
||||||
|
|
||||||
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
||||||
|
|
||||||
|
|
||||||
### Available Globals
|
### Available Globals
|
||||||
@@ -621,7 +621,6 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
s := plexgo.New(
|
s := plexgo.New(
|
||||||
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
|
|
||||||
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
|
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
|
||||||
plexgo.WithClientName("Plex Web"),
|
plexgo.WithClientName("Plex Web"),
|
||||||
plexgo.WithClientVersion("4.133.0"),
|
plexgo.WithClientVersion("4.133.0"),
|
||||||
@@ -630,11 +629,11 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer())
|
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
if res.PlexDevices != nil {
|
if res.AuthPinContainer != nil {
|
||||||
// handle response
|
// handle response
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -893,3 +893,13 @@ Based on:
|
|||||||
- [go v0.11.14] .
|
- [go v0.11.14] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Go v0.11.14] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.14 - .
|
- [Go v0.11.14] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.14 - .
|
||||||
|
|
||||||
|
## 2024-09-21 00:08:46
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [go v0.12.0] .
|
||||||
|
### Releases
|
||||||
|
- [Go v0.12.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.12.0 - .
|
||||||
@@ -736,7 +736,7 @@ func (s *Authentication) GetTokenDetails(ctx context.Context, opts ...operations
|
|||||||
|
|
||||||
// PostUsersSignInData - Get User Sign In Data
|
// PostUsersSignInData - Get User Sign In Data
|
||||||
// Sign in user with username and password and return user data with Plex authentication token
|
// Sign in user with username and password and return user data with Plex authentication token
|
||||||
func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *string, requestBody *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) {
|
func (s *Authentication) PostUsersSignInData(ctx context.Context, request *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) {
|
||||||
hookCtx := hooks.HookContext{
|
hookCtx := hooks.HookContext{
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
OperationID: "post-users-sign-in-data",
|
OperationID: "post-users-sign-in-data",
|
||||||
@@ -744,15 +744,6 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri
|
|||||||
SecuritySource: nil,
|
SecuritySource: nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
request := operations.PostUsersSignInDataRequest{
|
|
||||||
ClientID: clientID,
|
|
||||||
RequestBody: requestBody,
|
|
||||||
}
|
|
||||||
|
|
||||||
globals := operations.PostUsersSignInDataGlobals{
|
|
||||||
ClientID: s.sdkConfiguration.Globals.ClientID,
|
|
||||||
}
|
|
||||||
|
|
||||||
o := operations.Options{}
|
o := operations.Options{}
|
||||||
supportedOptions := []string{
|
supportedOptions := []string{
|
||||||
operations.SupportedOptionServerURL,
|
operations.SupportedOptionServerURL,
|
||||||
@@ -776,7 +767,7 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri
|
|||||||
return nil, fmt.Errorf("error generating URL: %w", err)
|
return nil, fmt.Errorf("error generating URL: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "form", `request:"mediaType=application/x-www-form-urlencoded"`)
|
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "form", `request:"mediaType=application/x-www-form-urlencoded"`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -800,10 +791,6 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri
|
|||||||
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
||||||
req.Header.Set("Content-Type", reqContentType)
|
req.Header.Set("Content-Type", reqContentType)
|
||||||
|
|
||||||
if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
|
|
||||||
return nil, fmt.Errorf("error populating query params: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
globalRetryConfig := s.sdkConfiguration.RetryConfig
|
globalRetryConfig := s.sdkConfiguration.RetryConfig
|
||||||
retryConfig := o.Retries
|
retryConfig := o.Retries
|
||||||
if retryConfig == nil {
|
if retryConfig == nil {
|
||||||
|
|||||||
@@ -833,7 +833,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeTwo, plexgo.Int64(1))
|
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeShow, plexgo.Int64(1))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -973,7 +973,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Library.GetMetadataChildren(ctx, 1539.14, plexgo.String("Stream"))
|
res, err := s.Library.GetMetadataChildren(ctx, 1539.15, plexgo.String("Stream"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1286,7 +1286,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeTwo)
|
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeShow)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1323,9 +1323,9 @@ actions:
|
|||||||
res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{
|
res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{
|
||||||
SectionKey: 9518,
|
SectionKey: 9518,
|
||||||
Tag: operations.TagEdition,
|
Tag: operations.TagEdition,
|
||||||
IncludeGuids: operations.IncludeGuidsOne.ToPointer(),
|
IncludeGuids: operations.IncludeGuidsEnable.ToPointer(),
|
||||||
IncludeMeta: operations.IncludeMetaOne.ToPointer(),
|
IncludeMeta: operations.IncludeMetaEnable.ToPointer(),
|
||||||
Type: operations.TypeTwo,
|
Type: operations.TypeShow,
|
||||||
XPlexContainerStart: plexgo.Int(0),
|
XPlexContainerStart: plexgo.Int(0),
|
||||||
XPlexContainerSize: plexgo.Int(50),
|
XPlexContainerSize: plexgo.Int(50),
|
||||||
})
|
})
|
||||||
@@ -1534,7 +1534,7 @@ actions:
|
|||||||
Width: 110,
|
Width: 110,
|
||||||
Height: 165,
|
Height: 165,
|
||||||
Opacity: 100,
|
Opacity: 100,
|
||||||
Blur: 20,
|
Blur: 0,
|
||||||
MinSize: operations.MinSizeOne,
|
MinSize: operations.MinSizeOne,
|
||||||
Upscale: operations.UpscaleOne,
|
Upscale: operations.UpscaleOne,
|
||||||
URL: "/library/metadata/49564/thumb/1654258204",
|
URL: "/library/metadata/49564/thumb/1654258204",
|
||||||
@@ -1603,7 +1603,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Plex.GetTokenByPinID(ctx, 408895, plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
|
res, err := s.Plex.GetTokenByPinID(ctx, 408895)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1674,7 +1674,7 @@ actions:
|
|||||||
Title: "<value>",
|
Title: "<value>",
|
||||||
Type: operations.CreatePlaylistQueryParamTypePhoto,
|
Type: operations.CreatePlaylistQueryParamTypePhoto,
|
||||||
Smart: operations.SmartOne,
|
Smart: operations.SmartOne,
|
||||||
URI: "https://inborn-brochure.biz",
|
URI: "https://hoarse-testing.info/",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
@@ -1709,7 +1709,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero)
|
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1808,7 +1808,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Playlists.UpdatePlaylist(ctx, 3915, nil, nil)
|
res, err := s.Playlists.UpdatePlaylist(ctx, 3915.00, nil, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1875,7 +1875,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeTwo)
|
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeShow)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1908,7 +1908,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Playlists.AddPlaylistContents(ctx, 8502.01, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123))
|
res, err := s.Playlists.AddPlaylistContents(ctx, 8502.00, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -1942,7 +1942,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer())
|
res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -2008,7 +2008,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "server://client-identifier")
|
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "provider://provider-identifier")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -2474,7 +2474,7 @@ actions:
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Authentication.PostUsersSignInData(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), &operations.PostUsersSignInDataRequestBody{
|
res, err := s.Authentication.PostUsersSignInData(ctx, &operations.PostUsersSignInDataRequestBody{
|
||||||
Login: "username@email.com",
|
Login: "username@email.com",
|
||||||
Password: "password123",
|
Password: "password123",
|
||||||
VerificationCode: plexgo.String("123456"),
|
VerificationCode: plexgo.String("123456"),
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------------------------ | ------------------------ |
|
| --------------------------- | --------------------------- |
|
||||||
| `AutoSelectSubtitleZero` | 0 |
|
| `AutoSelectSubtitleDisable` | 0 |
|
||||||
| `AutoSelectSubtitleOne` | 1 |
|
| `AutoSelectSubtitleEnable` | 1 |
|
||||||
@@ -4,11 +4,11 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ |
|
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
|
||||||
| `Protocol` | *string* | :heavy_check_mark: | N/A |
|
| `Protocol` | [operations.Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) |
|
||||||
| `Address` | *string* | :heavy_check_mark: | N/A |
|
| `Address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection |
|
||||||
| `Port` | *float64* | :heavy_check_mark: | N/A |
|
| `Port` | *int* | :heavy_check_mark: | The port used for the connection |
|
||||||
| `URI` | *string* | :heavy_check_mark: | N/A |
|
| `URI` | *string* | :heavy_check_mark: | The full URI of the connection |
|
||||||
| `Local` | *bool* | :heavy_check_mark: | N/A |
|
| `Local` | *bool* | :heavy_check_mark: | If the connection is local address |
|
||||||
| `Relay` | *bool* | :heavy_check_mark: | N/A |
|
| `Relay` | *bool* | :heavy_check_mark: | If the connection is relayed through plex.direct |
|
||||||
| `IPv6` | *bool* | :heavy_check_mark: | N/A |
|
| `IPv6` | *bool* | :heavy_check_mark: | If the connection is using IPv6 |
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
# DefaultSubtitleAccessibility
|
# DefaultSubtitleAccessibility
|
||||||
|
|
||||||
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ---------------------------------- | ---------------------------------- |
|
| ------------------------------------- | ------------------------------------- |
|
||||||
| `DefaultSubtitleAccessibilityZero` | 0 |
|
| `DefaultSubtitleAccessibilityDisable` | 0 |
|
||||||
| `DefaultSubtitleAccessibilityOne` | 1 |
|
| `DefaultSubtitleAccessibilityEnable` | 1 |
|
||||||
@@ -6,6 +6,6 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| --------------------------- | --------------------------- |
|
| ------------------------------ | ------------------------------ |
|
||||||
| `DefaultSubtitleForcedZero` | 0 |
|
| `DefaultSubtitleForcedDisable` | 0 |
|
||||||
| `DefaultSubtitleForcedOne` | 1 |
|
| `DefaultSubtitleForcedEnable` | 1 |
|
||||||
@@ -5,24 +5,24 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
||||||
| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true |
|
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | true |
|
||||||
| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg |
|
| `Art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg |
|
||||||
| `Composite` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 |
|
| `Composite` | *string* | :heavy_check_mark: | N/A | /library/sections/1/composite/1705615584 |
|
||||||
| `Filters` | **bool* | :heavy_minus_sign: | N/A | true |
|
| `Filters` | *bool* | :heavy_check_mark: | N/A | true |
|
||||||
| `Refreshing` | **bool* | :heavy_minus_sign: | N/A | false |
|
| `Refreshing` | *bool* | :heavy_check_mark: | N/A | false |
|
||||||
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png |
|
| `Thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png |
|
||||||
| `Key` | **string* | :heavy_minus_sign: | N/A | 1 |
|
| `Key` | *string* | :heavy_check_mark: | N/A | 1 |
|
||||||
| `Type` | **string* | :heavy_minus_sign: | N/A | movie |
|
| `Type` | *string* | :heavy_check_mark: | N/A | movie |
|
||||||
| `Title` | **string* | :heavy_minus_sign: | N/A | Movies |
|
| `Title` | *string* | :heavy_check_mark: | N/A | Movies |
|
||||||
| `Agent` | **string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie |
|
| `Agent` | *string* | :heavy_check_mark: | N/A | tv.plex.agents.movie |
|
||||||
| `Scanner` | **string* | :heavy_minus_sign: | N/A | Plex Movie |
|
| `Scanner` | *string* | :heavy_check_mark: | N/A | Plex Movie |
|
||||||
| `Language` | **string* | :heavy_minus_sign: | N/A | en-US |
|
| `Language` | *string* | :heavy_check_mark: | N/A | en-US |
|
||||||
| `UUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
|
| `UUID` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
|
||||||
| `UpdatedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 |
|
| `UpdatedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `CreatedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 |
|
| `CreatedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `ScannedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 |
|
| `ScannedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `Content` | **bool* | :heavy_minus_sign: | N/A | true |
|
| `Content` | *bool* | :heavy_check_mark: | N/A | true |
|
||||||
| `Directory` | **bool* | :heavy_minus_sign: | N/A | true |
|
| `Directory` | *bool* | :heavy_check_mark: | N/A | true |
|
||||||
| `ContentChangedAt` | **int* | :heavy_minus_sign: | N/A | 3192854 |
|
| `ContentChangedAt` | *int* | :heavy_check_mark: | N/A | 3192854 |
|
||||||
| `Hidden` | **int* | :heavy_minus_sign: | N/A | 0 |
|
| `Hidden` | *int* | :heavy_check_mark: | N/A | 0 |
|
||||||
| `Location` | [][operations.Location](../../models/operations/location.md) | :heavy_minus_sign: | N/A | |
|
| `Location` | [][operations.Location](../../models/operations/location.md) | :heavy_check_mark: | N/A | |
|
||||||
@@ -8,4 +8,4 @@
|
|||||||
| `Size` | *int* | :heavy_check_mark: | N/A | 5 |
|
| `Size` | *int* | :heavy_check_mark: | N/A | 5 |
|
||||||
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | false |
|
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | false |
|
||||||
| `Title1` | *string* | :heavy_check_mark: | N/A | Plex Library |
|
| `Title1` | *string* | :heavy_check_mark: | N/A | Plex Library |
|
||||||
| `Directory` | [][operations.GetAllLibrariesDirectory](../../models/operations/getalllibrariesdirectory.md) | :heavy_minus_sign: | N/A | |
|
| `Directory` | [][operations.GetAllLibrariesDirectory](../../models/operations/getalllibrariesdirectory.md) | :heavy_check_mark: | N/A | |
|
||||||
@@ -6,5 +6,5 @@ The libraries available on the Server
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
||||||
| `MediaContainer` | [*operations.GetAllLibrariesMediaContainer](../../models/operations/getalllibrariesmediacontainer.md) | :heavy_minus_sign: | N/A |
|
| `MediaContainer` | [operations.GetAllLibrariesMediaContainer](../../models/operations/getalllibrariesmediacontainer.md) | :heavy_check_mark: | N/A |
|
||||||
11
docs/models/operations/getlibraryitemsfield.md
Normal file
11
docs/models/operations/getlibraryitemsfield.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetLibraryItemsField
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `Key` | *string* | :heavy_check_mark: | N/A | show.title |
|
||||||
|
| `Title` | *string* | :heavy_check_mark: | N/A | Show Title |
|
||||||
|
| `Type` | *string* | :heavy_check_mark: | N/A | string |
|
||||||
|
| `SubType` | **string* | :heavy_minus_sign: | N/A | rating |
|
||||||
9
docs/models/operations/getlibraryitemsfieldtype.md
Normal file
9
docs/models/operations/getlibraryitemsfieldtype.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# GetLibraryItemsFieldType
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
||||||
|
| `Type` | *string* | :heavy_check_mark: | N/A | tag |
|
||||||
|
| `Operator` | [][operations.GetLibraryItemsOperator](../../models/operations/getlibraryitemsoperator.md) | :heavy_check_mark: | N/A | |
|
||||||
12
docs/models/operations/getlibraryitemsfilter.md
Normal file
12
docs/models/operations/getlibraryitemsfilter.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# GetLibraryItemsFilter
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
|
||||||
|
| `Filter` | *string* | :heavy_check_mark: | N/A | genre |
|
||||||
|
| `FilterType` | *string* | :heavy_check_mark: | N/A | string |
|
||||||
|
| `Key` | *string* | :heavy_check_mark: | N/A | /library/sections/2/genre?type=2 |
|
||||||
|
| `Title` | *string* | :heavy_check_mark: | N/A | Genre |
|
||||||
|
| `Type` | *string* | :heavy_check_mark: | N/A | filter |
|
||||||
@@ -4,20 +4,21 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
|
||||||
| `Size` | **int* | :heavy_minus_sign: | N/A | 70 |
|
| `Size` | *int* | :heavy_check_mark: | N/A | 70 |
|
||||||
| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true |
|
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | true |
|
||||||
| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg |
|
| `Art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg |
|
||||||
| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
|
| `Identifier` | *string* | :heavy_check_mark: | N/A | com.plexapp.plugins.library |
|
||||||
| `LibrarySectionID` | [*operations.LibrarySectionID](../../models/operations/librarysectionid.md) | :heavy_minus_sign: | N/A | |
|
| `LibrarySectionID` | [operations.LibrarySectionID](../../models/operations/librarysectionid.md) | :heavy_check_mark: | N/A | |
|
||||||
| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies |
|
| `LibrarySectionTitle` | *string* | :heavy_check_mark: | N/A | Movies |
|
||||||
| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
|
| `LibrarySectionUUID` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
|
||||||
| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ |
|
| `MediaTagPrefix` | *string* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ |
|
||||||
| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 |
|
| `MediaTagVersion` | *int* | :heavy_check_mark: | N/A | 1701731894 |
|
||||||
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png |
|
| `Thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png |
|
||||||
| `Title1` | **string* | :heavy_minus_sign: | N/A | Movies |
|
| `Title1` | *string* | :heavy_check_mark: | N/A | Movies |
|
||||||
| `Title2` | **string* | :heavy_minus_sign: | N/A | Recently Released |
|
| `Title2` | *string* | :heavy_check_mark: | N/A | Recently Released |
|
||||||
| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | movie |
|
| `ViewGroup` | *string* | :heavy_check_mark: | N/A | movie |
|
||||||
| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 |
|
| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 |
|
||||||
| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true |
|
| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true |
|
||||||
| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | |
|
| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | |
|
||||||
|
| `Meta` | [*operations.Meta](../../models/operations/meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
||||||
@@ -5,21 +5,21 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 58683 |
|
| `RatingKey` | *string* | :heavy_check_mark: | N/A | 58683 |
|
||||||
| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683 |
|
| `Key` | *string* | :heavy_check_mark: | N/A | /library/metadata/58683 |
|
||||||
| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d7768ba96b655001fdc0408 |
|
| `GUID` | *string* | :heavy_check_mark: | N/A | plex://movie/5d7768ba96b655001fdc0408 |
|
||||||
| `Studio` | **string* | :heavy_minus_sign: | N/A | 20th Century Studios |
|
| `Studio` | **string* | :heavy_minus_sign: | N/A | 20th Century Studios |
|
||||||
| `Type` | **string* | :heavy_minus_sign: | N/A | movie |
|
| `Type` | *string* | :heavy_check_mark: | N/A | movie |
|
||||||
| `Title` | **string* | :heavy_minus_sign: | N/A | Avatar: The Way of Water |
|
| `Title` | *string* | :heavy_check_mark: | N/A | Avatar: The Way of Water |
|
||||||
| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 |
|
| `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. |
|
| `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 |
|
| `Rating` | **float64* | :heavy_minus_sign: | N/A | 7.6 |
|
||||||
| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.2 |
|
| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.2 |
|
||||||
| `Year` | **int* | :heavy_minus_sign: | N/A | 2022 |
|
| `Year` | *int* | :heavy_check_mark: | N/A | 2022 |
|
||||||
| `Tagline` | **string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `Tagline` | **string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `Duration` | **int* | :heavy_minus_sign: | N/A | 11558112 |
|
| `Duration` | *int* | :heavy_check_mark: | N/A | 11558112 |
|
||||||
| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC |
|
| `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 |
|
| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1680457607 |
|
||||||
| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1703239236 |
|
| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1703239236 |
|
||||||
@@ -34,12 +34,13 @@
|
|||||||
| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
|
| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
|
||||||
| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/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 |
|
| `GrandparentTheme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 |
|
||||||
| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_minus_sign: | N/A | |
|
| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_check_mark: | N/A | |
|
||||||
| `Genre` | [][operations.GetLibraryItemsGenre](../../models/operations/getlibraryitemsgenre.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 | |
|
| `Country` | [][operations.GetLibraryItemsCountry](../../models/operations/getlibraryitemscountry.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `Director` | [][operations.GetLibraryItemsDirector](../../models/operations/getlibraryitemsdirector.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 | |
|
| `Writer` | [][operations.GetLibraryItemsWriter](../../models/operations/getlibraryitemswriter.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `Role` | [][operations.GetLibraryItemsRole](../../models/operations/getlibraryitemsrole.md) | :heavy_minus_sign: | N/A | |
|
| `Role` | [][operations.GetLibraryItemsRole](../../models/operations/getlibraryitemsrole.md) | :heavy_minus_sign: | N/A | |
|
||||||
|
| `MediaGUID` | [][operations.MediaGUID](../../models/operations/mediaguid.md) | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||||
| `TitleSort` | **string* | :heavy_minus_sign: | N/A | Whale |
|
| `TitleSort` | **string* | :heavy_minus_sign: | N/A | Whale |
|
||||||
| `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 |
|
| `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1682752242 |
|
| `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1682752242 |
|
||||||
|
|||||||
9
docs/models/operations/getlibraryitemsoperator.md
Normal file
9
docs/models/operations/getlibraryitemsoperator.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# GetLibraryItemsOperator
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `Key` | *string* | :heavy_check_mark: | N/A | = |
|
||||||
|
| `Title` | *string* | :heavy_check_mark: | N/A | is |
|
||||||
13
docs/models/operations/getlibraryitemssort.md
Normal file
13
docs/models/operations/getlibraryitemssort.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# GetLibraryItemsSort
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||||
|
| `Default` | **string* | :heavy_minus_sign: | N/A | asc |
|
||||||
|
| `DefaultDirection` | *string* | :heavy_check_mark: | N/A | asc |
|
||||||
|
| `DescKey` | **string* | :heavy_minus_sign: | N/A | titleSort:desc |
|
||||||
|
| `FirstCharacterKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/2/firstCharacter |
|
||||||
|
| `Key` | *string* | :heavy_check_mark: | N/A | titleSort |
|
||||||
|
| `Title` | *string* | :heavy_check_mark: | N/A | Title |
|
||||||
14
docs/models/operations/getlibraryitemstype.md
Normal file
14
docs/models/operations/getlibraryitemstype.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# GetLibraryItemsType
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||||
|
| `Key` | *string* | :heavy_check_mark: | N/A | /library/sections/2/all?type=2 |
|
||||||
|
| `Type` | *string* | :heavy_check_mark: | N/A | show |
|
||||||
|
| `Title` | *string* | :heavy_check_mark: | N/A | TV Shows |
|
||||||
|
| `Active` | *bool* | :heavy_check_mark: | N/A | false |
|
||||||
|
| `Filter` | [][operations.GetLibraryItemsFilter](../../models/operations/getlibraryitemsfilter.md) | :heavy_minus_sign: | N/A | |
|
||||||
|
| `Sort` | [][operations.GetLibraryItemsSort](../../models/operations/getlibraryitemssort.md) | :heavy_minus_sign: | N/A | |
|
||||||
|
| `Field` | [][operations.GetLibraryItemsField](../../models/operations/getlibraryitemsfield.md) | :heavy_minus_sign: | N/A | |
|
||||||
@@ -4,8 +4,7 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
|
| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
|
||||||
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
|
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
|
||||||
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
| `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
|
| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
|
||||||
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
|
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
|
||||||
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ---------------------------------------- | ---------------------------------------- |
|
| ------------------------------------------ | ------------------------------------------ |
|
||||||
| `GetPlaylistContentsQueryParamTypeOne` | 1 |
|
| `GetPlaylistContentsQueryParamTypeMovie` | 1 |
|
||||||
| `GetPlaylistContentsQueryParamTypeTwo` | 2 |
|
| `GetPlaylistContentsQueryParamTypeShow` | 2 |
|
||||||
| `GetPlaylistContentsQueryParamTypeThree` | 3 |
|
| `GetPlaylistContentsQueryParamTypeSeason` | 3 |
|
||||||
| `GetPlaylistContentsQueryParamTypeFour` | 4 |
|
| `GetPlaylistContentsQueryParamTypeEpisode` | 4 |
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# GetServerResourcesGlobals
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
@@ -4,8 +4,7 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
| `IncludeHTTPS` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
| `IncludeHTTPS` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||||
| `IncludeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
| `IncludeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||||
| `IncludeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
| `IncludeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# GetTokenByPinIDGlobals
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `PinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for |
|
||||||
| `PinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
|
||||||
@@ -26,7 +26,7 @@ Logged in user details
|
|||||||
| `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | |
|
| `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | |
|
||||||
| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 |
|
| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 |
|
||||||
| `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 |
|
| `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 |
|
||||||
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
|
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
|
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
|
||||||
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
|
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
|
||||||
| `MailingListStatus` | [operations.MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
| `MailingListStatus` | [operations.MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||||
@@ -34,7 +34,7 @@ Logged in user details
|
|||||||
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
||||||
| `Profile` | [operations.UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | |
|
| `Profile` | [operations.UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | |
|
||||||
| `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
|
| `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
|
||||||
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
|
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
|
| `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
|
||||||
| `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
|
| `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
|
||||||
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |
|
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------------------------------------- | ----------------------------------------- |
|
| ------------------------------------------- | ------------------------------------------- |
|
||||||
| `GetTopWatchedContentQueryParamTypeOne` | 1 |
|
| `GetTopWatchedContentQueryParamTypeMovie` | 1 |
|
||||||
| `GetTopWatchedContentQueryParamTypeTwo` | 2 |
|
| `GetTopWatchedContentQueryParamTypeShow` | 2 |
|
||||||
| `GetTopWatchedContentQueryParamTypeThree` | 3 |
|
| `GetTopWatchedContentQueryParamTypeSeason` | 3 |
|
||||||
| `GetTopWatchedContentQueryParamTypeFour` | 4 |
|
| `GetTopWatchedContentQueryParamTypeEpisode` | 4 |
|
||||||
@@ -7,6 +7,6 @@ Adds the Guids object to the response
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------------------ | ------------------ |
|
| --------------------- | --------------------- |
|
||||||
| `IncludeGuidsZero` | 0 |
|
| `IncludeGuidsDisable` | 0 |
|
||||||
| `IncludeGuidsOne` | 1 |
|
| `IncludeGuidsEnable` | 1 |
|
||||||
@@ -6,6 +6,6 @@ Include Https entries in the results
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------------------ | ------------------ |
|
| --------------------- | --------------------- |
|
||||||
| `IncludeHTTPSZero` | 0 |
|
| `IncludeHTTPSDisable` | 0 |
|
||||||
| `IncludeHTTPSOne` | 1 |
|
| `IncludeHTTPSEnable` | 1 |
|
||||||
@@ -6,6 +6,6 @@ Include IPv6 entries in the results
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------------- | ----------------- |
|
| -------------------- | -------------------- |
|
||||||
| `IncludeIPv6Zero` | 0 |
|
| `IncludeIPv6Disable` | 0 |
|
||||||
| `IncludeIPv6One` | 1 |
|
| `IncludeIPv6Enable` | 1 |
|
||||||
@@ -7,6 +7,6 @@ Adds the Meta object to the response
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------------- | ----------------- |
|
| -------------------- | -------------------- |
|
||||||
| `IncludeMetaZero` | 0 |
|
| `IncludeMetaDisable` | 0 |
|
||||||
| `IncludeMetaOne` | 1 |
|
| `IncludeMetaEnable` | 1 |
|
||||||
@@ -8,6 +8,6 @@ E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------------------ | ------------------ |
|
| --------------------- | --------------------- |
|
||||||
| `IncludeRelayZero` | 0 |
|
| `IncludeRelayDisable` | 0 |
|
||||||
| `IncludeRelayOne` | 1 |
|
| `IncludeRelayEnable` | 1 |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
| `ID` | **int* | :heavy_minus_sign: | N/A | 1 |
|
| `ID` | *int* | :heavy_check_mark: | N/A | 1 |
|
||||||
| `Path` | **string* | :heavy_minus_sign: | N/A | /movies |
|
| `Path` | *string* | :heavy_check_mark: | N/A | /movies |
|
||||||
8
docs/models/operations/mediaguid.md
Normal file
8
docs/models/operations/mediaguid.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# MediaGUID
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||||
|
| `ID` | *string* | :heavy_check_mark: | Can be one of the following formats:<br/>imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/> | imdb://tt13015952 |
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
# MediaReviewsVisibility
|
# MediaReviewsVisibility
|
||||||
|
|
||||||
|
Whether or not the account has media reviews visibility enabled
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ---------------------------- | ---------------------------- |
|
| ------------------------------- | ------------------------------- |
|
||||||
| `MediaReviewsVisibilityZero` | 0 |
|
| `MediaReviewsVisibilityDisable` | 0 |
|
||||||
| `MediaReviewsVisibilityOne` | 1 |
|
| `MediaReviewsVisibilityEnable` | 1 |
|
||||||
12
docs/models/operations/meta.md
Normal file
12
docs/models/operations/meta.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Meta
|
||||||
|
|
||||||
|
The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
||||||
|
| `Type` | [][operations.GetLibraryItemsType](../../models/operations/getlibraryitemstype.md) | :heavy_minus_sign: | N/A |
|
||||||
|
| `FieldType` | [][operations.GetLibraryItemsFieldType](../../models/operations/getlibraryitemsfieldtype.md) | :heavy_minus_sign: | N/A |
|
||||||
@@ -3,29 +3,29 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
||||||
| `Name` | *string* | :heavy_check_mark: | N/A |
|
| `Name` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `Product` | *string* | :heavy_check_mark: | N/A |
|
| `Product` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `ProductVersion` | *string* | :heavy_check_mark: | N/A |
|
| `ProductVersion` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `Platform` | *string* | :heavy_check_mark: | N/A |
|
| `Platform` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `PlatformVersion` | *string* | :heavy_check_mark: | N/A |
|
| `PlatformVersion` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `Device` | *string* | :heavy_check_mark: | N/A |
|
| `Device` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A |
|
| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A |
|
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2019-06-24T11:38:02Z |
|
||||||
| `LastSeenAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A |
|
| `LastSeenAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2019-06-24T11:38:02Z |
|
||||||
| `Provides` | *string* | :heavy_check_mark: | N/A |
|
| `Provides` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `OwnerID` | *int64* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request |
|
| `OwnerID` | *int64* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request | |
|
||||||
| `SourceTitle` | *string* | :heavy_check_mark: | N/A |
|
| `SourceTitle` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `PublicAddress` | *string* | :heavy_check_mark: | N/A |
|
| `PublicAddress` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `AccessToken` | *string* | :heavy_check_mark: | N/A |
|
| `AccessToken` | *string* | :heavy_check_mark: | N/A | |
|
||||||
| `Owned` | *bool* | :heavy_check_mark: | N/A |
|
| `Owned` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `Home` | *bool* | :heavy_check_mark: | N/A |
|
| `Home` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `Synced` | *bool* | :heavy_check_mark: | N/A |
|
| `Synced` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `Relay` | *bool* | :heavy_check_mark: | N/A |
|
| `Relay` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `Presence` | *bool* | :heavy_check_mark: | N/A |
|
| `Presence` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `HTTPSRequired` | *bool* | :heavy_check_mark: | N/A |
|
| `HTTPSRequired` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `PublicAddressMatches` | *bool* | :heavy_check_mark: | N/A |
|
| `PublicAddressMatches` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `DNSRebindingProtection` | *bool* | :heavy_check_mark: | N/A |
|
| `DNSRebindingProtection` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `NatLoopbackSupported` | *bool* | :heavy_check_mark: | N/A |
|
| `NatLoopbackSupported` | *bool* | :heavy_check_mark: | N/A | |
|
||||||
| `Connections` | [][operations.Connections](../../models/operations/connections.md) | :heavy_check_mark: | N/A |
|
| `Connections` | [][operations.Connections](../../models/operations/connections.md) | :heavy_check_mark: | N/A | |
|
||||||
@@ -6,6 +6,6 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------------------------------------------- | ------------------------------------------- |
|
| ---------------------------------------------- | ---------------------------------------------- |
|
||||||
| `PostUsersSignInDataAutoSelectSubtitleZero` | 0 |
|
| `PostUsersSignInDataAutoSelectSubtitleDisable` | 0 |
|
||||||
| `PostUsersSignInDataAutoSelectSubtitleOne` | 1 |
|
| `PostUsersSignInDataAutoSelectSubtitleEnable` | 1 |
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
# PostUsersSignInDataDefaultSubtitleAccessibility
|
# PostUsersSignInDataDefaultSubtitleAccessibility
|
||||||
|
|
||||||
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------------------------------------------------- | ----------------------------------------------------- |
|
| -------------------------------------------------------- | -------------------------------------------------------- |
|
||||||
| `PostUsersSignInDataDefaultSubtitleAccessibilityZero` | 0 |
|
| `PostUsersSignInDataDefaultSubtitleAccessibilityDisable` | 0 |
|
||||||
| `PostUsersSignInDataDefaultSubtitleAccessibilityOne` | 1 |
|
| `PostUsersSignInDataDefaultSubtitleAccessibilityEnable` | 1 |
|
||||||
@@ -6,6 +6,6 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ---------------------------------------------- | ---------------------------------------------- |
|
| ------------------------------------------------- | ------------------------------------------------- |
|
||||||
| `PostUsersSignInDataDefaultSubtitleForcedZero` | 0 |
|
| `PostUsersSignInDataDefaultSubtitleForcedDisable` | 0 |
|
||||||
| `PostUsersSignInDataDefaultSubtitleForcedOne` | 1 |
|
| `PostUsersSignInDataDefaultSubtitleForcedEnable` | 1 |
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# PostUsersSignInDataGlobals
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
# PostUsersSignInDataMediaReviewsVisibility
|
# PostUsersSignInDataMediaReviewsVisibility
|
||||||
|
|
||||||
|
Whether or not the account has media reviews visibility enabled
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------------------------------------------- | ----------------------------------------------- |
|
| -------------------------------------------------- | -------------------------------------------------- |
|
||||||
| `PostUsersSignInDataMediaReviewsVisibilityZero` | 0 |
|
| `PostUsersSignInDataMediaReviewsVisibilityDisable` | 0 |
|
||||||
| `PostUsersSignInDataMediaReviewsVisibilityOne` | 1 |
|
| `PostUsersSignInDataMediaReviewsVisibilityEnable` | 1 |
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# PostUsersSignInDataRequest
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `ClientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
| `RequestBody` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | |
|
|
||||||
@@ -26,7 +26,7 @@ Returns the user account data with a valid auth token
|
|||||||
| `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | |
|
| `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | |
|
||||||
| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 |
|
| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 |
|
||||||
| `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 |
|
| `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 |
|
||||||
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
|
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
|
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
|
||||||
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
|
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
|
||||||
| `MailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
| `MailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||||
@@ -34,7 +34,7 @@ Returns the user account data with a valid auth token
|
|||||||
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
||||||
| `Profile` | [operations.PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | |
|
| `Profile` | [operations.PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | |
|
||||||
| `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
|
| `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
|
||||||
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
|
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
|
| `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
|
||||||
| `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
|
| `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
|
||||||
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |
|
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
|
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
|
||||||
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
|
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
|
||||||
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
|
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
|
||||||
| `AutoSelectSubtitle` | [*operations.PostUsersSignInDataAutoSelectSubtitle](../../models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
|
| `AutoSelectSubtitle` | [*operations.PostUsersSignInDataAutoSelectSubtitle](../../models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `DefaultSubtitleAccessibility` | [*operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
|
| `DefaultSubtitleAccessibility` | [*operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `DefaultSubtitleForced` | [*operations.PostUsersSignInDataDefaultSubtitleForced](../../models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
|
| `DefaultSubtitleForced` | [*operations.PostUsersSignInDataDefaultSubtitleForced](../../models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `WatchedIndicator` | [*operations.PostUsersSignInDataWatchedIndicator](../../models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
|
| `WatchedIndicator` | [*operations.PostUsersSignInDataWatchedIndicator](../../models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `MediaReviewsVisibility` | [*operations.PostUsersSignInDataMediaReviewsVisibility](../../models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 |
|
| `MediaReviewsVisibility` | [*operations.PostUsersSignInDataMediaReviewsVisibility](../../models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
# PostUsersSignInDataWatchedIndicator
|
# PostUsersSignInDataWatchedIndicator
|
||||||
|
|
||||||
|
Whether or not media watched indicators are enabled (little orange dot on media)
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------------------------------------- | ----------------------------------------- |
|
| -------------------------------------------- | -------------------------------------------- |
|
||||||
| `PostUsersSignInDataWatchedIndicatorZero` | 0 |
|
| `PostUsersSignInDataWatchedIndicatorDisable` | 0 |
|
||||||
| `PostUsersSignInDataWatchedIndicatorOne` | 1 |
|
| `PostUsersSignInDataWatchedIndicatorEnable` | 1 |
|
||||||
11
docs/models/operations/protocol.md
Normal file
11
docs/models/operations/protocol.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Protocol
|
||||||
|
|
||||||
|
The protocol used for the connection (http, https, etc)
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| --------------- | --------------- |
|
||||||
|
| `ProtocolHTTP` | http |
|
||||||
|
| `ProtocolHTTPS` | https |
|
||||||
@@ -12,8 +12,8 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| --------------------- | --------------------- |
|
| ----------------------- | ----------------------- |
|
||||||
| `QueryParamTypeOne` | 1 |
|
| `QueryParamTypeMovie` | 1 |
|
||||||
| `QueryParamTypeTwo` | 2 |
|
| `QueryParamTypeShow` | 2 |
|
||||||
| `QueryParamTypeThree` | 3 |
|
| `QueryParamTypeSeason` | 3 |
|
||||||
| `QueryParamTypeFour` | 4 |
|
| `QueryParamTypeEpisode` | 4 |
|
||||||
@@ -12,8 +12,8 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
|||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ----------- | ----------- |
|
| ------------- | ------------- |
|
||||||
| `TypeOne` | 1 |
|
| `TypeMovie` | 1 |
|
||||||
| `TypeTwo` | 2 |
|
| `TypeShow` | 2 |
|
||||||
| `TypeThree` | 3 |
|
| `TypeSeason` | 3 |
|
||||||
| `TypeFour` | 4 |
|
| `TypeEpisode` | 4 |
|
||||||
@@ -7,3 +7,4 @@
|
|||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. <br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed. <br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename. <br/>If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
| `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. <br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed. <br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename. <br/>If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
||||||
| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
|
| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
|
||||||
|
| `SectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 |
|
||||||
@@ -4,12 +4,12 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||||
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
|
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
|
||||||
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
|
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
|
||||||
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
|
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
|
||||||
| `AutoSelectSubtitle` | [*operations.AutoSelectSubtitle](../../models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
|
| `AutoSelectSubtitle` | [*operations.AutoSelectSubtitle](../../models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `DefaultSubtitleAccessibility` | [*operations.DefaultSubtitleAccessibility](../../models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
|
| `DefaultSubtitleAccessibility` | [*operations.DefaultSubtitleAccessibility](../../models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `DefaultSubtitleForced` | [*operations.DefaultSubtitleForced](../../models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
|
| `DefaultSubtitleForced` | [*operations.DefaultSubtitleForced](../../models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `WatchedIndicator` | [*operations.WatchedIndicator](../../models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
|
| `WatchedIndicator` | [*operations.WatchedIndicator](../../models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `MediaReviewsVisibility` | [*operations.MediaReviewsVisibility](../../models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 |
|
| `MediaReviewsVisibility` | [*operations.MediaReviewsVisibility](../../models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
# WatchedIndicator
|
# WatchedIndicator
|
||||||
|
|
||||||
|
Whether or not media watched indicators are enabled (little orange dot on media)
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ---------------------- | ---------------------- |
|
| ------------------------- | ------------------------- |
|
||||||
| `WatchedIndicatorZero` | 0 |
|
| `WatchedIndicatorDisable` | 0 |
|
||||||
| `WatchedIndicatorOne` | 1 |
|
| `WatchedIndicatorEnable` | 1 |
|
||||||
@@ -101,7 +101,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "server://client-identifier")
|
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "provider://provider-identifier")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -214,7 +214,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Authentication.PostUsersSignInData(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), &operations.PostUsersSignInDataRequestBody{
|
res, err := s.Authentication.PostUsersSignInData(ctx, &operations.PostUsersSignInDataRequestBody{
|
||||||
Login: "username@email.com",
|
Login: "username@email.com",
|
||||||
Password: "password123",
|
Password: "password123",
|
||||||
VerificationCode: plexgo.String("123456"),
|
VerificationCode: plexgo.String("123456"),
|
||||||
@@ -230,12 +230,11 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
|
||||||
| `clientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `request` | [operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||||
| `requestBody` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | |
|
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
|
||||||
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|
||||||
|
|||||||
@@ -404,9 +404,9 @@ func main() {
|
|||||||
res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{
|
res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{
|
||||||
SectionKey: 9518,
|
SectionKey: 9518,
|
||||||
Tag: operations.TagEdition,
|
Tag: operations.TagEdition,
|
||||||
IncludeGuids: operations.IncludeGuidsOne.ToPointer(),
|
IncludeGuids: operations.IncludeGuidsEnable.ToPointer(),
|
||||||
IncludeMeta: operations.IncludeMetaOne.ToPointer(),
|
IncludeMeta: operations.IncludeMetaEnable.ToPointer(),
|
||||||
Type: operations.TypeTwo,
|
Type: operations.TypeShow,
|
||||||
XPlexContainerStart: plexgo.Int(0),
|
XPlexContainerStart: plexgo.Int(0),
|
||||||
XPlexContainerSize: plexgo.Int(50),
|
XPlexContainerSize: plexgo.Int(50),
|
||||||
})
|
})
|
||||||
@@ -545,7 +545,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeTwo)
|
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeShow)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -722,7 +722,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeTwo, plexgo.Int64(1))
|
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeShow, plexgo.Int64(1))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeTwo)
|
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeShow)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -532,7 +532,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero)
|
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -549,6 +549,7 @@ func main() {
|
|||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
||||||
| `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. <br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed. <br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename. <br/>If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
| `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. <br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed. <br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename. <br/>If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
||||||
| `force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
|
| `force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
|
||||||
|
| `sectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 |
|
||||||
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
|
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer())
|
res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -279,9 +279,8 @@ func main() {
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
||||||
| `clientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
|
||||||
| `includeHTTPS` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
| `includeHTTPS` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||||
| `includeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
| `includeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||||
| `includeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
| `includeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||||
@@ -381,7 +380,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Plex.GetTokenByPinID(ctx, 408895, plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
|
res, err := s.Plex.GetTokenByPinID(ctx, 408895)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -393,12 +392,11 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
|
||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
|
||||||
| `pinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
| `pinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for |
|
||||||
| `clientID` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
|
||||||
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ func main() {
|
|||||||
Width: 110,
|
Width: 110,
|
||||||
Height: 165,
|
Height: 165,
|
||||||
Opacity: 100,
|
Opacity: 100,
|
||||||
Blur: 20,
|
Blur: 0,
|
||||||
MinSize: operations.MinSizeOne,
|
MinSize: operations.MinSizeOne,
|
||||||
Upscale: operations.UpscaleOne,
|
Upscale: operations.UpscaleOne,
|
||||||
URL: "/library/metadata/49564/thumb/1654258204",
|
URL: "/library/metadata/49564/thumb/1654258204",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
package components
|
package components
|
||||||
|
|
||||||
type Security struct {
|
type Security struct {
|
||||||
AccessToken *string `security:"scheme,type=apiKey,subtype=query,name=X-Plex-Token"`
|
AccessToken *string `security:"scheme,type=apiKey,subtype=header,name=X-Plex-Token"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Security) GetAccessToken() *string {
|
func (o *Security) GetAccessToken() *string {
|
||||||
|
|||||||
@@ -7,194 +7,194 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Location struct {
|
type Location struct {
|
||||||
ID *int `json:"id,omitempty"`
|
ID int `json:"id"`
|
||||||
Path *string `json:"path,omitempty"`
|
Path string `json:"path"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Location) GetID() *int {
|
func (o *Location) GetID() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.ID
|
return o.ID
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Location) GetPath() *string {
|
func (o *Location) GetPath() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Path
|
return o.Path
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetAllLibrariesDirectory struct {
|
type GetAllLibrariesDirectory struct {
|
||||||
AllowSync *bool `json:"allowSync,omitempty"`
|
AllowSync bool `json:"allowSync"`
|
||||||
Art *string `json:"art,omitempty"`
|
Art string `json:"art"`
|
||||||
Composite *string `json:"composite,omitempty"`
|
Composite string `json:"composite"`
|
||||||
Filters *bool `json:"filters,omitempty"`
|
Filters bool `json:"filters"`
|
||||||
Refreshing *bool `json:"refreshing,omitempty"`
|
Refreshing bool `json:"refreshing"`
|
||||||
Thumb *string `json:"thumb,omitempty"`
|
Thumb string `json:"thumb"`
|
||||||
Key *string `json:"key,omitempty"`
|
Key string `json:"key"`
|
||||||
Type *string `json:"type,omitempty"`
|
Type string `json:"type"`
|
||||||
Title *string `json:"title,omitempty"`
|
Title string `json:"title"`
|
||||||
Agent *string `json:"agent,omitempty"`
|
Agent string `json:"agent"`
|
||||||
Scanner *string `json:"scanner,omitempty"`
|
Scanner string `json:"scanner"`
|
||||||
Language *string `json:"language,omitempty"`
|
Language string `json:"language"`
|
||||||
UUID *string `json:"uuid,omitempty"`
|
UUID string `json:"uuid"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
UpdatedAt *int64 `json:"updatedAt,omitempty"`
|
UpdatedAt int64 `json:"updatedAt"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
CreatedAt *int64 `json:"createdAt,omitempty"`
|
CreatedAt int64 `json:"createdAt"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
ScannedAt *int64 `json:"scannedAt,omitempty"`
|
ScannedAt int64 `json:"scannedAt"`
|
||||||
Content *bool `json:"content,omitempty"`
|
Content bool `json:"content"`
|
||||||
Directory *bool `json:"directory,omitempty"`
|
Directory bool `json:"directory"`
|
||||||
ContentChangedAt *int `json:"contentChangedAt,omitempty"`
|
ContentChangedAt int `json:"contentChangedAt"`
|
||||||
Hidden *int `json:"hidden,omitempty"`
|
Hidden int `json:"hidden"`
|
||||||
Location []Location `json:"Location,omitempty"`
|
Location []Location `json:"Location"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetAllowSync() *bool {
|
func (o *GetAllLibrariesDirectory) GetAllowSync() bool {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return false
|
||||||
}
|
}
|
||||||
return o.AllowSync
|
return o.AllowSync
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetArt() *string {
|
func (o *GetAllLibrariesDirectory) GetArt() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Art
|
return o.Art
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetComposite() *string {
|
func (o *GetAllLibrariesDirectory) GetComposite() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Composite
|
return o.Composite
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetFilters() *bool {
|
func (o *GetAllLibrariesDirectory) GetFilters() bool {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return false
|
||||||
}
|
}
|
||||||
return o.Filters
|
return o.Filters
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetRefreshing() *bool {
|
func (o *GetAllLibrariesDirectory) GetRefreshing() bool {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return false
|
||||||
}
|
}
|
||||||
return o.Refreshing
|
return o.Refreshing
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetThumb() *string {
|
func (o *GetAllLibrariesDirectory) GetThumb() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Thumb
|
return o.Thumb
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetKey() *string {
|
func (o *GetAllLibrariesDirectory) GetKey() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Key
|
return o.Key
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetType() *string {
|
func (o *GetAllLibrariesDirectory) GetType() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Type
|
return o.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetTitle() *string {
|
func (o *GetAllLibrariesDirectory) GetTitle() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Title
|
return o.Title
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetAgent() *string {
|
func (o *GetAllLibrariesDirectory) GetAgent() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Agent
|
return o.Agent
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetScanner() *string {
|
func (o *GetAllLibrariesDirectory) GetScanner() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Scanner
|
return o.Scanner
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetLanguage() *string {
|
func (o *GetAllLibrariesDirectory) GetLanguage() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Language
|
return o.Language
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetUUID() *string {
|
func (o *GetAllLibrariesDirectory) GetUUID() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.UUID
|
return o.UUID
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetUpdatedAt() *int64 {
|
func (o *GetAllLibrariesDirectory) GetUpdatedAt() int64 {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.UpdatedAt
|
return o.UpdatedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetCreatedAt() *int64 {
|
func (o *GetAllLibrariesDirectory) GetCreatedAt() int64 {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.CreatedAt
|
return o.CreatedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetScannedAt() *int64 {
|
func (o *GetAllLibrariesDirectory) GetScannedAt() int64 {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.ScannedAt
|
return o.ScannedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetContent() *bool {
|
func (o *GetAllLibrariesDirectory) GetContent() bool {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return false
|
||||||
}
|
}
|
||||||
return o.Content
|
return o.Content
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetDirectory() *bool {
|
func (o *GetAllLibrariesDirectory) GetDirectory() bool {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return false
|
||||||
}
|
}
|
||||||
return o.Directory
|
return o.Directory
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetContentChangedAt() *int {
|
func (o *GetAllLibrariesDirectory) GetContentChangedAt() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.ContentChangedAt
|
return o.ContentChangedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetHidden() *int {
|
func (o *GetAllLibrariesDirectory) GetHidden() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.Hidden
|
return o.Hidden
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetLocation() []Location {
|
func (o *GetAllLibrariesDirectory) GetLocation() []Location {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return []Location{}
|
||||||
}
|
}
|
||||||
return o.Location
|
return o.Location
|
||||||
}
|
}
|
||||||
@@ -203,7 +203,7 @@ type GetAllLibrariesMediaContainer struct {
|
|||||||
Size int `json:"size"`
|
Size int `json:"size"`
|
||||||
AllowSync bool `json:"allowSync"`
|
AllowSync bool `json:"allowSync"`
|
||||||
Title1 string `json:"title1"`
|
Title1 string `json:"title1"`
|
||||||
Directory []GetAllLibrariesDirectory `json:"Directory,omitempty"`
|
Directory []GetAllLibrariesDirectory `json:"Directory"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesMediaContainer) GetSize() int {
|
func (o *GetAllLibrariesMediaContainer) GetSize() int {
|
||||||
@@ -229,19 +229,19 @@ func (o *GetAllLibrariesMediaContainer) GetTitle1() string {
|
|||||||
|
|
||||||
func (o *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory {
|
func (o *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return []GetAllLibrariesDirectory{}
|
||||||
}
|
}
|
||||||
return o.Directory
|
return o.Directory
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAllLibrariesResponseBody - The libraries available on the Server
|
// GetAllLibrariesResponseBody - The libraries available on the Server
|
||||||
type GetAllLibrariesResponseBody struct {
|
type GetAllLibrariesResponseBody struct {
|
||||||
MediaContainer *GetAllLibrariesMediaContainer `json:"MediaContainer,omitempty"`
|
MediaContainer GetAllLibrariesMediaContainer `json:"MediaContainer"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer {
|
func (o *GetAllLibrariesResponseBody) GetMediaContainer() GetAllLibrariesMediaContainer {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return GetAllLibrariesMediaContainer{}
|
||||||
}
|
}
|
||||||
return o.MediaContainer
|
return o.MediaContainer
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,18 +90,18 @@ func (e *Tag) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// IncludeGuids - Adds the Guids object to the response
|
// IncludeGuids - Adds the Guids object to the response
|
||||||
type IncludeGuids int64
|
type IncludeGuids int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IncludeGuidsZero IncludeGuids = 0
|
IncludeGuidsDisable IncludeGuids = 0
|
||||||
IncludeGuidsOne IncludeGuids = 1
|
IncludeGuidsEnable IncludeGuids = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e IncludeGuids) ToPointer() *IncludeGuids {
|
func (e IncludeGuids) ToPointer() *IncludeGuids {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *IncludeGuids) UnmarshalJSON(data []byte) error {
|
func (e *IncludeGuids) UnmarshalJSON(data []byte) error {
|
||||||
var v int64
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -117,18 +117,18 @@ func (e *IncludeGuids) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// IncludeMeta - Adds the Meta object to the response
|
// IncludeMeta - Adds the Meta object to the response
|
||||||
type IncludeMeta int64
|
type IncludeMeta int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IncludeMetaZero IncludeMeta = 0
|
IncludeMetaDisable IncludeMeta = 0
|
||||||
IncludeMetaOne IncludeMeta = 1
|
IncludeMetaEnable IncludeMeta = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e IncludeMeta) ToPointer() *IncludeMeta {
|
func (e IncludeMeta) ToPointer() *IncludeMeta {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *IncludeMeta) UnmarshalJSON(data []byte) error {
|
func (e *IncludeMeta) UnmarshalJSON(data []byte) error {
|
||||||
var v int64
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -152,10 +152,10 @@ func (e *IncludeMeta) UnmarshalJSON(data []byte) error {
|
|||||||
type Type int64
|
type Type int64
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TypeOne Type = 1
|
TypeMovie Type = 1
|
||||||
TypeTwo Type = 2
|
TypeShow Type = 2
|
||||||
TypeThree Type = 3
|
TypeSeason Type = 3
|
||||||
TypeFour Type = 4
|
TypeEpisode Type = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e Type) ToPointer() *Type {
|
func (e Type) ToPointer() *Type {
|
||||||
@@ -190,10 +190,10 @@ type GetLibraryItemsRequest struct {
|
|||||||
Tag Tag `pathParam:"style=simple,explode=false,name=tag"`
|
Tag Tag `pathParam:"style=simple,explode=false,name=tag"`
|
||||||
// Adds the Guids object to the response
|
// Adds the Guids object to the response
|
||||||
//
|
//
|
||||||
IncludeGuids *IncludeGuids `queryParam:"style=form,explode=true,name=includeGuids"`
|
IncludeGuids *IncludeGuids `default:"0" queryParam:"style=form,explode=true,name=includeGuids"`
|
||||||
// Adds the Meta object to the response
|
// Adds the Meta object to the response
|
||||||
//
|
//
|
||||||
IncludeMeta *IncludeMeta `queryParam:"style=form,explode=true,name=includeMeta"`
|
IncludeMeta *IncludeMeta `default:"0" queryParam:"style=form,explode=true,name=includeMeta"`
|
||||||
// The type of media to retrieve.
|
// The type of media to retrieve.
|
||||||
// 1 = movie
|
// 1 = movie
|
||||||
// 2 = show
|
// 2 = show
|
||||||
@@ -566,22 +566,36 @@ func (o *GetLibraryItemsRole) GetTag() *string {
|
|||||||
return o.Tag
|
return o.Tag
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MediaGUID struct {
|
||||||
|
// Can be one of the following formats:
|
||||||
|
// imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||||
|
//
|
||||||
|
ID string `json:"id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *MediaGUID) GetID() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.ID
|
||||||
|
}
|
||||||
|
|
||||||
type GetLibraryItemsMetadata struct {
|
type GetLibraryItemsMetadata struct {
|
||||||
RatingKey *string `json:"ratingKey,omitempty"`
|
RatingKey string `json:"ratingKey"`
|
||||||
Key *string `json:"key,omitempty"`
|
Key string `json:"key"`
|
||||||
GUID *string `json:"guid,omitempty"`
|
GUID string `json:"guid"`
|
||||||
Studio *string `json:"studio,omitempty"`
|
Studio *string `json:"studio,omitempty"`
|
||||||
Type *string `json:"type,omitempty"`
|
Type string `json:"type"`
|
||||||
Title *string `json:"title,omitempty"`
|
Title string `json:"title"`
|
||||||
ContentRating *string `json:"contentRating,omitempty"`
|
ContentRating *string `json:"contentRating,omitempty"`
|
||||||
Summary *string `json:"summary,omitempty"`
|
Summary *string `json:"summary,omitempty"`
|
||||||
Rating *float64 `json:"rating,omitempty"`
|
Rating *float64 `json:"rating,omitempty"`
|
||||||
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
||||||
Year *int `json:"year,omitempty"`
|
Year int `json:"year"`
|
||||||
Tagline *string `json:"tagline,omitempty"`
|
Tagline *string `json:"tagline,omitempty"`
|
||||||
Thumb *string `json:"thumb,omitempty"`
|
Thumb *string `json:"thumb,omitempty"`
|
||||||
Art *string `json:"art,omitempty"`
|
Art *string `json:"art,omitempty"`
|
||||||
Duration *int `json:"duration,omitempty"`
|
Duration int `json:"duration"`
|
||||||
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
||||||
AddedAt *int `json:"addedAt,omitempty"`
|
AddedAt *int `json:"addedAt,omitempty"`
|
||||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||||
@@ -596,12 +610,15 @@ type GetLibraryItemsMetadata struct {
|
|||||||
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
|
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
|
||||||
GrandparentArt *string `json:"grandparentArt,omitempty"`
|
GrandparentArt *string `json:"grandparentArt,omitempty"`
|
||||||
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
|
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
|
||||||
Media []GetLibraryItemsMedia `json:"Media,omitempty"`
|
Media []GetLibraryItemsMedia `json:"Media"`
|
||||||
Genre []GetLibraryItemsGenre `json:"Genre,omitempty"`
|
Genre []GetLibraryItemsGenre `json:"Genre,omitempty"`
|
||||||
Country []GetLibraryItemsCountry `json:"Country,omitempty"`
|
Country []GetLibraryItemsCountry `json:"Country,omitempty"`
|
||||||
Director []GetLibraryItemsDirector `json:"Director,omitempty"`
|
Director []GetLibraryItemsDirector `json:"Director,omitempty"`
|
||||||
Writer []GetLibraryItemsWriter `json:"Writer,omitempty"`
|
Writer []GetLibraryItemsWriter `json:"Writer,omitempty"`
|
||||||
Role []GetLibraryItemsRole `json:"Role,omitempty"`
|
Role []GetLibraryItemsRole `json:"Role,omitempty"`
|
||||||
|
// The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||||
|
//
|
||||||
|
MediaGUID []MediaGUID `json:"Guid,omitempty"`
|
||||||
TitleSort *string `json:"titleSort,omitempty"`
|
TitleSort *string `json:"titleSort,omitempty"`
|
||||||
ViewCount *int `json:"viewCount,omitempty"`
|
ViewCount *int `json:"viewCount,omitempty"`
|
||||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||||
@@ -637,23 +654,23 @@ func (g *GetLibraryItemsMetadata) UnmarshalJSON(data []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetRatingKey() *string {
|
func (o *GetLibraryItemsMetadata) GetRatingKey() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.RatingKey
|
return o.RatingKey
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetKey() *string {
|
func (o *GetLibraryItemsMetadata) GetKey() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Key
|
return o.Key
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetGUID() *string {
|
func (o *GetLibraryItemsMetadata) GetGUID() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.GUID
|
return o.GUID
|
||||||
}
|
}
|
||||||
@@ -665,16 +682,16 @@ func (o *GetLibraryItemsMetadata) GetStudio() *string {
|
|||||||
return o.Studio
|
return o.Studio
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetType() *string {
|
func (o *GetLibraryItemsMetadata) GetType() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Type
|
return o.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetTitle() *string {
|
func (o *GetLibraryItemsMetadata) GetTitle() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Title
|
return o.Title
|
||||||
}
|
}
|
||||||
@@ -707,9 +724,9 @@ func (o *GetLibraryItemsMetadata) GetAudienceRating() *float64 {
|
|||||||
return o.AudienceRating
|
return o.AudienceRating
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetYear() *int {
|
func (o *GetLibraryItemsMetadata) GetYear() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.Year
|
return o.Year
|
||||||
}
|
}
|
||||||
@@ -735,9 +752,9 @@ func (o *GetLibraryItemsMetadata) GetArt() *string {
|
|||||||
return o.Art
|
return o.Art
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetDuration() *int {
|
func (o *GetLibraryItemsMetadata) GetDuration() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.Duration
|
return o.Duration
|
||||||
}
|
}
|
||||||
@@ -842,7 +859,7 @@ func (o *GetLibraryItemsMetadata) GetGrandparentTheme() *string {
|
|||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia {
|
func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return []GetLibraryItemsMedia{}
|
||||||
}
|
}
|
||||||
return o.Media
|
return o.Media
|
||||||
}
|
}
|
||||||
@@ -882,6 +899,13 @@ func (o *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole {
|
|||||||
return o.Role
|
return o.Role
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsMetadata) GetMediaGUID() []MediaGUID {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.MediaGUID
|
||||||
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMetadata) GetTitleSort() *string {
|
func (o *GetLibraryItemsMetadata) GetTitleSort() *string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return nil
|
||||||
@@ -1036,112 +1060,361 @@ func (o *GetLibraryItemsMetadata) GetParentTheme() *string {
|
|||||||
return o.ParentTheme
|
return o.ParentTheme
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type GetLibraryItemsFilter struct {
|
||||||
|
Filter string `json:"filter"`
|
||||||
|
FilterType string `json:"filterType"`
|
||||||
|
Key string `json:"key"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFilter) GetFilter() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Filter
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFilter) GetFilterType() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.FilterType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFilter) GetKey() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Key
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFilter) GetTitle() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Title
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFilter) GetType() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibraryItemsSort struct {
|
||||||
|
Default *string `json:"default,omitempty"`
|
||||||
|
DefaultDirection string `json:"defaultDirection"`
|
||||||
|
DescKey *string `json:"descKey,omitempty"`
|
||||||
|
FirstCharacterKey *string `json:"firstCharacterKey,omitempty"`
|
||||||
|
Key string `json:"key"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsSort) GetDefault() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Default
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsSort) GetDefaultDirection() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.DefaultDirection
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsSort) GetDescKey() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.DescKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsSort) GetFirstCharacterKey() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.FirstCharacterKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsSort) GetKey() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Key
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsSort) GetTitle() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Title
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibraryItemsField struct {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SubType *string `json:"subType,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsField) GetKey() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Key
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsField) GetTitle() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Title
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsField) GetType() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsField) GetSubType() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.SubType
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibraryItemsType struct {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Active bool `json:"active"`
|
||||||
|
Filter []GetLibraryItemsFilter `json:"Filter,omitempty"`
|
||||||
|
Sort []GetLibraryItemsSort `json:"Sort,omitempty"`
|
||||||
|
Field []GetLibraryItemsField `json:"Field,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetKey() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Key
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetType() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetTitle() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Title
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetActive() bool {
|
||||||
|
if o == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return o.Active
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetFilter() []GetLibraryItemsFilter {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Filter
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetSort() []GetLibraryItemsSort {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Sort
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsType) GetField() []GetLibraryItemsField {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Field
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibraryItemsOperator struct {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsOperator) GetKey() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Key
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsOperator) GetTitle() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Title
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibraryItemsFieldType struct {
|
||||||
|
Type string `json:"type"`
|
||||||
|
Operator []GetLibraryItemsOperator `json:"Operator"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFieldType) GetType() string {
|
||||||
|
if o == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return o.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsFieldType) GetOperator() []GetLibraryItemsOperator {
|
||||||
|
if o == nil {
|
||||||
|
return []GetLibraryItemsOperator{}
|
||||||
|
}
|
||||||
|
return o.Operator
|
||||||
|
}
|
||||||
|
|
||||||
|
// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
|
type Meta struct {
|
||||||
|
Type []GetLibraryItemsType `json:"Type,omitempty"`
|
||||||
|
FieldType []GetLibraryItemsFieldType `json:"FieldType,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *Meta) GetType() []GetLibraryItemsType {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *Meta) GetFieldType() []GetLibraryItemsFieldType {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.FieldType
|
||||||
|
}
|
||||||
|
|
||||||
type GetLibraryItemsMediaContainer struct {
|
type GetLibraryItemsMediaContainer struct {
|
||||||
Size *int `json:"size,omitempty"`
|
Size int `json:"size"`
|
||||||
AllowSync *bool `json:"allowSync,omitempty"`
|
AllowSync bool `json:"allowSync"`
|
||||||
Art *string `json:"art,omitempty"`
|
Art string `json:"art"`
|
||||||
Identifier *string `json:"identifier,omitempty"`
|
Identifier string `json:"identifier"`
|
||||||
LibrarySectionID *LibrarySectionID `json:"librarySectionID,omitempty"`
|
LibrarySectionID LibrarySectionID `json:"librarySectionID"`
|
||||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
LibrarySectionTitle string `json:"librarySectionTitle"`
|
||||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
LibrarySectionUUID string `json:"librarySectionUUID"`
|
||||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
MediaTagPrefix string `json:"mediaTagPrefix"`
|
||||||
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
|
MediaTagVersion int `json:"mediaTagVersion"`
|
||||||
Thumb *string `json:"thumb,omitempty"`
|
Thumb string `json:"thumb"`
|
||||||
Title1 *string `json:"title1,omitempty"`
|
Title1 string `json:"title1"`
|
||||||
Title2 *string `json:"title2,omitempty"`
|
Title2 string `json:"title2"`
|
||||||
ViewGroup *string `json:"viewGroup,omitempty"`
|
ViewGroup string `json:"viewGroup"`
|
||||||
ViewMode *int `json:"viewMode,omitempty"`
|
ViewMode *int `json:"viewMode,omitempty"`
|
||||||
MixedParents *bool `json:"mixedParents,omitempty"`
|
MixedParents *bool `json:"mixedParents,omitempty"`
|
||||||
Metadata []GetLibraryItemsMetadata `json:"Metadata,omitempty"`
|
Metadata []GetLibraryItemsMetadata `json:"Metadata,omitempty"`
|
||||||
|
// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
|
//
|
||||||
|
Meta *Meta `json:"Meta,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetSize() *int {
|
func (o *GetLibraryItemsMediaContainer) GetSize() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.Size
|
return o.Size
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetAllowSync() *bool {
|
func (o *GetLibraryItemsMediaContainer) GetAllowSync() bool {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return false
|
||||||
}
|
}
|
||||||
return o.AllowSync
|
return o.AllowSync
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetArt() *string {
|
func (o *GetLibraryItemsMediaContainer) GetArt() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Art
|
return o.Art
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetIdentifier() *string {
|
func (o *GetLibraryItemsMediaContainer) GetIdentifier() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Identifier
|
return o.Identifier
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() *LibrarySectionID {
|
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() LibrarySectionID {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return LibrarySectionID{}
|
||||||
}
|
}
|
||||||
return o.LibrarySectionID
|
return o.LibrarySectionID
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string {
|
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.LibrarySectionTitle
|
return o.LibrarySectionTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string {
|
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.LibrarySectionUUID
|
return o.LibrarySectionUUID
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() *string {
|
func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.MediaTagPrefix
|
return o.MediaTagPrefix
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() *int {
|
func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return 0
|
||||||
}
|
}
|
||||||
return o.MediaTagVersion
|
return o.MediaTagVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetThumb() *string {
|
func (o *GetLibraryItemsMediaContainer) GetThumb() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Thumb
|
return o.Thumb
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetTitle1() *string {
|
func (o *GetLibraryItemsMediaContainer) GetTitle1() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Title1
|
return o.Title1
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetTitle2() *string {
|
func (o *GetLibraryItemsMediaContainer) GetTitle2() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.Title2
|
return o.Title2
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibraryItemsMediaContainer) GetViewGroup() *string {
|
func (o *GetLibraryItemsMediaContainer) GetViewGroup() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
return o.ViewGroup
|
return o.ViewGroup
|
||||||
}
|
}
|
||||||
@@ -1167,6 +1440,13 @@ func (o *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata
|
|||||||
return o.Metadata
|
return o.Metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *GetLibraryItemsMediaContainer) GetMeta() *Meta {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Meta
|
||||||
|
}
|
||||||
|
|
||||||
// GetLibraryItemsResponseBody - The contents of the library by section and tag
|
// GetLibraryItemsResponseBody - The contents of the library by section and tag
|
||||||
type GetLibraryItemsResponseBody struct {
|
type GetLibraryItemsResponseBody struct {
|
||||||
MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"`
|
MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"`
|
||||||
|
|||||||
@@ -13,24 +13,12 @@ var GetPinServerList = []string{
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetPinGlobals struct {
|
type GetPinGlobals struct {
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
|
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
|
||||||
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
|
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
|
||||||
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
|
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
|
||||||
ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"`
|
ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetPinGlobals) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *GetPinGlobals) GetClientName() *string {
|
func (o *GetPinGlobals) GetClientName() *string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return nil
|
||||||
@@ -65,11 +53,6 @@ type GetPinRequest struct {
|
|||||||
// Non-Strong codes are used for `Plex.tv/link`
|
// Non-Strong codes are used for `Plex.tv/link`
|
||||||
//
|
//
|
||||||
Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"`
|
Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"`
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
|
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
|
||||||
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
|
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
|
||||||
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
|
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
|
||||||
@@ -94,13 +77,6 @@ func (o *GetPinRequest) GetStrong() *bool {
|
|||||||
return o.Strong
|
return o.Strong
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetPinRequest) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *GetPinRequest) GetClientName() *string {
|
func (o *GetPinRequest) GetClientName() *string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ import (
|
|||||||
type GetPlaylistContentsQueryParamType int64
|
type GetPlaylistContentsQueryParamType int64
|
||||||
|
|
||||||
const (
|
const (
|
||||||
GetPlaylistContentsQueryParamTypeOne GetPlaylistContentsQueryParamType = 1
|
GetPlaylistContentsQueryParamTypeMovie GetPlaylistContentsQueryParamType = 1
|
||||||
GetPlaylistContentsQueryParamTypeTwo GetPlaylistContentsQueryParamType = 2
|
GetPlaylistContentsQueryParamTypeShow GetPlaylistContentsQueryParamType = 2
|
||||||
GetPlaylistContentsQueryParamTypeThree GetPlaylistContentsQueryParamType = 3
|
GetPlaylistContentsQueryParamTypeSeason GetPlaylistContentsQueryParamType = 3
|
||||||
GetPlaylistContentsQueryParamTypeFour GetPlaylistContentsQueryParamType = 4
|
GetPlaylistContentsQueryParamTypeEpisode GetPlaylistContentsQueryParamType = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e GetPlaylistContentsQueryParamType) ToPointer() *GetPlaylistContentsQueryParamType {
|
func (e GetPlaylistContentsQueryParamType) ToPointer() *GetPlaylistContentsQueryParamType {
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ import (
|
|||||||
type QueryParamType int64
|
type QueryParamType int64
|
||||||
|
|
||||||
const (
|
const (
|
||||||
QueryParamTypeOne QueryParamType = 1
|
QueryParamTypeMovie QueryParamType = 1
|
||||||
QueryParamTypeTwo QueryParamType = 2
|
QueryParamTypeShow QueryParamType = 2
|
||||||
QueryParamTypeThree QueryParamType = 3
|
QueryParamTypeSeason QueryParamType = 3
|
||||||
QueryParamTypeFour QueryParamType = 4
|
QueryParamTypeEpisode QueryParamType = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e QueryParamType) ToPointer() *QueryParamType {
|
func (e QueryParamType) ToPointer() *QueryParamType {
|
||||||
|
|||||||
@@ -14,27 +14,12 @@ var GetServerResourcesServerList = []string{
|
|||||||
"https://plex.tv/api/v2/",
|
"https://plex.tv/api/v2/",
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetServerResourcesGlobals struct {
|
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *GetServerResourcesGlobals) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
// IncludeHTTPS - Include Https entries in the results
|
// IncludeHTTPS - Include Https entries in the results
|
||||||
type IncludeHTTPS int
|
type IncludeHTTPS int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IncludeHTTPSZero IncludeHTTPS = 0
|
IncludeHTTPSDisable IncludeHTTPS = 0
|
||||||
IncludeHTTPSOne IncludeHTTPS = 1
|
IncludeHTTPSEnable IncludeHTTPS = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e IncludeHTTPS) ToPointer() *IncludeHTTPS {
|
func (e IncludeHTTPS) ToPointer() *IncludeHTTPS {
|
||||||
@@ -61,8 +46,8 @@ func (e *IncludeHTTPS) UnmarshalJSON(data []byte) error {
|
|||||||
type IncludeRelay int
|
type IncludeRelay int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IncludeRelayZero IncludeRelay = 0
|
IncludeRelayDisable IncludeRelay = 0
|
||||||
IncludeRelayOne IncludeRelay = 1
|
IncludeRelayEnable IncludeRelay = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e IncludeRelay) ToPointer() *IncludeRelay {
|
func (e IncludeRelay) ToPointer() *IncludeRelay {
|
||||||
@@ -88,8 +73,8 @@ func (e *IncludeRelay) UnmarshalJSON(data []byte) error {
|
|||||||
type IncludeIPv6 int
|
type IncludeIPv6 int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IncludeIPv6Zero IncludeIPv6 = 0
|
IncludeIPv6Disable IncludeIPv6 = 0
|
||||||
IncludeIPv6One IncludeIPv6 = 1
|
IncludeIPv6Enable IncludeIPv6 = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e IncludeIPv6) ToPointer() *IncludeIPv6 {
|
func (e IncludeIPv6) ToPointer() *IncludeIPv6 {
|
||||||
@@ -112,11 +97,6 @@ func (e *IncludeIPv6) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetServerResourcesRequest struct {
|
type GetServerResourcesRequest struct {
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
// Include Https entries in the results
|
// Include Https entries in the results
|
||||||
IncludeHTTPS *IncludeHTTPS `default:"0" queryParam:"style=form,explode=true,name=includeHttps"`
|
IncludeHTTPS *IncludeHTTPS `default:"0" queryParam:"style=form,explode=true,name=includeHttps"`
|
||||||
// Include Relay addresses in the results
|
// Include Relay addresses in the results
|
||||||
@@ -138,13 +118,6 @@ func (g *GetServerResourcesRequest) UnmarshalJSON(data []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetServerResourcesRequest) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS {
|
func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return nil
|
||||||
@@ -166,19 +139,53 @@ func (o *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 {
|
|||||||
return o.IncludeIPv6
|
return o.IncludeIPv6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Protocol - The protocol used for the connection (http, https, etc)
|
||||||
|
type Protocol string
|
||||||
|
|
||||||
|
const (
|
||||||
|
ProtocolHTTP Protocol = "http"
|
||||||
|
ProtocolHTTPS Protocol = "https"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (e Protocol) ToPointer() *Protocol {
|
||||||
|
return &e
|
||||||
|
}
|
||||||
|
func (e *Protocol) UnmarshalJSON(data []byte) error {
|
||||||
|
var v string
|
||||||
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
switch v {
|
||||||
|
case "http":
|
||||||
|
fallthrough
|
||||||
|
case "https":
|
||||||
|
*e = Protocol(v)
|
||||||
|
return nil
|
||||||
|
default:
|
||||||
|
return fmt.Errorf("invalid value for Protocol: %v", v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type Connections struct {
|
type Connections struct {
|
||||||
Protocol string `json:"protocol"`
|
// The protocol used for the connection (http, https, etc)
|
||||||
|
Protocol Protocol `json:"protocol"`
|
||||||
|
// The (ip) address or domain name used for the connection
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
Port float64 `json:"port"`
|
// The port used for the connection
|
||||||
|
Port int `json:"port"`
|
||||||
|
// The full URI of the connection
|
||||||
URI string `json:"uri"`
|
URI string `json:"uri"`
|
||||||
|
// If the connection is local address
|
||||||
Local bool `json:"local"`
|
Local bool `json:"local"`
|
||||||
|
// If the connection is relayed through plex.direct
|
||||||
Relay bool `json:"relay"`
|
Relay bool `json:"relay"`
|
||||||
|
// If the connection is using IPv6
|
||||||
IPv6 bool `json:"IPv6"`
|
IPv6 bool `json:"IPv6"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Connections) GetProtocol() string {
|
func (o *Connections) GetProtocol() Protocol {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return ""
|
return Protocol("")
|
||||||
}
|
}
|
||||||
return o.Protocol
|
return o.Protocol
|
||||||
}
|
}
|
||||||
@@ -190,9 +197,9 @@ func (o *Connections) GetAddress() string {
|
|||||||
return o.Address
|
return o.Address
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Connections) GetPort() float64 {
|
func (o *Connections) GetPort() int {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return 0.0
|
return 0
|
||||||
}
|
}
|
||||||
return o.Port
|
return o.Port
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,38 +12,11 @@ var GetTokenByPinIDServerList = []string{
|
|||||||
"https://plex.tv/api/v2/",
|
"https://plex.tv/api/v2/",
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetTokenByPinIDGlobals struct {
|
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *GetTokenByPinIDGlobals) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetTokenByPinIDRequest struct {
|
type GetTokenByPinIDRequest struct {
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
// The PinID to retrieve an access token for
|
// The PinID to retrieve an access token for
|
||||||
PinID int64 `pathParam:"style=simple,explode=false,name=pinID"`
|
PinID int64 `pathParam:"style=simple,explode=false,name=pinID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetTokenByPinIDRequest) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *GetTokenByPinIDRequest) GetPinID() int64 {
|
func (o *GetTokenByPinIDRequest) GetPinID() int64 {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -42,25 +42,25 @@ func (e *MailingListStatus) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
// AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||||
type AutoSelectSubtitle string
|
type AutoSelectSubtitle int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AutoSelectSubtitleZero AutoSelectSubtitle = "0"
|
AutoSelectSubtitleDisable AutoSelectSubtitle = 0
|
||||||
AutoSelectSubtitleOne AutoSelectSubtitle = "1"
|
AutoSelectSubtitleEnable AutoSelectSubtitle = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e AutoSelectSubtitle) ToPointer() *AutoSelectSubtitle {
|
func (e AutoSelectSubtitle) ToPointer() *AutoSelectSubtitle {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error {
|
func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = AutoSelectSubtitle(v)
|
*e = AutoSelectSubtitle(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -68,26 +68,26 @@ func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
// DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||||
type DefaultSubtitleAccessibility string
|
type DefaultSubtitleAccessibility int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultSubtitleAccessibilityZero DefaultSubtitleAccessibility = "0"
|
DefaultSubtitleAccessibilityDisable DefaultSubtitleAccessibility = 0
|
||||||
DefaultSubtitleAccessibilityOne DefaultSubtitleAccessibility = "1"
|
DefaultSubtitleAccessibilityEnable DefaultSubtitleAccessibility = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e DefaultSubtitleAccessibility) ToPointer() *DefaultSubtitleAccessibility {
|
func (e DefaultSubtitleAccessibility) ToPointer() *DefaultSubtitleAccessibility {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
|
func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = DefaultSubtitleAccessibility(v)
|
*e = DefaultSubtitleAccessibility(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -96,25 +96,25 @@ func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
// DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||||
type DefaultSubtitleForced string
|
type DefaultSubtitleForced int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultSubtitleForcedZero DefaultSubtitleForced = "0"
|
DefaultSubtitleForcedDisable DefaultSubtitleForced = 0
|
||||||
DefaultSubtitleForcedOne DefaultSubtitleForced = "1"
|
DefaultSubtitleForcedEnable DefaultSubtitleForced = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e DefaultSubtitleForced) ToPointer() *DefaultSubtitleForced {
|
func (e DefaultSubtitleForced) ToPointer() *DefaultSubtitleForced {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error {
|
func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = DefaultSubtitleForced(v)
|
*e = DefaultSubtitleForced(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -122,25 +122,26 @@ func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type WatchedIndicator string
|
// WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||||
|
type WatchedIndicator int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
WatchedIndicatorZero WatchedIndicator = "0"
|
WatchedIndicatorDisable WatchedIndicator = 0
|
||||||
WatchedIndicatorOne WatchedIndicator = "1"
|
WatchedIndicatorEnable WatchedIndicator = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e WatchedIndicator) ToPointer() *WatchedIndicator {
|
func (e WatchedIndicator) ToPointer() *WatchedIndicator {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *WatchedIndicator) UnmarshalJSON(data []byte) error {
|
func (e *WatchedIndicator) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = WatchedIndicator(v)
|
*e = WatchedIndicator(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -148,18 +149,19 @@ func (e *WatchedIndicator) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type MediaReviewsVisibility int64
|
// MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||||
|
type MediaReviewsVisibility int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MediaReviewsVisibilityZero MediaReviewsVisibility = 0
|
MediaReviewsVisibilityDisable MediaReviewsVisibility = 0
|
||||||
MediaReviewsVisibilityOne MediaReviewsVisibility = 1
|
MediaReviewsVisibilityEnable MediaReviewsVisibility = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e MediaReviewsVisibility) ToPointer() *MediaReviewsVisibility {
|
func (e MediaReviewsVisibility) ToPointer() *MediaReviewsVisibility {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *MediaReviewsVisibility) UnmarshalJSON(data []byte) error {
|
func (e *MediaReviewsVisibility) UnmarshalJSON(data []byte) error {
|
||||||
var v int64
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -181,14 +183,11 @@ type UserProfile struct {
|
|||||||
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
|
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
|
||||||
// The preferred subtitle language for the account
|
// The preferred subtitle language for the account
|
||||||
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
|
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
|
||||||
// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
AutoSelectSubtitle *AutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"`
|
||||||
AutoSelectSubtitle *AutoSelectSubtitle `json:"autoSelectSubtitle,omitempty"`
|
DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"`
|
||||||
// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
DefaultSubtitleForced *DefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"`
|
||||||
DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `json:"defaultSubtitleAccessibility,omitempty"`
|
WatchedIndicator *WatchedIndicator `default:"0" json:"watchedIndicator"`
|
||||||
// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
MediaReviewsVisibility *MediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"`
|
||||||
DefaultSubtitleForced *DefaultSubtitleForced `json:"defaultSubtitleForced,omitempty"`
|
|
||||||
WatchedIndicator *WatchedIndicator `json:"watchedIndicator,omitempty"`
|
|
||||||
MediaReviewsVisibility *MediaReviewsVisibility `json:"mediaReviewsVisibility,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u UserProfile) MarshalJSON() ([]byte, error) {
|
func (u UserProfile) MarshalJSON() ([]byte, error) {
|
||||||
@@ -930,7 +929,7 @@ type GetTokenDetailsUserPlexAccount struct {
|
|||||||
HomeSize int `json:"homeSize"`
|
HomeSize int `json:"homeSize"`
|
||||||
// The Plex account ID
|
// The Plex account ID
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
JoinedAt int64 `json:"joinedAt"`
|
JoinedAt int64 `json:"joinedAt"`
|
||||||
// The account locale
|
// The account locale
|
||||||
Locale *string `json:"locale"`
|
Locale *string `json:"locale"`
|
||||||
@@ -947,7 +946,7 @@ type GetTokenDetailsUserPlexAccount struct {
|
|||||||
Profile UserProfile `json:"profile"`
|
Profile UserProfile `json:"profile"`
|
||||||
// If the account has a Plex Home PIN enabled
|
// If the account has a Plex Home PIN enabled
|
||||||
Protected *bool `default:"false" json:"protected"`
|
Protected *bool `default:"false" json:"protected"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
RememberExpiresAt int64 `json:"rememberExpiresAt"`
|
RememberExpiresAt int64 `json:"rememberExpiresAt"`
|
||||||
// If the account is a Plex Home managed user
|
// If the account is a Plex Home managed user
|
||||||
Restricted *bool `default:"false" json:"restricted"`
|
Restricted *bool `default:"false" json:"restricted"`
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ import (
|
|||||||
type GetTopWatchedContentQueryParamType int64
|
type GetTopWatchedContentQueryParamType int64
|
||||||
|
|
||||||
const (
|
const (
|
||||||
GetTopWatchedContentQueryParamTypeOne GetTopWatchedContentQueryParamType = 1
|
GetTopWatchedContentQueryParamTypeMovie GetTopWatchedContentQueryParamType = 1
|
||||||
GetTopWatchedContentQueryParamTypeTwo GetTopWatchedContentQueryParamType = 2
|
GetTopWatchedContentQueryParamTypeShow GetTopWatchedContentQueryParamType = 2
|
||||||
GetTopWatchedContentQueryParamTypeThree GetTopWatchedContentQueryParamType = 3
|
GetTopWatchedContentQueryParamTypeSeason GetTopWatchedContentQueryParamType = 3
|
||||||
GetTopWatchedContentQueryParamTypeFour GetTopWatchedContentQueryParamType = 4
|
GetTopWatchedContentQueryParamTypeEpisode GetTopWatchedContentQueryParamType = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e GetTopWatchedContentQueryParamType) ToPointer() *GetTopWatchedContentQueryParamType {
|
func (e GetTopWatchedContentQueryParamType) ToPointer() *GetTopWatchedContentQueryParamType {
|
||||||
|
|||||||
@@ -14,21 +14,6 @@ var PostUsersSignInDataServerList = []string{
|
|||||||
"https://plex.tv/api/v2/",
|
"https://plex.tv/api/v2/",
|
||||||
}
|
}
|
||||||
|
|
||||||
type PostUsersSignInDataGlobals struct {
|
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *PostUsersSignInDataGlobals) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
// PostUsersSignInDataRequestBody - Login credentials
|
// PostUsersSignInDataRequestBody - Login credentials
|
||||||
type PostUsersSignInDataRequestBody struct {
|
type PostUsersSignInDataRequestBody struct {
|
||||||
Login string `form:"name=login"`
|
Login string `form:"name=login"`
|
||||||
@@ -76,30 +61,6 @@ func (o *PostUsersSignInDataRequestBody) GetVerificationCode() *string {
|
|||||||
return o.VerificationCode
|
return o.VerificationCode
|
||||||
}
|
}
|
||||||
|
|
||||||
type PostUsersSignInDataRequest struct {
|
|
||||||
// The unique identifier for the client application
|
|
||||||
// This is used to track the client application and its usage
|
|
||||||
// (UUID, serial number, or other number unique per device)
|
|
||||||
//
|
|
||||||
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
|
|
||||||
// Login credentials
|
|
||||||
RequestBody *PostUsersSignInDataRequestBody `request:"mediaType=application/x-www-form-urlencoded"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *PostUsersSignInDataRequest) GetClientID() *string {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataRequestBody {
|
|
||||||
if o == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return o.RequestBody
|
|
||||||
}
|
|
||||||
|
|
||||||
// PostUsersSignInDataMailingListStatus - Your current mailing list status
|
// PostUsersSignInDataMailingListStatus - Your current mailing list status
|
||||||
type PostUsersSignInDataMailingListStatus string
|
type PostUsersSignInDataMailingListStatus string
|
||||||
|
|
||||||
@@ -128,25 +89,25 @@ func (e *PostUsersSignInDataMailingListStatus) UnmarshalJSON(data []byte) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
// PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||||
type PostUsersSignInDataAutoSelectSubtitle string
|
type PostUsersSignInDataAutoSelectSubtitle int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PostUsersSignInDataAutoSelectSubtitleZero PostUsersSignInDataAutoSelectSubtitle = "0"
|
PostUsersSignInDataAutoSelectSubtitleDisable PostUsersSignInDataAutoSelectSubtitle = 0
|
||||||
PostUsersSignInDataAutoSelectSubtitleOne PostUsersSignInDataAutoSelectSubtitle = "1"
|
PostUsersSignInDataAutoSelectSubtitleEnable PostUsersSignInDataAutoSelectSubtitle = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e PostUsersSignInDataAutoSelectSubtitle) ToPointer() *PostUsersSignInDataAutoSelectSubtitle {
|
func (e PostUsersSignInDataAutoSelectSubtitle) ToPointer() *PostUsersSignInDataAutoSelectSubtitle {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error {
|
func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = PostUsersSignInDataAutoSelectSubtitle(v)
|
*e = PostUsersSignInDataAutoSelectSubtitle(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -154,26 +115,26 @@ func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
// PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||||
type PostUsersSignInDataDefaultSubtitleAccessibility string
|
type PostUsersSignInDataDefaultSubtitleAccessibility int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PostUsersSignInDataDefaultSubtitleAccessibilityZero PostUsersSignInDataDefaultSubtitleAccessibility = "0"
|
PostUsersSignInDataDefaultSubtitleAccessibilityDisable PostUsersSignInDataDefaultSubtitleAccessibility = 0
|
||||||
PostUsersSignInDataDefaultSubtitleAccessibilityOne PostUsersSignInDataDefaultSubtitleAccessibility = "1"
|
PostUsersSignInDataDefaultSubtitleAccessibilityEnable PostUsersSignInDataDefaultSubtitleAccessibility = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e PostUsersSignInDataDefaultSubtitleAccessibility) ToPointer() *PostUsersSignInDataDefaultSubtitleAccessibility {
|
func (e PostUsersSignInDataDefaultSubtitleAccessibility) ToPointer() *PostUsersSignInDataDefaultSubtitleAccessibility {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
|
func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = PostUsersSignInDataDefaultSubtitleAccessibility(v)
|
*e = PostUsersSignInDataDefaultSubtitleAccessibility(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -182,25 +143,25 @@ func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []b
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
// PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||||
type PostUsersSignInDataDefaultSubtitleForced string
|
type PostUsersSignInDataDefaultSubtitleForced int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PostUsersSignInDataDefaultSubtitleForcedZero PostUsersSignInDataDefaultSubtitleForced = "0"
|
PostUsersSignInDataDefaultSubtitleForcedDisable PostUsersSignInDataDefaultSubtitleForced = 0
|
||||||
PostUsersSignInDataDefaultSubtitleForcedOne PostUsersSignInDataDefaultSubtitleForced = "1"
|
PostUsersSignInDataDefaultSubtitleForcedEnable PostUsersSignInDataDefaultSubtitleForced = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e PostUsersSignInDataDefaultSubtitleForced) ToPointer() *PostUsersSignInDataDefaultSubtitleForced {
|
func (e PostUsersSignInDataDefaultSubtitleForced) ToPointer() *PostUsersSignInDataDefaultSubtitleForced {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) error {
|
func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = PostUsersSignInDataDefaultSubtitleForced(v)
|
*e = PostUsersSignInDataDefaultSubtitleForced(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -208,25 +169,26 @@ func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) er
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type PostUsersSignInDataWatchedIndicator string
|
// PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||||
|
type PostUsersSignInDataWatchedIndicator int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PostUsersSignInDataWatchedIndicatorZero PostUsersSignInDataWatchedIndicator = "0"
|
PostUsersSignInDataWatchedIndicatorDisable PostUsersSignInDataWatchedIndicator = 0
|
||||||
PostUsersSignInDataWatchedIndicatorOne PostUsersSignInDataWatchedIndicator = "1"
|
PostUsersSignInDataWatchedIndicatorEnable PostUsersSignInDataWatchedIndicator = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e PostUsersSignInDataWatchedIndicator) ToPointer() *PostUsersSignInDataWatchedIndicator {
|
func (e PostUsersSignInDataWatchedIndicator) ToPointer() *PostUsersSignInDataWatchedIndicator {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error {
|
func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error {
|
||||||
var v string
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch v {
|
switch v {
|
||||||
case "0":
|
case 0:
|
||||||
fallthrough
|
fallthrough
|
||||||
case "1":
|
case 1:
|
||||||
*e = PostUsersSignInDataWatchedIndicator(v)
|
*e = PostUsersSignInDataWatchedIndicator(v)
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
@@ -234,18 +196,19 @@ func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type PostUsersSignInDataMediaReviewsVisibility int64
|
// PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||||
|
type PostUsersSignInDataMediaReviewsVisibility int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PostUsersSignInDataMediaReviewsVisibilityZero PostUsersSignInDataMediaReviewsVisibility = 0
|
PostUsersSignInDataMediaReviewsVisibilityDisable PostUsersSignInDataMediaReviewsVisibility = 0
|
||||||
PostUsersSignInDataMediaReviewsVisibilityOne PostUsersSignInDataMediaReviewsVisibility = 1
|
PostUsersSignInDataMediaReviewsVisibilityEnable PostUsersSignInDataMediaReviewsVisibility = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e PostUsersSignInDataMediaReviewsVisibility) ToPointer() *PostUsersSignInDataMediaReviewsVisibility {
|
func (e PostUsersSignInDataMediaReviewsVisibility) ToPointer() *PostUsersSignInDataMediaReviewsVisibility {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataMediaReviewsVisibility) UnmarshalJSON(data []byte) error {
|
func (e *PostUsersSignInDataMediaReviewsVisibility) UnmarshalJSON(data []byte) error {
|
||||||
var v int64
|
var v int
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
if err := json.Unmarshal(data, &v); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -267,14 +230,11 @@ type PostUsersSignInDataUserProfile struct {
|
|||||||
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
|
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
|
||||||
// The preferred subtitle language for the account
|
// The preferred subtitle language for the account
|
||||||
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
|
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
|
||||||
// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
AutoSelectSubtitle *PostUsersSignInDataAutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"`
|
||||||
AutoSelectSubtitle *PostUsersSignInDataAutoSelectSubtitle `json:"autoSelectSubtitle,omitempty"`
|
DefaultSubtitleAccessibility *PostUsersSignInDataDefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"`
|
||||||
// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
DefaultSubtitleForced *PostUsersSignInDataDefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"`
|
||||||
DefaultSubtitleAccessibility *PostUsersSignInDataDefaultSubtitleAccessibility `json:"defaultSubtitleAccessibility,omitempty"`
|
WatchedIndicator *PostUsersSignInDataWatchedIndicator `default:"0" json:"watchedIndicator"`
|
||||||
// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
MediaReviewsVisibility *PostUsersSignInDataMediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"`
|
||||||
DefaultSubtitleForced *PostUsersSignInDataDefaultSubtitleForced `json:"defaultSubtitleForced,omitempty"`
|
|
||||||
WatchedIndicator *PostUsersSignInDataWatchedIndicator `json:"watchedIndicator,omitempty"`
|
|
||||||
MediaReviewsVisibility *PostUsersSignInDataMediaReviewsVisibility `json:"mediaReviewsVisibility,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p PostUsersSignInDataUserProfile) MarshalJSON() ([]byte, error) {
|
func (p PostUsersSignInDataUserProfile) MarshalJSON() ([]byte, error) {
|
||||||
@@ -1198,7 +1158,7 @@ type PostUsersSignInDataUserPlexAccount struct {
|
|||||||
HomeSize int `json:"homeSize"`
|
HomeSize int `json:"homeSize"`
|
||||||
// The Plex account ID
|
// The Plex account ID
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
JoinedAt int64 `json:"joinedAt"`
|
JoinedAt int64 `json:"joinedAt"`
|
||||||
// The account locale
|
// The account locale
|
||||||
Locale *string `json:"locale"`
|
Locale *string `json:"locale"`
|
||||||
@@ -1215,7 +1175,7 @@ type PostUsersSignInDataUserPlexAccount struct {
|
|||||||
Profile PostUsersSignInDataUserProfile `json:"profile"`
|
Profile PostUsersSignInDataUserProfile `json:"profile"`
|
||||||
// If the account has a Plex Home PIN enabled
|
// If the account has a Plex Home PIN enabled
|
||||||
Protected *bool `default:"false" json:"protected"`
|
Protected *bool `default:"false" json:"protected"`
|
||||||
// Unix epoch datetime
|
// Unix epoch datetime in seconds
|
||||||
RememberExpiresAt int64 `json:"rememberExpiresAt"`
|
RememberExpiresAt int64 `json:"rememberExpiresAt"`
|
||||||
// If the account is a Plex Home managed user
|
// If the account is a Plex Home managed user
|
||||||
Restricted *bool `default:"false" json:"restricted"`
|
Restricted *bool `default:"false" json:"restricted"`
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ package operations
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/LukeHagar/plexgo/internal/utils"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -53,6 +54,19 @@ type UploadPlaylistRequest struct {
|
|||||||
// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
|
// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
|
||||||
//
|
//
|
||||||
Force QueryParamForce `queryParam:"style=form,explode=true,name=force"`
|
Force QueryParamForce `queryParam:"style=form,explode=true,name=force"`
|
||||||
|
// Possibly the section ID to upload the playlist to, we are not certain.
|
||||||
|
SectionID int64 `default:"1" queryParam:"style=form,explode=true,name=sectionID"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (u UploadPlaylistRequest) MarshalJSON() ([]byte, error) {
|
||||||
|
return utils.MarshalJSON(u, "", false)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (u *UploadPlaylistRequest) UnmarshalJSON(data []byte) error {
|
||||||
|
if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *UploadPlaylistRequest) GetPath() string {
|
func (o *UploadPlaylistRequest) GetPath() string {
|
||||||
@@ -69,6 +83,13 @@ func (o *UploadPlaylistRequest) GetForce() QueryParamForce {
|
|||||||
return o.Force
|
return o.Force
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *UploadPlaylistRequest) GetSectionID() int64 {
|
||||||
|
if o == nil {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
return o.SectionID
|
||||||
|
}
|
||||||
|
|
||||||
type UploadPlaylistResponse struct {
|
type UploadPlaylistResponse struct {
|
||||||
// HTTP response content type for this operation
|
// HTTP response content type for this operation
|
||||||
ContentType string
|
ContentType string
|
||||||
|
|||||||
@@ -1966,7 +1966,7 @@ func (s *Playlists) AddPlaylistContents(ctx context.Context, playlistID float64,
|
|||||||
|
|
||||||
// UploadPlaylist - Upload Playlist
|
// UploadPlaylist - Upload Playlist
|
||||||
// Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
// Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
||||||
func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force operations.QueryParamForce, opts ...operations.Option) (*operations.UploadPlaylistResponse, error) {
|
func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force operations.QueryParamForce, sectionID int64, opts ...operations.Option) (*operations.UploadPlaylistResponse, error) {
|
||||||
hookCtx := hooks.HookContext{
|
hookCtx := hooks.HookContext{
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
OperationID: "uploadPlaylist",
|
OperationID: "uploadPlaylist",
|
||||||
@@ -1977,6 +1977,7 @@ func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force opera
|
|||||||
request := operations.UploadPlaylistRequest{
|
request := operations.UploadPlaylistRequest{
|
||||||
Path: path,
|
Path: path,
|
||||||
Force: force,
|
Force: force,
|
||||||
|
SectionID: sectionID,
|
||||||
}
|
}
|
||||||
|
|
||||||
o := operations.Options{}
|
o := operations.Options{}
|
||||||
|
|||||||
23
plex.go
23
plex.go
@@ -1008,7 +1008,7 @@ func (s *Plex) GetHomeData(ctx context.Context, opts ...operations.Option) (*ope
|
|||||||
|
|
||||||
// GetServerResources - Get Server Resources
|
// GetServerResources - Get Server Resources
|
||||||
// Get Plex server access tokens and server connections
|
// Get Plex server access tokens and server connections
|
||||||
func (s *Plex) GetServerResources(ctx context.Context, clientID *string, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) {
|
func (s *Plex) GetServerResources(ctx context.Context, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) {
|
||||||
hookCtx := hooks.HookContext{
|
hookCtx := hooks.HookContext{
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
OperationID: "get-server-resources",
|
OperationID: "get-server-resources",
|
||||||
@@ -1017,16 +1017,11 @@ func (s *Plex) GetServerResources(ctx context.Context, clientID *string, include
|
|||||||
}
|
}
|
||||||
|
|
||||||
request := operations.GetServerResourcesRequest{
|
request := operations.GetServerResourcesRequest{
|
||||||
ClientID: clientID,
|
|
||||||
IncludeHTTPS: includeHTTPS,
|
IncludeHTTPS: includeHTTPS,
|
||||||
IncludeRelay: includeRelay,
|
IncludeRelay: includeRelay,
|
||||||
IncludeIPv6: includeIPv6,
|
IncludeIPv6: includeIPv6,
|
||||||
}
|
}
|
||||||
|
|
||||||
globals := operations.GetServerResourcesGlobals{
|
|
||||||
ClientID: s.sdkConfiguration.Globals.ClientID,
|
|
||||||
}
|
|
||||||
|
|
||||||
o := operations.Options{}
|
o := operations.Options{}
|
||||||
supportedOptions := []string{
|
supportedOptions := []string{
|
||||||
operations.SupportedOptionServerURL,
|
operations.SupportedOptionServerURL,
|
||||||
@@ -1068,7 +1063,7 @@ func (s *Plex) GetServerResources(ctx context.Context, clientID *string, include
|
|||||||
req.Header.Set("Accept", "application/json")
|
req.Header.Set("Accept", "application/json")
|
||||||
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
||||||
|
|
||||||
if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
|
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
|
||||||
return nil, fmt.Errorf("error populating query params: %w", err)
|
return nil, fmt.Errorf("error populating query params: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1279,7 +1274,6 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
|
|||||||
}
|
}
|
||||||
|
|
||||||
globals := operations.GetPinGlobals{
|
globals := operations.GetPinGlobals{
|
||||||
ClientID: s.sdkConfiguration.Globals.ClientID,
|
|
||||||
ClientName: s.sdkConfiguration.Globals.ClientName,
|
ClientName: s.sdkConfiguration.Globals.ClientName,
|
||||||
DeviceName: s.sdkConfiguration.Globals.DeviceName,
|
DeviceName: s.sdkConfiguration.Globals.DeviceName,
|
||||||
ClientVersion: s.sdkConfiguration.Globals.ClientVersion,
|
ClientVersion: s.sdkConfiguration.Globals.ClientVersion,
|
||||||
@@ -1502,7 +1496,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
|
|||||||
|
|
||||||
// GetTokenByPinID - Get Access Token by PinId
|
// GetTokenByPinID - Get Access Token by PinId
|
||||||
// Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
// Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||||
func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *string, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
|
func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
|
||||||
hookCtx := hooks.HookContext{
|
hookCtx := hooks.HookContext{
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
OperationID: "getTokenByPinId",
|
OperationID: "getTokenByPinId",
|
||||||
@@ -1511,14 +1505,9 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
request := operations.GetTokenByPinIDRequest{
|
request := operations.GetTokenByPinIDRequest{
|
||||||
ClientID: clientID,
|
|
||||||
PinID: pinID,
|
PinID: pinID,
|
||||||
}
|
}
|
||||||
|
|
||||||
globals := operations.GetTokenByPinIDGlobals{
|
|
||||||
ClientID: s.sdkConfiguration.Globals.ClientID,
|
|
||||||
}
|
|
||||||
|
|
||||||
o := operations.Options{}
|
o := operations.Options{}
|
||||||
supportedOptions := []string{
|
supportedOptions := []string{
|
||||||
operations.SupportedOptionServerURL,
|
operations.SupportedOptionServerURL,
|
||||||
@@ -1537,7 +1526,7 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin
|
|||||||
baseURL = *o.ServerURL
|
baseURL = *o.ServerURL
|
||||||
}
|
}
|
||||||
|
|
||||||
opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, globals)
|
opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error generating URL: %w", err)
|
return nil, fmt.Errorf("error generating URL: %w", err)
|
||||||
}
|
}
|
||||||
@@ -1560,10 +1549,6 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin
|
|||||||
req.Header.Set("Accept", "application/json")
|
req.Header.Set("Accept", "application/json")
|
||||||
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
||||||
|
|
||||||
if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
|
|
||||||
return nil, fmt.Errorf("error populating query params: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
globalRetryConfig := s.sdkConfiguration.RetryConfig
|
globalRetryConfig := s.sdkConfiguration.RetryConfig
|
||||||
retryConfig := o.Retries
|
retryConfig := o.Retries
|
||||||
if retryConfig == nil {
|
if retryConfig == nil {
|
||||||
|
|||||||
@@ -311,9 +311,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
sdkConfiguration: sdkConfiguration{
|
sdkConfiguration: sdkConfiguration{
|
||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.11.14",
|
SDKVersion: "0.12.0",
|
||||||
GenVersion: "2.416.6",
|
GenVersion: "2.421.3",
|
||||||
UserAgent: "speakeasy-sdk/go 0.11.14 2.416.6 0.0.3 github.com/LukeHagar/plexgo",
|
UserAgent: "speakeasy-sdk/go 0.12.0 2.421.3 0.0.3 github.com/LukeHagar/plexgo",
|
||||||
Globals: globals.Globals{},
|
Globals: globals.Globals{},
|
||||||
ServerDefaults: []map[string]string{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user