Documentation ¶
Index ¶
- type AlbumArtists
- type ArtistItems
- type Chapters
- type Client
- func (c *Client) GetApiKey(username, password string) (*GetApiKeyResp, error)
- func (c *Client) GetItem(id string) (*Items, error)
- func (c *Client) GetItems(opt ...GetItemsOptionFunc) (*GetItemResp, error)
- func (c *Client) Library() (*LibraryResp, error)
- func (c *Client) Login(username, password string) error
- func (c *Client) Logout() error
- func (c *Client) Me() (*MeResp, error)
- func (c *Client) NewRequest(method, relative string, data any, querys ...map[string]string) (req *http.Request, err error)
- func (c *Client) SetKey(key string)
- func (c *Client) SetUserID(userID string)
- func (c *Client) SystemInfo() (*SystemInfoResp, error)
- type ClientOption
- type Composers
- type ExternalUrls
- type GenreItems
- type GetApiKeyResp
- type GetItemResp
- type GetItemsOptionFunc
- func WithIncludeItemTypes(types ...string) GetItemsOptionFunc
- func WithLimit(limit uint64) GetItemsOptionFunc
- func WithParentId(parentId string) GetItemsOptionFunc
- func WithRecursive() GetItemsOptionFunc
- func WithSearch(search string) GetItemsOptionFunc
- func WithSortBy(sortBy string) GetItemsOptionFunc
- func WithSortOrderAsc() GetItemsOptionFunc
- func WithSortOrderDesc() GetItemsOptionFunc
- func WithStartIndex(startIndex uint64) GetItemsOptionFunc
- type ImageTags
- type InstallationInfo
- type Items
- type LibraryResp
- type LoginReq
- type LoginResp
- type MeResp
- type MediaSources
- type MediaStreams
- type People
- type RemoteTrailers
- type RequiredHTTPHeaders
- type Studios
- type SystemInfoResp
- type TagItems
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumArtists ¶
type ArtistItems ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(host string, opt ...ClientOption) *Client
func (*Client) GetApiKey ¶
func (c *Client) GetApiKey(username, password string) (*GetApiKeyResp, error)
func (*Client) GetItems ¶
func (c *Client) GetItems(opt ...GetItemsOptionFunc) (*GetItemResp, error)
func (*Client) Library ¶
func (c *Client) Library() (*LibraryResp, error)
func (*Client) NewRequest ¶
func (*Client) SystemInfo ¶
func (c *Client) SystemInfo() (*SystemInfoResp, error)
type ClientOption ¶
type ClientOption func(*Client)
func WithContext ¶
func WithContext(ctx context.Context) ClientOption
func WithKey ¶
func WithKey(key string) ClientOption
func WithUserID ¶
func WithUserID(userID string) ClientOption
type ExternalUrls ¶
type GenreItems ¶
type GetApiKeyResp ¶
type GetItemResp ¶
type GetItemsOptionFunc ¶
func WithIncludeItemTypes ¶ added in v0.3.2
func WithIncludeItemTypes(types ...string) GetItemsOptionFunc
func WithLimit ¶
func WithLimit(limit uint64) GetItemsOptionFunc
func WithParentId ¶ added in v0.3.2
func WithParentId(parentId string) GetItemsOptionFunc
func WithSearch ¶ added in v0.3.2
func WithSearch(search string) GetItemsOptionFunc
func WithSortBy ¶ added in v0.3.2
func WithSortBy(sortBy string) GetItemsOptionFunc
func WithSortOrderAsc ¶ added in v0.3.2
func WithSortOrderAsc() GetItemsOptionFunc
func WithSortOrderDesc ¶ added in v0.3.2
func WithSortOrderDesc() GetItemsOptionFunc
func WithStartIndex ¶
func WithStartIndex(startIndex uint64) GetItemsOptionFunc
type InstallationInfo ¶
type Items ¶
type Items struct { Name string `json:"Name"` OriginalTitle string `json:"OriginalTitle"` ServerID string `json:"ServerId"` ID string `json:"Id"` GUID string `json:"Guid"` Etag string `json:"Etag"` Prefix string `json:"Prefix"` PlaylistItemID string `json:"PlaylistItemId"` DateCreated time.Time `json:"DateCreated"` ExtraType string `json:"ExtraType"` SortIndexNumber int `json:"SortIndexNumber"` SortParentIndexNumber int `json:"SortParentIndexNumber"` AirsBeforeSeasonNumber int `json:"AirsBeforeSeasonNumber"` AirsAfterSeasonNumber int `json:"AirsAfterSeasonNumber"` AirsBeforeEpisodeNumber int `json:"AirsBeforeEpisodeNumber"` CanDelete bool `json:"CanDelete"` CanDownload bool `json:"CanDownload"` SupportsResume bool `json:"SupportsResume"` PresentationUniqueKey string `json:"PresentationUniqueKey"` PreferredMetadataLanguage string `json:"PreferredMetadataLanguage"` PreferredMetadataCountryCode string `json:"PreferredMetadataCountryCode"` SupportsSync bool `json:"SupportsSync"` Container string `json:"Container"` SortName string `json:"SortName"` ForcedSortName string `json:"ForcedSortName"` Video3DFormat string `json:"Video3DFormat"` PremiereDate time.Time `json:"PremiereDate"` ExternalUrls []ExternalUrls `json:"ExternalUrls"` MediaSources []MediaSources `json:"MediaSources"` CriticRating int `json:"CriticRating"` GameSystemID int `json:"GameSystemId"` AsSeries bool `json:"AsSeries"` GameSystem string `json:"GameSystem"` ProductionLocations []string `json:"ProductionLocations"` Path string `json:"Path"` OfficialRating string `json:"OfficialRating"` CustomRating string `json:"CustomRating"` ChannelID string `json:"ChannelId"` ChannelName string `json:"ChannelName"` Overview string `json:"Overview"` Taglines []string `json:"Taglines"` Genres []string `json:"Genres"` CommunityRating int `json:"CommunityRating"` RunTimeTicks int `json:"RunTimeTicks"` Size int `json:"Size"` FileName string `json:"FileName"` Bitrate int `json:"Bitrate"` PlayAccess string `json:"PlayAccess"` ProductionYear int `json:"ProductionYear"` Number string `json:"Number"` ChannelNumber string `json:"ChannelNumber"` IndexNumber int `json:"IndexNumber"` IndexNumberEnd int `json:"IndexNumberEnd"` ParentIndexNumber int `json:"ParentIndexNumber"` RemoteTrailers []RemoteTrailers `json:"RemoteTrailers"` ProviderIds []string `json:"ProviderIds"` IsFolder bool `json:"IsFolder"` ParentID string `json:"ParentId"` Type string `json:"Type"` People []People `json:"People"` Studios []Studios `json:"Studios"` GenreItems []GenreItems `json:"GenreItems"` TagItems []TagItems `json:"TagItems"` ParentLogoItemID string `json:"ParentLogoItemId"` ParentBackdropItemID string `json:"ParentBackdropItemId"` ParentBackdropImageTags []string `json:"ParentBackdropImageTags"` LocalTrailerCount int `json:"LocalTrailerCount"` UserData UserData `json:"UserData"` RecursiveItemCount int `json:"RecursiveItemCount"` ChildCount int `json:"ChildCount"` SeriesName string `json:"SeriesName"` SeriesID string `json:"SeriesId"` SeasonID string `json:"SeasonId"` SpecialFeatureCount int `json:"SpecialFeatureCount"` DisplayPreferencesID string `json:"DisplayPreferencesId"` Status string `json:"Status"` AirDays []string `json:"AirDays"` Tags []string `json:"Tags"` PrimaryImageAspectRatio int `json:"PrimaryImageAspectRatio"` Artists []string `json:"Artists"` ArtistItems []ArtistItems `json:"ArtistItems"` Composers []Composers `json:"Composers"` Album string `json:"Album"` CollectionType string `json:"CollectionType"` DisplayOrder string `json:"DisplayOrder"` AlbumID string `json:"AlbumId"` AlbumPrimaryImageTag string `json:"AlbumPrimaryImageTag"` SeriesPrimaryImageTag string `json:"SeriesPrimaryImageTag"` AlbumArtist string `json:"AlbumArtist"` AlbumArtists []AlbumArtists `json:"AlbumArtists"` SeasonName string `json:"SeasonName"` MediaStreams []MediaStreams `json:"MediaStreams"` PartCount int `json:"PartCount"` ImageTags ImageTags `json:"ImageTags"` BackdropImageTags []string `json:"BackdropImageTags"` ParentLogoImageTag string `json:"ParentLogoImageTag"` SeriesStudio string `json:"SeriesStudio"` ParentThumbItemID string `json:"ParentThumbItemId"` ParentThumbImageTag string `json:"ParentThumbImageTag"` Chapters []Chapters `json:"Chapters"` LocationType string `json:"LocationType"` MediaType string `json:"MediaType"` EndDate time.Time `json:"EndDate"` LockedFields []string `json:"LockedFields"` LockData bool `json:"LockData"` Width int `json:"Width"` Height int `json:"Height"` CameraMake string `json:"CameraMake"` CameraModel string `json:"CameraModel"` Software string `json:"Software"` ExposureTime int `json:"ExposureTime"` FocalLength int `json:"FocalLength"` ImageOrientation string `json:"ImageOrientation"` Aperture int `json:"Aperture"` ShutterSpeed int `json:"ShutterSpeed"` Latitude int `json:"Latitude"` Longitude int `json:"Longitude"` Altitude int `json:"Altitude"` IsoSpeedRating int `json:"IsoSpeedRating"` SeriesTimerID string `json:"SeriesTimerId"` ChannelPrimaryImageTag string `json:"ChannelPrimaryImageTag"` StartDate time.Time `json:"StartDate"` CompletionPercentage int `json:"CompletionPercentage"` IsRepeat bool `json:"IsRepeat"` IsNew bool `json:"IsNew"` EpisodeTitle string `json:"EpisodeTitle"` IsMovie bool `json:"IsMovie"` IsSports bool `json:"IsSports"` IsSeries bool `json:"IsSeries"` IsLive bool `json:"IsLive"` IsNews bool `json:"IsNews"` IsKids bool `json:"IsKids"` IsPremiere bool `json:"IsPremiere"` TimerType string `json:"TimerType"` Disabled bool `json:"Disabled"` ManagementID string `json:"ManagementId"` TimerID string `json:"TimerId"` CurrentProgram string `json:"CurrentProgram"` MovieCount int `json:"MovieCount"` SeriesCount int `json:"SeriesCount"` AlbumCount int `json:"AlbumCount"` SongCount int `json:"SongCount"` MusicVideoCount int `json:"MusicVideoCount"` Subviews []string `json:"Subviews"` ListingsProviderID string `json:"ListingsProviderId"` ListingsChannelID string `json:"ListingsChannelId"` ListingsPath string `json:"ListingsPath"` ListingsID string `json:"ListingsId"` ListingsChannelName string `json:"ListingsChannelName"` ListingsChannelNumber string `json:"ListingsChannelNumber"` AffiliateCallSign string `json:"AffiliateCallSign"` }
type LibraryResp ¶
type LibraryResp struct { Items []struct { Name string `json:"Name"` ServerID string `json:"ServerId"` ID string `json:"Id"` GUID string `json:"Guid"` Etag string `json:"Etag"` DateCreated time.Time `json:"DateCreated"` CanDelete bool `json:"CanDelete"` CanDownload bool `json:"CanDownload"` PresentationUniqueKey string `json:"PresentationUniqueKey"` SortName string `json:"SortName"` ForcedSortName string `json:"ForcedSortName"` Path string `json:"Path"` FileName string `json:"FileName"` ProviderIds struct { } `json:"ProviderIds"` IsFolder bool `json:"IsFolder"` ParentID string `json:"ParentId"` Type string `json:"Type"` DisplayPreferencesID string `json:"DisplayPreferencesId"` CollectionType string `json:"CollectionType"` LockData bool `json:"LockData"` PrimaryImageAspectRatio float64 `json:"PrimaryImageAspectRatio,omitempty"` ImageTags struct { Primary string `json:"Primary"` } `json:"ImageTags,omitempty"` } `json:"Items"` TotalRecordCount int `json:"TotalRecordCount"` }
type LoginResp ¶
type LoginResp struct { User struct { Name string `json:"Name"` ServerID string `json:"ServerId"` Prefix string `json:"Prefix"` DateCreated time.Time `json:"DateCreated"` ID string `json:"Id"` HasPassword bool `json:"HasPassword"` HasConfiguredPassword bool `json:"HasConfiguredPassword"` HasConfiguredEasyPassword bool `json:"HasConfiguredEasyPassword"` LastLoginDate time.Time `json:"LastLoginDate"` LastActivityDate time.Time `json:"LastActivityDate"` Configuration struct { AudioLanguagePreference string `json:"AudioLanguagePreference"` PlayDefaultAudioTrack bool `json:"PlayDefaultAudioTrack"` DisplayMissingEpisodes bool `json:"DisplayMissingEpisodes"` SubtitleMode string `json:"SubtitleMode"` EnableLocalPassword bool `json:"EnableLocalPassword"` HidePlayedInLatest bool `json:"HidePlayedInLatest"` RememberAudioSelections bool `json:"RememberAudioSelections"` RememberSubtitleSelections bool `json:"RememberSubtitleSelections"` EnableNextEpisodeAutoPlay bool `json:"EnableNextEpisodeAutoPlay"` ResumeRewindSeconds int `json:"ResumeRewindSeconds"` IntroSkipMode string `json:"IntroSkipMode"` } `json:"Configuration"` Policy struct { IsAdministrator bool `json:"IsAdministrator"` IsHidden bool `json:"IsHidden"` IsHiddenRemotely bool `json:"IsHiddenRemotely"` IsHiddenFromUnusedDevices bool `json:"IsHiddenFromUnusedDevices"` IsDisabled bool `json:"IsDisabled"` IsTagBlockingModeInclusive bool `json:"IsTagBlockingModeInclusive"` EnableUserPreferenceAccess bool `json:"EnableUserPreferenceAccess"` EnableRemoteControlOfOtherUsers bool `json:"EnableRemoteControlOfOtherUsers"` EnableSharedDeviceControl bool `json:"EnableSharedDeviceControl"` EnableRemoteAccess bool `json:"EnableRemoteAccess"` EnableLiveTvManagement bool `json:"EnableLiveTvManagement"` EnableLiveTvAccess bool `json:"EnableLiveTvAccess"` EnableMediaPlayback bool `json:"EnableMediaPlayback"` EnableAudioPlaybackTranscoding bool `json:"EnableAudioPlaybackTranscoding"` EnableVideoPlaybackTranscoding bool `json:"EnableVideoPlaybackTranscoding"` EnablePlaybackRemuxing bool `json:"EnablePlaybackRemuxing"` EnableContentDeletion bool `json:"EnableContentDeletion"` EnableContentDownloading bool `json:"EnableContentDownloading"` EnableSubtitleDownloading bool `json:"EnableSubtitleDownloading"` EnableSubtitleManagement bool `json:"EnableSubtitleManagement"` EnableSyncTranscoding bool `json:"EnableSyncTranscoding"` EnableMediaConversion bool `json:"EnableMediaConversion"` EnableAllChannels bool `json:"EnableAllChannels"` EnableAllFolders bool `json:"EnableAllFolders"` InvalidLoginAttemptCount int `json:"InvalidLoginAttemptCount"` EnablePublicSharing bool `json:"EnablePublicSharing"` RemoteClientBitrateLimit int `json:"RemoteClientBitrateLimit"` AuthenticationProviderID string `json:"AuthenticationProviderId"` SimultaneousStreamLimit int `json:"SimultaneousStreamLimit"` EnableAllDevices bool `json:"EnableAllDevices"` } `json:"Policy"` } `json:"User"` SessionInfo struct { PlayState struct { CanSeek bool `json:"CanSeek"` IsPaused bool `json:"IsPaused"` IsMuted bool `json:"IsMuted"` RepeatMode string `json:"RepeatMode"` SubtitleOffset int `json:"SubtitleOffset"` PlaybackRate int `json:"PlaybackRate"` } `json:"PlayState"` RemoteEndPoint string `json:"RemoteEndPoint"` Protocol string `json:"Protocol"` PlaylistIndex int `json:"PlaylistIndex"` PlaylistLength int `json:"PlaylistLength"` ID string `json:"Id"` ServerID string `json:"ServerId"` UserID string `json:"UserId"` UserName string `json:"UserName"` Client string `json:"Client"` LastActivityDate time.Time `json:"LastActivityDate"` DeviceName string `json:"DeviceName"` InternalDeviceID int `json:"InternalDeviceId"` DeviceID string `json:"DeviceId"` ApplicationVersion string `json:"ApplicationVersion"` SupportsRemoteControl bool `json:"SupportsRemoteControl"` } `json:"SessionInfo"` AccessToken string `json:"AccessToken"` ServerID string `json:"ServerId"` }
type MeResp ¶
type MeResp struct { Name string `json:"Name"` ServerID string `json:"ServerId"` Prefix string `json:"Prefix"` DateCreated time.Time `json:"DateCreated"` ID string `json:"Id"` HasPassword bool `json:"HasPassword"` HasConfiguredPassword bool `json:"HasConfiguredPassword"` HasConfiguredEasyPassword bool `json:"HasConfiguredEasyPassword"` LastLoginDate time.Time `json:"LastLoginDate"` LastActivityDate time.Time `json:"LastActivityDate"` Policy struct { IsAdministrator bool `json:"IsAdministrator"` IsHidden bool `json:"IsHidden"` IsHiddenRemotely bool `json:"IsHiddenRemotely"` IsHiddenFromUnusedDevices bool `json:"IsHiddenFromUnusedDevices"` IsDisabled bool `json:"IsDisabled"` IsTagBlockingModeInclusive bool `json:"IsTagBlockingModeInclusive"` EnableUserPreferenceAccess bool `json:"EnableUserPreferenceAccess"` EnableRemoteControlOfOtherUsers bool `json:"EnableRemoteControlOfOtherUsers"` EnableSharedDeviceControl bool `json:"EnableSharedDeviceControl"` EnableRemoteAccess bool `json:"EnableRemoteAccess"` EnableLiveTvManagement bool `json:"EnableLiveTvManagement"` EnableLiveTvAccess bool `json:"EnableLiveTvAccess"` EnableMediaPlayback bool `json:"EnableMediaPlayback"` EnableAudioPlaybackTranscoding bool `json:"EnableAudioPlaybackTranscoding"` EnableVideoPlaybackTranscoding bool `json:"EnableVideoPlaybackTranscoding"` EnablePlaybackRemuxing bool `json:"EnablePlaybackRemuxing"` EnableContentDeletion bool `json:"EnableContentDeletion"` EnableContentDownloading bool `json:"EnableContentDownloading"` EnableSubtitleDownloading bool `json:"EnableSubtitleDownloading"` EnableSubtitleManagement bool `json:"EnableSubtitleManagement"` EnableSyncTranscoding bool `json:"EnableSyncTranscoding"` EnableMediaConversion bool `json:"EnableMediaConversion"` EnableAllChannels bool `json:"EnableAllChannels"` EnableAllFolders bool `json:"EnableAllFolders"` InvalidLoginAttemptCount int `json:"InvalidLoginAttemptCount"` EnablePublicSharing bool `json:"EnablePublicSharing"` RemoteClientBitrateLimit int `json:"RemoteClientBitrateLimit"` AuthenticationProviderID string `json:"AuthenticationProviderId"` SimultaneousStreamLimit int `json:"SimultaneousStreamLimit"` EnableAllDevices bool `json:"EnableAllDevices"` } `json:"Policy"` Configuration struct { PlayDefaultAudioTrack bool `json:"PlayDefaultAudioTrack"` DisplayMissingEpisodes bool `json:"DisplayMissingEpisodes"` SubtitleMode string `json:"SubtitleMode"` EnableLocalPassword bool `json:"EnableLocalPassword"` OrderedViews []string `json:"OrderedViews"` LatestItemsExcludes []string `json:"LatestItemsExcludes"` MyMediaExcludes []string `json:"MyMediaExcludes"` HidePlayedInLatest bool `json:"HidePlayedInLatest"` RememberAudioSelections bool `json:"RememberAudioSelections"` RememberSubtitleSelections bool `json:"RememberSubtitleSelections"` EnableNextEpisodeAutoPlay bool `json:"EnableNextEpisodeAutoPlay"` ResumeRewindSeconds int `json:"ResumeRewindSeconds"` IntroSkipMode string `json:"IntroSkipMode"` } `json:"Configuration,omitempty"` }
type MediaSources ¶
type MediaSources struct { Protocol string `json:"Protocol"` ID string `json:"Id"` Path string `json:"Path"` EncoderPath string `json:"EncoderPath"` EncoderProtocol string `json:"EncoderProtocol"` Type string `json:"Type"` Container string `json:"Container"` Size int `json:"Size"` Name string `json:"Name"` SortName string `json:"SortName"` IsRemote bool `json:"IsRemote"` RunTimeTicks int `json:"RunTimeTicks"` ContainerStartTimeTicks int `json:"ContainerStartTimeTicks"` SupportsTranscoding bool `json:"SupportsTranscoding"` SupportsDirectStream bool `json:"SupportsDirectStream"` SupportsDirectPlay bool `json:"SupportsDirectPlay"` IsInfiniteStream bool `json:"IsInfiniteStream"` RequiresOpening bool `json:"RequiresOpening"` OpenToken string `json:"OpenToken"` RequiresClosing bool `json:"RequiresClosing"` LiveStreamID string `json:"LiveStreamId"` BufferMs int `json:"BufferMs"` RequiresLooping bool `json:"RequiresLooping"` SupportsProbing bool `json:"SupportsProbing"` Video3DFormat string `json:"Video3DFormat"` MediaStreams []MediaStreams `json:"MediaStreams"` Formats []string `json:"Formats"` Bitrate int `json:"Bitrate"` Timestamp string `json:"Timestamp"` RequiredHTTPHeaders RequiredHTTPHeaders `json:"RequiredHttpHeaders"` DirectStreamURL string `json:"DirectStreamUrl"` TranscodingURL string `json:"TranscodingUrl"` TranscodingSubProtocol string `json:"TranscodingSubProtocol"` TranscodingContainer string `json:"TranscodingContainer"` AnalyzeDurationMs int `json:"AnalyzeDurationMs"` ReadAtNativeFramerate bool `json:"ReadAtNativeFramerate"` DefaultAudioStreamIndex uint64 `json:"DefaultAudioStreamIndex"` DefaultSubtitleStreamIndex uint64 `json:"DefaultSubtitleStreamIndex"` ItemID string `json:"ItemId"` ServerID string `json:"ServerId"` }
type MediaStreams ¶
type MediaStreams struct { Codec string `json:"Codec"` CodecTag string `json:"CodecTag"` Language string `json:"Language"` ColorTransfer string `json:"ColorTransfer"` ColorPrimaries string `json:"ColorPrimaries"` ColorSpace string `json:"ColorSpace"` Comment string `json:"Comment"` StreamStartTimeTicks int `json:"StreamStartTimeTicks"` TimeBase string `json:"TimeBase"` CodecTimeBase string `json:"CodecTimeBase"` Title string `json:"Title"` Extradata string `json:"Extradata"` VideoRange string `json:"VideoRange"` DisplayTitle string `json:"DisplayTitle"` DisplayLanguage string `json:"DisplayLanguage"` NalLengthSize string `json:"NalLengthSize"` IsInterlaced bool `json:"IsInterlaced"` IsAVC bool `json:"IsAVC"` ChannelLayout string `json:"ChannelLayout"` BitRate int `json:"BitRate"` BitDepth int `json:"BitDepth"` RefFrames int `json:"RefFrames"` Rotation int `json:"Rotation"` Channels int `json:"Channels"` SampleRate int `json:"SampleRate"` IsDefault bool `json:"IsDefault"` IsForced bool `json:"IsForced"` Height int `json:"Height"` Width int `json:"Width"` AverageFrameRate float64 `json:"AverageFrameRate"` RealFrameRate float64 `json:"RealFrameRate"` Profile string `json:"Profile"` Type string `json:"Type"` AspectRatio string `json:"AspectRatio"` Index uint64 `json:"Index"` IsExternal bool `json:"IsExternal"` DeliveryMethod string `json:"DeliveryMethod"` DeliveryURL string `json:"DeliveryUrl"` IsExternalURL bool `json:"IsExternalUrl"` IsTextSubtitleStream bool `json:"IsTextSubtitleStream"` SupportsExternalStream bool `json:"SupportsExternalStream"` Path string `json:"Path"` Protocol string `json:"Protocol"` PixelFormat string `json:"PixelFormat"` Level int `json:"Level"` IsAnamorphic bool `json:"IsAnamorphic"` ItemID string `json:"ItemId"` ServerID string `json:"ServerId"` AttachmentSize int `json:"AttachmentSize"` MimeType string `json:"MimeType"` IsClosedCaptions bool `json:"IsClosedCaptions"` SubtitleLocationType string `json:"SubtitleLocationType"` }
type RemoteTrailers ¶
type RequiredHTTPHeaders ¶
type SystemInfoResp ¶
type SystemInfoResp struct { SystemUpdateLevel string `json:"SystemUpdateLevel"` OperatingSystemDisplayName string `json:"OperatingSystemDisplayName"` PackageName string `json:"PackageName"` HasPendingRestart bool `json:"HasPendingRestart"` IsShuttingDown bool `json:"IsShuttingDown"` SupportsLibraryMonitor bool `json:"SupportsLibraryMonitor"` WebSocketPortNumber int32 `json:"WebSocketPortNumber"` CompletedInstallations []InstallationInfo `json:"CompletedInstallations"` CanSelfRestart bool `json:"CanSelfRestart"` CanSelfUpdate bool `json:"CanSelfUpdate"` CanLaunchWebBrowser bool `json:"CanLaunchWebBrowser"` ProgramDataPath string `json:"ProgramDataPath"` ItemsByNamePath string `json:"ItemsByNamePath"` CachePath string `json:"CachePath"` LogPath string `json:"LogPath"` InternalMetadataPath string `json:"InternalMetadataPath"` TranscodingTempPath string `json:"TranscodingTempPath"` HttpServerPortNumber int32 `json:"HttpServerPortNumber"` SupportsHttps bool `json:"SupportsHttps"` HttpsPortNumber int32 `json:"HttpsPortNumber"` HasUpdateAvailable bool `json:"HasUpdateAvailable"` SupportsAutoRunAtStartup bool `json:"SupportsAutoRunAtStartup"` HardwareAccelerationRequiresPremiere bool `json:"HardwareAccelerationRequiresPremiere"` LocalAddress string `json:"LocalAddress"` WanAddress string `json:"WanAddress"` ServerName string `json:"ServerName"` Version string `json:"Version"` OperatingSystem string `json:"OperatingSystem"` Id string `json:"Id"` }
type UserData ¶
type UserData struct { Rating int `json:"Rating"` PlayedPercentage int `json:"PlayedPercentage"` UnplayedItemCount int `json:"UnplayedItemCount"` PlaybackPositionTicks int `json:"PlaybackPositionTicks"` PlayCount int `json:"PlayCount"` IsFavorite bool `json:"IsFavorite"` LastPlayedDate time.Time `json:"LastPlayedDate"` Played bool `json:"Played"` Key string `json:"Key"` ItemID string `json:"ItemId"` ServerID string `json:"ServerId"` }
Click to show internal directories.
Click to hide internal directories.