Versions in this module Expand all Collapse all v0 v0.3.0 Mar 27, 2024 Changes in this version + const PlexLibraryTypeMovie + const PlexLibraryTypeShow + const PlexLibraryTypeUnknown + type Account struct + ID int64 + Thumb string + Title string + type Client struct + AppName string + ClientIdentifier string + Debug bool + Device string + Headers map[string]string + MachineIdentifier string + MetadataURL string + PlexTVURL string + Product string + Token string + URL string + func New(opt *ClientOptions) *Client + func (p *Client) CheckPin(pin *Pin) (bool, error) + func (p *Client) CreateCollection(title, section, firstKey string) (*PlexCollectionCreate, error) + func (p *Client) CreatePin() (*Pin, error) + func (p *Client) DeleteCollection(ratingKey string) error + func (p *Client) GetAuthUrl(redirect string, pin *Pin) string + func (p *Client) GetClients() (*ClientsResponse, error) + func (p *Client) GetCollection(ratingKey string) (*PlexCollection, error) + func (p *Client) GetCollectionChildren(ratingKey string) ([]*PlexCollectionChild, error) + func (p *Client) GetDevices() (map[string]any, error) + func (p *Client) GetLibraries() ([]*PlexLibrary, error) + func (p *Client) GetMetadataByKey(key string) (string, error) + func (p *Client) GetResources() ([]*Resource, error) + func (p *Client) GetSeriesEpisodes(key string) ([]*PlexLeavesMetadata, error) + func (p *Client) GetSeriesEpisodesUnwatched(key string) (*PlexLeavesMetadata, error) + func (p *Client) GetSessions() ([]*PlexSessionMetadata, error) + func (p *Client) GetUser(token string) (*PlexUser, error) + func (p *Client) GetViewedByKey(key string) (*PlexLibraryMetadata, error) + func (p *Client) GetWatchlist(token string) (*PlexWatchlist, error) + func (p *Client) GetWatchlistDetail(token string, w *PlexWatchlist) ([]*PlexWatchlistDetail, error) + func (p *Client) LibraryByPath(path string) (*PlexLibrary, error) + func (p *Client) LibraryType(section string) (int, error) + func (p *Client) LibraryTypeID(t string) int + func (p *Client) LibraryTypeName(section string) (string, error) + func (p *Client) ListCollections(section string) ([]*PlexCollection, error) + func (p *Client) Play(ratingKey, player string) error + func (p *Client) RefreshLibraryPath(path string) error + func (p *Client) Search(query, section string) ([]SearchMetadata, error) + func (p *Client) Stop(session string) error + func (p *Client) UpdateCollection(section, ratingKey string, keys []string) error + type ClientOptions struct + AppName string + ClientIdentifier string + Debug bool + Device string + MachineIdentifier string + MetadataURL string + PlexTVURL string + Product string + Token string + URL string + type ClientsResponse struct + MediaContainer struct{ ... } + type Connection struct + Address string + IPv6 bool + Local bool + Port int64 + Protocol string + Relay bool + URI string + type Country struct + Tag string + type Director struct + Directory bool + ID string + Role string + Slug string + Tag string + Thumb *string + type Field struct + Locked bool + Name string + type GUID struct + ID string + type Genre struct + Context string + Directory bool + Filter string + ID string + OriginalTag *string + RatingKey string + Slug string + Tag string + type HookData struct + Payload HookPayload + type HookPayload struct + Account Account + Event string + Metadata HookPayloadMetadata + Owner bool + Player Player + Server Server + User bool + type HookPayloadMetadata struct + AddedAt int64 + Art string + GUID string + GrandparentArt string + GrandparentKey string + GrandparentRatingKey string + GrandparentThumb string + GrandparentTitle string + Index int64 + Key string + LibrarySectionID int64 + LibrarySectionType string + ParentIndex int64 + ParentKey string + ParentRatingKey string + ParentThumb string + ParentTitle string + RatingCount int64 + RatingKey string + Summary string + Thumb string + Title string + Type string + UpdatedAt int64 + type Image struct + Alt string + Type string + URL string + type Location struct + Path string + type Media struct + AspectRatio float64 + AudioChannels int64 + AudioCodec string + AudioProfile *string + Bitrate int64 + Container string + Duration int64 + Has64BitOffsets *bool + Height int64 + ID int64 + OptimizedForStreaming *int64 + Part []Part + VideoCodec string + VideoFrameRate string + VideoProfile string + VideoResolution string + Width int64 + type Part struct + AudioProfile *string + Container string + Duration int64 + File string + Has64BitOffsets *bool + ID int64 + Key string + OptimizedForStreaming *bool + Size int64 + VideoProfile string + type Pin struct + Code string + ID int + Identifier string + Product string + Token string + type Player struct + Local bool + PublicAddress string + Title string + UUID string + type PlexCollection struct + AddedAt int64 + ChildCount string + Children []*PlexCollectionChild + GUID string + Key string + LibraryID int64 + LibraryKey string + LibraryTitle string + MaxYear string + MinYear string + RatingKey string + Subtype string + Summary string + Thumb string + Title string + Type string + UpdatedAt int64 + type PlexCollectionChild struct + AddedAt int64 + GUID string + Key string + LibraryID int64 + LibraryKey string + LibraryTitle string + RatingKey string + Summary string + Thumb string + Title string + Type string + UpdatedAt int64 + type PlexCollectionChildrenResponse struct + MediaContainer struct{ ... } + type PlexCollectionCreate struct + MediaContainer struct{ ... } + type PlexCollectionResponse struct + MediaContainer struct{ ... } + type PlexLeavesMetadata struct + AddedAt int64 + GrandparentTitle string + Index int + Key string + LastViewedAt int64 + Media []*Media + ParentTitle string + RatingKey string + Title string + UpdatedAt int64 + type PlexLeavesMetadataContainer struct + MediaContainer struct{ ... } + type PlexLibraries struct + MediaContainer struct{ ... } + type PlexLibrariesCollectionResponse struct + MediaContainer struct{ ... } + type PlexLibrary struct + Agent string + AllowSync bool + Art string + Composite string + Content bool + ContentChangedAt int64 + CreatedAt int64 + Directory bool + Filters bool + Hidden int64 + Key string + Language string + Locations []*PlexLibraryLocation + Refreshing bool + ScannedAt int64 + Scanner string + Thumb string + Title string + Type string + UUID string + UpdatedAt int64 + type PlexLibraryLocation struct + ID int64 + Path string + type PlexLibraryMetadata struct + Key string + LastViewedAt int64 + Leaves int + RatingKey string + Viewed int + type PlexLibraryMetadataContainer struct + MediaContainer struct{ ... } + type PlexQueue struct + MediaContainer struct{ ... } + type PlexSearch struct + MediaContainer struct{ ... } + type PlexSessionContainer struct + MediaContainer struct{ ... } + type PlexSessionMetadata struct + AddedAt int64 + Art string + ContentRating string + Duration int64 + GUID string + GrandparentArt string + GrandparentGUID string + GrandparentKey string + GrandparentRatingKey string + GrandparentSlug string + GrandparentThumb string + GrandparentTitle string + Index int64 + Key string + LibrarySectionID string + LibrarySectionKey string + LibrarySectionTitle string + Media []*SessionMedia + OriginalTitle string + OriginallyAvailableAt string + ParentGUID string + ParentIndex int64 + ParentKey string + ParentRatingKey string + ParentTitle string + Player *SessionPlayer + RatingKey string + Session *Session + SessionKey string + Summary string + Thumb string + Title string + TranscodeSession *TranscodeSession + Type string + UpdatedAt int64 + User *User + ViewOffset int64 + Year int64 + type PlexUser struct + Confirmed bool + Email string + Home bool + HomeAdmin bool + HomeSize int64 + ID int64 + JoinedAt int64 + Thumb string + UUID string + Username string + type PlexWatchlist struct + MediaContainer struct{ ... } + type PlexWatchlistDetail struct + MediaContainer struct{ ... } + type Rating struct + Image string + Type string + Value float64 + type Resource struct + AccessToken *string + ClientIdentifier string + Connections []Connection + CreatedAt string + DNSRebindingProtection *bool + Device string + HTTPSRequired bool + Home bool + LastSeenAt string + Name string + NatLoopbackSupported *bool + Owned bool + Platform string + PlatformVersion string + Presence bool + Product string + ProductVersion string + Provides string + PublicAddress string + PublicAddressMatches bool + Relay bool + Synced bool + type Role struct + Directory bool + ID string + Order int64 + Role *string + Slug string + Tag string + Thumb *string + type SearchMetadata struct + AddedAt int64 + Art string + AudienceRating *float64 + AudienceRatingImage *string + ChapterSource *string + ChildCount *int64 + ContentRating string + Country []Country + Director []Country + Duration int64 + Field []Field + GUID string + Genre []Country + GrandparentArt *string + GrandparentGUID *string + GrandparentKey *string + GrandparentRatingKey *string + GrandparentSlug *string + GrandparentTheme *string + GrandparentThumb *string + GrandparentTitle *string + Index *int64 + Key string + LastViewedAt *int64 + LeafCount *int64 + LibrarySectionID int64 + LibrarySectionKey string + LibrarySectionTitle string + Location []Location + Media []Media + OriginalTitle *string + OriginallyAvailableAt string + ParentGUID *string + ParentIndex *int64 + ParentKey *string + ParentRatingKey *string + ParentThumb *string + ParentTitle *string + ParentYear *int64 + PrimaryExtraKey *string + Rating *float64 + RatingImage *string + RatingKey string + Role []Country + Score string + SeasonCount *int64 + SkipCount *int64 + Slug *string + Studio *string + Summary string + Tagline *string + Theme *string + Thumb string + Title string + TitleSort *string + Type string + UpdatedAt int64 + ViewCount *int64 + ViewedLeafCount *int64 + Writer []Country + Year *int64 + type Server struct + Title string + UUID string + type ServerClient struct + Address string + DeviceClass string + Host string + MachineIdentifier string + Name string + Port int64 + Product string + Protocol string + ProtocolCapabilities string + ProtocolVersion string + Version string + type Session struct + Bandwidth int64 + ID string + Location string + type SessionMedia struct + AudioChannels int64 + AudioCodec string + AudioProfile string + Bitrate int64 + Container string + Duration int64 + Height int64 + ID string + OptimizedForStreaming bool + Part []*SessionPart + Protocol string + Selected bool + VideoCodec string + VideoFrameRate string + VideoProfile string + VideoResolution string + Width int64 + type SessionPart struct + AudioProfile string + Bitrate int64 + Container string + Decision string + Duration int64 + Height int64 + ID string + OptimizedForStreaming bool + Protocol string + Selected bool + Stream []*Stream + VideoProfile string + Width int64 + type SessionPlayer struct + Address string + Device string + Local bool + MachineIdentifier string + Model string + Platform string + PlatformVersion string + Product string + Profile string + Relayed bool + RemotePublicAddress string + Secure bool + State string + Title string + UserID int64 + Version string + type Similar struct + GUID string + Tag string + type Stream struct + AudioChannelLayout *string + Bitrate int64 + BitrateMode *string + Burn *string + Channels *int64 + Codec string + Decision string + Default bool + DisplayTitle string + ExtendedDisplayTitle string + FrameRate *float64 + Height *int64 + ID string + Language string + LanguageCode string + LanguageTag string + Location string + Profile *string + SamplingRate *int64 + Selected *bool + StreamType int64 + Title *string + Width *int64 + type Style string + const Shelf + type TranscodeSession struct + AudioChannels int64 + AudioCodec string + AudioDecision string + Complete bool + Container string + Context string + Duration int64 + Error bool + Key string + MaxOffsetAvailable float64 + MinOffsetAvailable float64 + Progress float64 + Protocol string + Remaining int64 + Size int64 + SourceAudioCodec string + SourceVideoCodec string + Speed float64 + SubtitleDecision string + Throttled bool + TimeStamp float64 + TranscodeHwDecoding string + TranscodeHwDecodingTitle string + TranscodeHwEncoding string + TranscodeHwEncodingTitle string + TranscodeHwFullPipeline bool + TranscodeHwRequested bool + VideoCodec string + VideoDecision string + type User struct + ID string + Thumb string + Title string + type WatchlistOpts struct + Filter string + Sort string + Type string