mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
* `PlexApi.LibraryPlaylists.AddPlaylistItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetMetadataHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryCollections.MoveCollectionItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryCollections.DeleteCollectionItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryCollections.AddCollectionItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetSonicallySimilar()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Butler.StopTask()`: `request.Request` **Changed** **Breaking** ⚠️ * `PlexApi.Butler.StartTask()`: `request.Request` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetSonicPath()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.DownloadQueue.GetItemDecision()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetAllHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetContinueWatching()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetPromotedHubs()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetAllLeaves()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetPostplayHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetRelatedHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetSectionHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.ListContent()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetAlbums()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Search.SearchHubs()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Search.VoiceSearchHubs()`: * `request.Request.Type` **Changed** **Breaking** ⚠️ * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetLibraryItems()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.IngestTransientItem()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetLibraryMatches()`: * `request.Request` **Changed** **Breaking** ⚠️ * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetMetadataItem()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetSections()`: `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.AddSection()`: * `request.Request` **Changed** * `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetTags()`: * `request.Request.Type` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetCollectionItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetAllItemLeaves()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Status.ListSessions()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.MovePlayQueueItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetExtras()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.DeletePlayQueueItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.Unshuffle()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListMatches()`: * `request.Request.Manual` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListSonicallySimilar()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.ResetPlayQueue()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetRelatedItems()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListSimilar()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.ClearPlayQueue()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetItemTree()`: `response.MediaContainer.MetadataItem.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.AddToPlayQueue()`: * `request.Request.Next` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.GetPlayQueue()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.MovePlaylistItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetPerson()`: `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListPersonMedia()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.GetPlaylistGeneratorItems()`: `response.MediaContainer.Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetLibraryDetails()`: * `request.Request.IncludeDetails` **Changed** * `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.ModifyPlaylistGenerator()`: * `request.Request.Item` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.Autocomplete()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetCollections()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetCommon()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.DeletePlaylistItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.ClearPlaylistItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.Shuffle()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.CreatePlaylist()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Playlist.GetPlaylistItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Playlist.GetPlaylist()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Collections.CreateCollection()`: * `request.Request.Type` **Changed** **Breaking** ⚠️ * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.DvRs.TuneChannel()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LiveTv.GetSessions()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LiveTv.GetLiveTvSession()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Playlist.ListPlaylists()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetAllSubscriptions()`: * `request.Request` **Changed** * `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.CreateSubscription()`: `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetScheduledRecordings()`: `response.MediaContainer.MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetTemplate()`: `response.MediaContainer.SubscriptionTemplate.[].MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetSubscription()`: * `request.Request` **Changed** * `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.EditSubscriptionPreferences()`: `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.ReorderSubscription()`: `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Transcoder.MakeDecision()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.RefreshItemsMetadata()`: * `request.Request.MarkUpdated` **Changed** * `PlexApi.Authentication.Post-Users-Sign-In-Data()`: **Added** * `PlexApi.Transcoder.StartTranscodeSession()`: `request.Request` **Changed** * `PlexApi.Devices.ModifyDevice()`: * `request.Request.Enabled` **Changed** * `PlexApi.Library.GetMediaPart()`: * `request.Request.Download` **Changed** * `PlexApi.Library.DetectIntros()`: * `request.Request.Force` **Changed** * `PlexApi.Library.RefreshSection()`: * `request.Request.Force` **Changed** * `PlexApi.LibraryPlaylists.UploadPlaylist()`: * `request.Request.Force` **Changed** * `PlexApi.Library.DeleteMediaItem()`: * `request.Request.Proxy` **Changed** * `PlexApi.Authentication.GetTokenDetails()`: **Added** * `PlexApi.Library.GetFirstCharacters()`: * `request.Request.MediaQuery` **Changed** * `PlexApi.Library.UpdateItems()`: * `request.Request.Field.locked` **Changed** * `PlexApi.Library.DeleteLibrarySection()`: * `request.Request.Async` **Changed** * `PlexApi.Library.SetStreamSelection()`: * `request.Request.AllParts` **Changed** * `PlexApi.PlayQueue.CreatePlayQueue()`: `request.Request` **Changed** * `PlexApi.Library.GetAugmentationStatus()`: * `request.Request.Wait` **Changed** * `PlexApi.Library.DetectVoiceActivity()`: `request.Request` **Changed** * `PlexApi.Transcoder.TranscodeImage()`: `request.Request` **Changed** * `PlexApi.Transcoder.TranscodeSubtitles()`: `request.Request` **Changed** * `PlexApi.Library.AddSubtitles()`: `request.Request` **Changed** * `PlexApi.Library.GetStream()`: * `request.Request.AutoAdjustSubtitle` **Changed** * `PlexApi.Library.StartBifGeneration()`: * `request.Request.Force` **Changed** * `PlexApi.Library.DetectCredits()`: `request.Request` **Changed** * `PlexApi.UltraBlur.GetImage()`: * `request.Request.Noise` **Changed** * `PlexApi.Library.GenerateThumbs()`: * `request.Request.Force` **Changed** * `PlexApi.Updater.ApplyUpdates()`: `request.Request` **Changed** * `PlexApi.Updater.CheckUpdates()`: * `request.Request.Download` **Changed** * `PlexApi.Library.DeleteMetadataItem()`: * `request.Request.Proxy` **Changed** * `PlexApi.Library.OptimizeDatabase()`: * `request.Request.Async` **Changed** * `PlexApi.Hubs.UpdateHubVisibility()`: `request.Request` **Changed** * `PlexApi.Hubs.CreateCustomHub()`: `request.Request` **Changed** * `PlexApi.Library.GetSectionImage()`: * `request.Request.MediaQuery` **Changed** * `PlexApi.DownloadQueue.AddDownloadQueueItems()`: `request.Request` **Changed** * `PlexApi.Timeline.Report()`: `request.Request` **Changed** * `PlexApi.General.GetSourceConnectionInformation()`: * `request.Request.Refresh` **Changed** * `PlexApi.Plex.Get-Server-Resources()`: **Added** * `PlexApi.Users.Get-Users()`: **Added**
321 lines
8.7 KiB
Go
321 lines
8.7 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
"github.com/LukeHagar/plexgo/internal/utils"
|
|
)
|
|
|
|
// DefaultAudioAccessibility - The audio accessibility mode (0 = Prefer non-accessibility audio, 1 = Prefer accessibility audio, 2 = Only show accessibility audio, 3 = Only show non-accessibility audio)
|
|
type DefaultAudioAccessibility int
|
|
|
|
const (
|
|
DefaultAudioAccessibilityPreferNonAccessibility DefaultAudioAccessibility = 0
|
|
DefaultAudioAccessibilityPreferAccessibility DefaultAudioAccessibility = 1
|
|
DefaultAudioAccessibilityOnlyAccessibility DefaultAudioAccessibility = 2
|
|
DefaultAudioAccessibilityOnlyNonAccessibility DefaultAudioAccessibility = 3
|
|
)
|
|
|
|
func (e DefaultAudioAccessibility) ToPointer() *DefaultAudioAccessibility {
|
|
return &e
|
|
}
|
|
func (e *DefaultAudioAccessibility) UnmarshalJSON(data []byte) error {
|
|
var v int
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case 0:
|
|
fallthrough
|
|
case 1:
|
|
fallthrough
|
|
case 2:
|
|
fallthrough
|
|
case 3:
|
|
*e = DefaultAudioAccessibility(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for DefaultAudioAccessibility: %v", v)
|
|
}
|
|
}
|
|
|
|
// AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
|
type AutoSelectSubtitle int
|
|
|
|
const (
|
|
AutoSelectSubtitleManuallySelected AutoSelectSubtitle = 0
|
|
AutoSelectSubtitleShownWithForeignAudio AutoSelectSubtitle = 1
|
|
AutoSelectSubtitleAlwaysEnabled AutoSelectSubtitle = 2
|
|
)
|
|
|
|
func (e AutoSelectSubtitle) ToPointer() *AutoSelectSubtitle {
|
|
return &e
|
|
}
|
|
func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error {
|
|
var v int
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case 0:
|
|
fallthrough
|
|
case 1:
|
|
fallthrough
|
|
case 2:
|
|
*e = AutoSelectSubtitle(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for AutoSelectSubtitle: %v", v)
|
|
}
|
|
}
|
|
|
|
// 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 int
|
|
|
|
const (
|
|
DefaultSubtitleAccessibilityPreferNonSdh DefaultSubtitleAccessibility = 0
|
|
DefaultSubtitleAccessibilityPreferSdh DefaultSubtitleAccessibility = 1
|
|
DefaultSubtitleAccessibilityOnlySdh DefaultSubtitleAccessibility = 2
|
|
DefaultSubtitleAccessibilityOnlyNonSdh DefaultSubtitleAccessibility = 3
|
|
)
|
|
|
|
func (e DefaultSubtitleAccessibility) ToPointer() *DefaultSubtitleAccessibility {
|
|
return &e
|
|
}
|
|
func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
|
|
var v int
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case 0:
|
|
fallthrough
|
|
case 1:
|
|
fallthrough
|
|
case 2:
|
|
fallthrough
|
|
case 3:
|
|
*e = DefaultSubtitleAccessibility(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for DefaultSubtitleAccessibility: %v", v)
|
|
}
|
|
}
|
|
|
|
// 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 int
|
|
|
|
const (
|
|
DefaultSubtitleForcedPreferNonForced DefaultSubtitleForced = 0
|
|
DefaultSubtitleForcedPreferForced DefaultSubtitleForced = 1
|
|
DefaultSubtitleForcedOnlyForced DefaultSubtitleForced = 2
|
|
DefaultSubtitleForcedOnlyNonForced DefaultSubtitleForced = 3
|
|
)
|
|
|
|
func (e DefaultSubtitleForced) ToPointer() *DefaultSubtitleForced {
|
|
return &e
|
|
}
|
|
func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error {
|
|
var v int
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case 0:
|
|
fallthrough
|
|
case 1:
|
|
fallthrough
|
|
case 2:
|
|
fallthrough
|
|
case 3:
|
|
*e = DefaultSubtitleForced(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for DefaultSubtitleForced: %v", v)
|
|
}
|
|
}
|
|
|
|
// WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
|
type WatchedIndicator int
|
|
|
|
const (
|
|
WatchedIndicatorNone WatchedIndicator = 0
|
|
WatchedIndicatorMoviesAndTvShows WatchedIndicator = 1
|
|
WatchedIndicatorMovies WatchedIndicator = 2
|
|
WatchedIndicatorTvShows WatchedIndicator = 3
|
|
)
|
|
|
|
func (e WatchedIndicator) ToPointer() *WatchedIndicator {
|
|
return &e
|
|
}
|
|
func (e *WatchedIndicator) UnmarshalJSON(data []byte) error {
|
|
var v int
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case 0:
|
|
fallthrough
|
|
case 1:
|
|
fallthrough
|
|
case 2:
|
|
fallthrough
|
|
case 3:
|
|
*e = WatchedIndicator(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for WatchedIndicator: %v", v)
|
|
}
|
|
}
|
|
|
|
// MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
|
type MediaReviewsVisibility int
|
|
|
|
const (
|
|
MediaReviewsVisibilityNoOne MediaReviewsVisibility = 0
|
|
MediaReviewsVisibilityCriticsOnly MediaReviewsVisibility = 1
|
|
MediaReviewsVisibilityPlexUsersOnly MediaReviewsVisibility = 2
|
|
MediaReviewsVisibilityPlexUsersAndCritics MediaReviewsVisibility = 3
|
|
)
|
|
|
|
func (e MediaReviewsVisibility) ToPointer() *MediaReviewsVisibility {
|
|
return &e
|
|
}
|
|
func (e *MediaReviewsVisibility) UnmarshalJSON(data []byte) error {
|
|
var v int
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case 0:
|
|
fallthrough
|
|
case 1:
|
|
fallthrough
|
|
case 2:
|
|
fallthrough
|
|
case 3:
|
|
*e = MediaReviewsVisibility(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for MediaReviewsVisibility: %v", v)
|
|
}
|
|
}
|
|
|
|
type UserProfile struct {
|
|
// If the account has automatically select audio and subtitle tracks enabled
|
|
AutoSelectAudio *bool `default:"true" json:"autoSelectAudio"`
|
|
// The preferred audio language for the account
|
|
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
|
|
DefaultAudioAccessibility *DefaultAudioAccessibility `default:"0" json:"defaultAudioAccessibility"`
|
|
// The preferred audio languages for the account
|
|
DefaultAudioLanguages []string `json:"defaultAudioLanguages,omitempty"`
|
|
// The preferred subtitle language for the account
|
|
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
|
|
// The preferred subtitle languages for the account
|
|
DefaultSubtitleLanguages []string `json:"defaultSubtitleLanguages,omitempty"`
|
|
AutoSelectSubtitle *AutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"`
|
|
DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"`
|
|
DefaultSubtitleForced *DefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"`
|
|
WatchedIndicator *WatchedIndicator `default:"0" json:"watchedIndicator"`
|
|
MediaReviewsVisibility *MediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"`
|
|
// The languages for media reviews visibility
|
|
MediaReviewsLanguages []string `json:"mediaReviewsLanguages,omitempty"`
|
|
}
|
|
|
|
func (u UserProfile) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(u, "", false)
|
|
}
|
|
|
|
func (u *UserProfile) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (u *UserProfile) GetAutoSelectAudio() *bool {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.AutoSelectAudio
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultAudioLanguage() *string {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultAudioLanguage
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultAudioAccessibility() *DefaultAudioAccessibility {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultAudioAccessibility
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultAudioLanguages() []string {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultAudioLanguages
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultSubtitleLanguage() *string {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultSubtitleLanguage
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultSubtitleLanguages() []string {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultSubtitleLanguages
|
|
}
|
|
|
|
func (u *UserProfile) GetAutoSelectSubtitle() *AutoSelectSubtitle {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.AutoSelectSubtitle
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultSubtitleAccessibility() *DefaultSubtitleAccessibility {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultSubtitleAccessibility
|
|
}
|
|
|
|
func (u *UserProfile) GetDefaultSubtitleForced() *DefaultSubtitleForced {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.DefaultSubtitleForced
|
|
}
|
|
|
|
func (u *UserProfile) GetWatchedIndicator() *WatchedIndicator {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.WatchedIndicator
|
|
}
|
|
|
|
func (u *UserProfile) GetMediaReviewsVisibility() *MediaReviewsVisibility {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.MediaReviewsVisibility
|
|
}
|
|
|
|
func (u *UserProfile) GetMediaReviewsLanguages() []string {
|
|
if u == nil {
|
|
return nil
|
|
}
|
|
return u.MediaReviewsLanguages
|
|
}
|