mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7fe60ed91 |
@@ -3,10 +3,10 @@ id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
|
|||||||
management:
|
management:
|
||||||
docChecksum: 7a43cd3413d535205cfaee20a4b6a250
|
docChecksum: 7a43cd3413d535205cfaee20a4b6a250
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.277.8
|
speakeasyVersion: 1.279.0
|
||||||
generationVersion: 2.319.10
|
generationVersion: 2.322.5
|
||||||
releaseVersion: 0.6.6
|
releaseVersion: 0.6.7
|
||||||
configChecksum: f8398b860184344aa6c067b6ffd710a4
|
configChecksum: 78af15bfd6f8be83ea08e1ad8e8c4ace
|
||||||
repoURL: https://github.com/LukeHagar/plexgo.git
|
repoURL: https://github.com/LukeHagar/plexgo.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexgo
|
installationURL: https://github.com/LukeHagar/plexgo
|
||||||
@@ -21,7 +21,7 @@ features:
|
|||||||
globals: 2.82.2
|
globals: 2.82.2
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.2
|
nameOverrides: 2.81.2
|
||||||
responseFormat: 0.1.0
|
responseFormat: 0.1.1
|
||||||
generatedFiles:
|
generatedFiles:
|
||||||
- server.go
|
- server.go
|
||||||
- media.go
|
- media.go
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
go:
|
go:
|
||||||
version: 0.6.6
|
version: 0.6.7
|
||||||
additionalDependencies: {}
|
additionalDependencies: {}
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.277.8
|
speakeasyVersion: 1.279.0
|
||||||
sources: {}
|
sources: {}
|
||||||
targets: {}
|
targets: {}
|
||||||
workflow:
|
workflow:
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -342,4 +342,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [go v0.6.6] .
|
- [go v0.6.6] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Go v0.6.6] https://github.com/LukeHagar/plexgo/releases/tag/v0.6.6 - .
|
- [Go v0.6.6] https://github.com/LukeHagar/plexgo/releases/tag/v0.6.6 - .
|
||||||
|
|
||||||
|
## 2024-05-04 00:46:06
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.279.0 (2.322.5) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [go v0.6.7] .
|
||||||
|
### Releases
|
||||||
|
- [Go v0.6.7] https://github.com/LukeHagar/plexgo/releases/tag/v0.6.7 - .
|
||||||
2615
codeSamples.yaml
2615
codeSamples.yaml
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Tonight` | [*operations.Tonight](../../models/operations/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install |
|
| `Tonight` | [*operations.Tonight](../../models/operations/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 |
|
||||||
| `Skip` | [*operations.Skip](../../models/operations/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. |
|
| `Skip` | [*operations.Skip](../../models/operations/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. | 1 |
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
||||||
| `ActivityUUID` | *string* | :heavy_check_mark: | The UUID of the activity to cancel. |
|
| `ActivityUUID` | *string* | :heavy_check_mark: | The UUID of the activity to cancel. | 25b71ed5-0f9d-461c-baa7-d404e9e10d3e |
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
||||||
| `Download` | [*operations.Download](../../models/operations/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. |
|
| `Download` | [*operations.Download](../../models/operations/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 |
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
||||||
| `Timespan` | **int64* | :heavy_minus_sign: | The timespan to retrieve statistics for<br/>the exact meaning of this parameter is not known<br/> |
|
| `Timespan` | **int64* | :heavy_minus_sign: | The timespan to retrieve statistics for<br/>the exact meaning of this parameter is not known<br/> | 4 |
|
||||||
@@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
|
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
|
||||||
| `RatingKey` | *float64* | :heavy_check_mark: | The rating key of the media item |
|
| `RatingKey` | *float64* | :heavy_check_mark: | The rating key of the media item | 23409 |
|
||||||
| `Key` | *string* | :heavy_check_mark: | The key of the media item to get the timeline for |
|
| `Key` | *string* | :heavy_check_mark: | The key of the media item to get the timeline for | /library/metadata/23409 |
|
||||||
| `State` | [operations.State](../../models/operations/state.md) | :heavy_check_mark: | The state of the media item |
|
| `State` | [operations.State](../../models/operations/state.md) | :heavy_check_mark: | The state of the media item | playing |
|
||||||
| `HasMDE` | *float64* | :heavy_check_mark: | Whether the media item has MDE |
|
| `HasMDE` | *float64* | :heavy_check_mark: | Whether the media item has MDE | 1 |
|
||||||
| `Time` | *float64* | :heavy_check_mark: | The time of the media item |
|
| `Time` | *float64* | :heavy_check_mark: | The time of the media item | 2000 |
|
||||||
| `Duration` | *float64* | :heavy_check_mark: | The duration of the media item |
|
| `Duration` | *float64* | :heavy_check_mark: | The duration of the media item | 10000 |
|
||||||
| `Context` | *string* | :heavy_check_mark: | The context of the media item |
|
| `Context` | *string* | :heavy_check_mark: | The context of the media item | home:hub.continueWatching |
|
||||||
| `PlayQueueItemID` | *float64* | :heavy_check_mark: | The play queue item ID of the media item |
|
| `PlayQueueItemID` | *float64* | :heavy_check_mark: | The play queue item ID of the media item | 1 |
|
||||||
| `PlayBackTime` | *float64* | :heavy_check_mark: | The playback time of the media item |
|
| `PlayBackTime` | *float64* | :heavy_check_mark: | The playback time of the media item | 2000 |
|
||||||
| `Row` | *float64* | :heavy_check_mark: | The row of the media item |
|
| `Row` | *float64* | :heavy_check_mark: | The row of the media item | 1 |
|
||||||
@@ -3,21 +3,21 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
|
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
|
||||||
| `HasMDE` | *float64* | :heavy_check_mark: | Whether the media item has MDE |
|
| `HasMDE` | *float64* | :heavy_check_mark: | Whether the media item has MDE | 1 |
|
||||||
| `Path` | *string* | :heavy_check_mark: | The path to the media item to transcode |
|
| `Path` | *string* | :heavy_check_mark: | The path to the media item to transcode | /library/metadata/23409 |
|
||||||
| `MediaIndex` | *float64* | :heavy_check_mark: | The index of the media item to transcode |
|
| `MediaIndex` | *float64* | :heavy_check_mark: | The index of the media item to transcode | 0 |
|
||||||
| `PartIndex` | *float64* | :heavy_check_mark: | The index of the part to transcode |
|
| `PartIndex` | *float64* | :heavy_check_mark: | The index of the part to transcode | 0 |
|
||||||
| `Protocol` | *string* | :heavy_check_mark: | The protocol to use for the transcode session |
|
| `Protocol` | *string* | :heavy_check_mark: | The protocol to use for the transcode session | hls |
|
||||||
| `FastSeek` | **float64* | :heavy_minus_sign: | Whether to use fast seek or not |
|
| `FastSeek` | **float64* | :heavy_minus_sign: | Whether to use fast seek or not | 0 |
|
||||||
| `DirectPlay` | **float64* | :heavy_minus_sign: | Whether to use direct play or not |
|
| `DirectPlay` | **float64* | :heavy_minus_sign: | Whether to use direct play or not | 0 |
|
||||||
| `DirectStream` | **float64* | :heavy_minus_sign: | Whether to use direct stream or not |
|
| `DirectStream` | **float64* | :heavy_minus_sign: | Whether to use direct stream or not | 0 |
|
||||||
| `SubtitleSize` | **float64* | :heavy_minus_sign: | The size of the subtitles |
|
| `SubtitleSize` | **float64* | :heavy_minus_sign: | The size of the subtitles | 100 |
|
||||||
| `Subtites` | **string* | :heavy_minus_sign: | The subtitles |
|
| `Subtites` | **string* | :heavy_minus_sign: | The subtitles | burn |
|
||||||
| `AudioBoost` | **float64* | :heavy_minus_sign: | The audio boost |
|
| `AudioBoost` | **float64* | :heavy_minus_sign: | The audio boost | 100 |
|
||||||
| `Location` | **string* | :heavy_minus_sign: | The location of the transcode session |
|
| `Location` | **string* | :heavy_minus_sign: | The location of the transcode session | lan |
|
||||||
| `MediaBufferSize` | **float64* | :heavy_minus_sign: | The size of the media buffer |
|
| `MediaBufferSize` | **float64* | :heavy_minus_sign: | The size of the media buffer | 102400 |
|
||||||
| `Session` | **string* | :heavy_minus_sign: | The session ID |
|
| `Session` | **string* | :heavy_minus_sign: | The session ID | zvcage8b7rkioqcm8f4uns4c |
|
||||||
| `AddDebugOverlay` | **float64* | :heavy_minus_sign: | Whether to add a debug overlay or not |
|
| `AddDebugOverlay` | **float64* | :heavy_minus_sign: | Whether to add a debug overlay or not | 0 |
|
||||||
| `AutoAdjustQuality` | **float64* | :heavy_minus_sign: | Whether to auto adjust quality or not |
|
| `AutoAdjustQuality` | **float64* | :heavy_minus_sign: | Whether to auto adjust quality or not | 0 |
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||||
| `Key` | *string* | :heavy_check_mark: | the media key |
|
| `Key` | *string* | :heavy_check_mark: | the media key | |
|
||||||
| `Time` | *float64* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. |
|
| `Time` | *float64* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. | 90000 |
|
||||||
| `State` | *string* | :heavy_check_mark: | The playback state of the media item. |
|
| `State` | *string* | :heavy_check_mark: | The playback state of the media item. | played |
|
||||||
@@ -88,7 +88,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
var activityUUID string = "<value>"
|
var activityUUID string = "25b71ed5-0f9d-461c-baa7-d404e9e10d3e"
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Activities.CancelServerActivities(ctx, activityUUID)
|
res, err := s.Activities.CancelServerActivities(ctx, activityUUID)
|
||||||
@@ -103,10 +103,10 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description |
|
| 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. | |
|
||||||
| `activityUUID` | *string* | :heavy_check_mark: | The UUID of the activity to cancel. |
|
| `activityUUID` | *string* | :heavy_check_mark: | The UUID of the activity to cancel. | 25b71ed5-0f9d-461c-baa7-d404e9e10d3e |
|
||||||
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|||||||
@@ -142,9 +142,9 @@ func main() {
|
|||||||
|
|
||||||
var key string = "<value>"
|
var key string = "<value>"
|
||||||
|
|
||||||
var time float64 = 6900.91
|
var time float64 = 90000
|
||||||
|
|
||||||
var state string = "<value>"
|
var state string = "played"
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Media.UpdatePlayProgress(ctx, key, time, state)
|
res, err := s.Media.UpdatePlayProgress(ctx, key, time, state)
|
||||||
@@ -159,12 +159,12 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description |
|
| 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. | |
|
||||||
| `key` | *string* | :heavy_check_mark: | the media key |
|
| `key` | *string* | :heavy_check_mark: | the media key | |
|
||||||
| `time` | *float64* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. |
|
| `time` | *float64* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. | 90000 |
|
||||||
| `state` | *string* | :heavy_check_mark: | The playback state of the media item. |
|
| `state` | *string* | :heavy_check_mark: | The playback state of the media item. | played |
|
||||||
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
var timespan *int64 = plexgo.Int64(411769)
|
var timespan *int64 = plexgo.Int64(4)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Statistics.GetStatistics(ctx, timespan)
|
res, err := s.Statistics.GetStatistics(ctx, timespan)
|
||||||
@@ -48,10 +48,10 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description |
|
| 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. | |
|
||||||
| `timespan` | **int64* | :heavy_minus_sign: | The timespan to retrieve statistics for<br/>the exact meaning of this parameter is not known<br/> |
|
| `timespan` | **int64* | :heavy_minus_sign: | The timespan to retrieve statistics for<br/>the exact meaning of this parameter is not known<br/> | 4 |
|
||||||
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|||||||
@@ -100,10 +100,10 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description |
|
| 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. | |
|
||||||
| `download` | [*operations.Download](../../models/operations/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. |
|
| `download` | [*operations.Download](../../models/operations/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 |
|
||||||
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
@@ -141,7 +141,7 @@ func main() {
|
|||||||
|
|
||||||
var tonight *operations.Tonight = operations.TonightOne.ToPointer()
|
var tonight *operations.Tonight = operations.TonightOne.ToPointer()
|
||||||
|
|
||||||
var skip *operations.Skip = operations.SkipZero.ToPointer()
|
var skip *operations.Skip = operations.SkipOne.ToPointer()
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Updater.ApplyUpdates(ctx, tonight, skip)
|
res, err := s.Updater.ApplyUpdates(ctx, tonight, skip)
|
||||||
@@ -156,11 +156,11 @@ func main() {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description |
|
| 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. | |
|
||||||
| `tonight` | [*operations.Tonight](../../models/operations/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install |
|
| `tonight` | [*operations.Tonight](../../models/operations/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 |
|
||||||
| `skip` | [*operations.Skip](../../models/operations/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. |
|
| `skip` | [*operations.Skip](../../models/operations/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. | 1 |
|
||||||
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|||||||
@@ -36,16 +36,16 @@ func main() {
|
|||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Video.GetTimeline(ctx, operations.GetTimelineRequest{
|
res, err := s.Video.GetTimeline(ctx, operations.GetTimelineRequest{
|
||||||
RatingKey: 716.56,
|
RatingKey: 23409,
|
||||||
Key: "<key>",
|
Key: "/library/metadata/23409",
|
||||||
State: operations.StatePaused,
|
State: operations.StatePlaying,
|
||||||
HasMDE: 7574.33,
|
HasMDE: 1,
|
||||||
Time: 3327.51,
|
Time: 2000,
|
||||||
Duration: 7585.39,
|
Duration: 10000,
|
||||||
Context: "<value>",
|
Context: "home:hub.continueWatching",
|
||||||
PlayQueueItemID: 1406.21,
|
PlayQueueItemID: 1,
|
||||||
PlayBackTime: 2699.34,
|
PlayBackTime: 2000,
|
||||||
Row: 3536.42,
|
Row: 1,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
@@ -97,11 +97,22 @@ func main() {
|
|||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
res, err := s.Video.StartUniversalTranscode(ctx, operations.StartUniversalTranscodeRequest{
|
res, err := s.Video.StartUniversalTranscode(ctx, operations.StartUniversalTranscodeRequest{
|
||||||
HasMDE: 8924.99,
|
HasMDE: 1,
|
||||||
Path: "/etc/mail",
|
Path: "/library/metadata/23409",
|
||||||
MediaIndex: 9962.95,
|
MediaIndex: 0,
|
||||||
PartIndex: 1232.82,
|
PartIndex: 0,
|
||||||
Protocol: "<value>",
|
Protocol: "hls",
|
||||||
|
FastSeek: plexgo.Float64(0),
|
||||||
|
DirectPlay: plexgo.Float64(0),
|
||||||
|
DirectStream: plexgo.Float64(0),
|
||||||
|
SubtitleSize: plexgo.Float64(100),
|
||||||
|
Subtites: plexgo.String("burn"),
|
||||||
|
AudioBoost: plexgo.Float64(100),
|
||||||
|
Location: plexgo.String("lan"),
|
||||||
|
MediaBufferSize: plexgo.Float64(102400),
|
||||||
|
Session: plexgo.String("zvcage8b7rkioqcm8f4uns4c"),
|
||||||
|
AddDebugOverlay: plexgo.Float64(0),
|
||||||
|
AutoAdjustQuality: plexgo.Float64(0),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@@ -260,6 +261,18 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error)
|
|||||||
|
|
||||||
typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v))
|
typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v))
|
||||||
switch typ.Kind() {
|
switch typ.Kind() {
|
||||||
|
case reflect.Int64:
|
||||||
|
format := tag.Get("integer")
|
||||||
|
if format == "string" {
|
||||||
|
b := val.Interface().(int64)
|
||||||
|
return []byte(fmt.Sprintf(`"%d"`, b)), nil
|
||||||
|
}
|
||||||
|
case reflect.Float64:
|
||||||
|
format := tag.Get("number")
|
||||||
|
if format == "string" {
|
||||||
|
b := val.Interface().(float64)
|
||||||
|
return []byte(fmt.Sprintf(`"%g"`, b)), nil
|
||||||
|
}
|
||||||
case reflect.Map:
|
case reflect.Map:
|
||||||
if isNil(typ, val) {
|
if isNil(typ, val) {
|
||||||
return []byte("null"), nil
|
return []byte("null"), nil
|
||||||
@@ -349,6 +362,16 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc
|
|||||||
if bigIntTag == "string" {
|
if bigIntTag == "string" {
|
||||||
return []byte(fmt.Sprintf(`"%s"`, tagValue))
|
return []byte(fmt.Sprintf(`"%s"`, tagValue))
|
||||||
}
|
}
|
||||||
|
case reflect.TypeOf(int64(0)):
|
||||||
|
format := tag.Get("integer")
|
||||||
|
if format == "string" {
|
||||||
|
return []byte(fmt.Sprintf(`"%s"`, tagValue))
|
||||||
|
}
|
||||||
|
case reflect.TypeOf(float64(0)):
|
||||||
|
format := tag.Get("number")
|
||||||
|
if format == "string" {
|
||||||
|
return []byte(fmt.Sprintf(`"%s"`, tagValue))
|
||||||
|
}
|
||||||
case reflect.TypeOf(decimal.Big{}):
|
case reflect.TypeOf(decimal.Big{}):
|
||||||
decimalTag := tag.Get("decimal")
|
decimalTag := tag.Get("decimal")
|
||||||
if decimalTag != "number" {
|
if decimalTag != "number" {
|
||||||
@@ -377,6 +400,57 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa
|
|||||||
typ := dereferenceTypePointer(v.Type())
|
typ := dereferenceTypePointer(v.Type())
|
||||||
|
|
||||||
switch typ.Kind() {
|
switch typ.Kind() {
|
||||||
|
case reflect.Int64:
|
||||||
|
var b int64
|
||||||
|
|
||||||
|
format := tag.Get("integer")
|
||||||
|
if format == "string" {
|
||||||
|
var s string
|
||||||
|
if err := json.Unmarshal(value, &s); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
b, err = strconv.ParseInt(s, 10, 64)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to parse string as int64: %w", err)
|
||||||
|
}
|
||||||
|
if v.Kind() == reflect.Ptr {
|
||||||
|
if v.IsNil() {
|
||||||
|
v.Set(reflect.New(typ))
|
||||||
|
}
|
||||||
|
v = v.Elem()
|
||||||
|
}
|
||||||
|
|
||||||
|
v.Set(reflect.ValueOf(b))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
case reflect.Float64:
|
||||||
|
var b float64
|
||||||
|
|
||||||
|
format := tag.Get("number")
|
||||||
|
if format == "string" {
|
||||||
|
var s string
|
||||||
|
if err := json.Unmarshal(value, &s); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
b, err = strconv.ParseFloat(s, 64)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to parse string as float64: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if v.Kind() == reflect.Ptr {
|
||||||
|
if v.IsNil() {
|
||||||
|
v.Set(reflect.New(typ))
|
||||||
|
}
|
||||||
|
v = v.Elem()
|
||||||
|
}
|
||||||
|
|
||||||
|
v.Set(reflect.ValueOf(b))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
case reflect.Map:
|
case reflect.Map:
|
||||||
if bytes.Equal(value, []byte("null")) || !isComplexValueType(dereferenceTypePointer(typ.Elem())) {
|
if bytes.Equal(value, []byte("null")) || !isComplexValueType(dereferenceTypePointer(typ.Elem())) {
|
||||||
if v.CanAddr() {
|
if v.CanAddr() {
|
||||||
|
|||||||
@@ -276,9 +276,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
sdkConfiguration: sdkConfiguration{
|
sdkConfiguration: sdkConfiguration{
|
||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.6.6",
|
SDKVersion: "0.6.7",
|
||||||
GenVersion: "2.319.10",
|
GenVersion: "2.322.5",
|
||||||
UserAgent: "speakeasy-sdk/go 0.6.6 2.319.10 0.0.3 github.com/LukeHagar/plexgo",
|
UserAgent: "speakeasy-sdk/go 0.6.7 2.322.5 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