Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct { XMLName xml.Name `xml:"Directory"` LocationList []Location `xml:"Location"` Count int `xml:"count,attr"` Key string `xml:"key,attr"` Title string `xml:"title,attr"` Art string `xml:"art,attr"` Composite string `xml:"composite,attr"` Filters int `xml:"filters,attr"` Refreshing int `xml:"refreshing,attr"` Thumb string `xml:"thumb,attr"` Type string `xml:"type,attr"` Agent string `xml:"agent,attr"` Scanner string `xml:"scanner,attr"` Language string `xml:"language,attr"` Uuid string `xml:"uuid,attr"` UpdatedAt string `xml:"updatedAt,attr"` CreatedAt string `xml:"createdAt,attr"` AllowSync int `xml:"allowSync,attr"` }
type MediaContainer ¶
type MediaContainer struct { XMLName xml.Name `xml:"MediaContainer"` DirectoryList []Directory `xml:"Directory"` VideoList []Video `xml:"Video"` Size int `xml:"size,attr"` AllowCameraUpload int `xml:"allowCameraUpload,attr"` AllowSync int `xml:"allowSync,attr"` AllowChannelAccess int `xml:"allowChannelAccess,attr"` RequestParametersInCookie int `xml:"requestParametersInCookie,attr"` Sync int `xml:"sync,attr"` TranscoderActiveVideoSessions int `xml:"transcoderActiveVideoSessions, attr` TranscoderAudio int `xml:"transcoderAudio,attr"` TranscoderVideo int `xml:"transcoderVideo,attr"` TranscoderVideoBitrates string `xml:"transcoderVideoBitrates,attr"` TranscoderVideoQualities string `xml:"transcoderVideoQualities,attr"` TranscoderVideoResolutions string `xml:"transcoderVideoResolutions,attr"` FriendlyName string `xml:"friendlyName,attr"` MachineIdentifier string `xml:"machineIdentifier,attr"` }
type PlexClient ¶
type PlexClient struct {
SERVER_URL string
}
func (*PlexClient) GetDirectories ¶
func (p *PlexClient) GetDirectories(url string) ([]Directory, error)
Makes call for Plex directories and return the the result
type Video ¶
type Video struct { XMLName xml.Name `xml:"Video"` RatingKey string `xml:"ratingKey,attr"` Key string `xml:"key,attr"` Studio string `xml:"studio,attr"` Type string `xml:"type,attr"` Title string `xml:"title,attr"` TitleSort string `xml:"titleSort,attr"` ContentRating string `xml:"contentRating,attr"` Summary string `xml:"summary,attr"` Rating string `xml:"rating,attr"` ViewOffset string `xml:"viewOffset,attr"` LastViewedAt string `xml:"lastViewedAt,attr"` Year string `xml:"year,attr"` Tagline string `xml:"tagline,attr"` Thumb string `xml:"thumb,attr"` Art string `xml:"art,attr"` Duration string `xml:"duration,attr"` OriginallyAvailableAt string `xml:"originallyAvailableAt,attr"` AddedAt string `xml:"addedAt,attr"` UpdatedAt string `xml:"updatedAt,attr"` ChapterSource string `xml:"chapterSource,attr"` }
Click to show internal directories.
Click to hide internal directories.