Documentation
¶
Index ¶
- func GetCachePath() (string, error)
- type Cache
- func (c *Cache) FormatForFzf() []string
- func (c *Cache) GetMediaByFormattedTitle(formattedTitle string) (*plex.MediaItem, error)
- func (c *Cache) GetMediaByIndex(index int) (*plex.MediaItem, error)
- func (c *Cache) GetMediaByTitle(title string) []plex.MediaItem
- func (c *Cache) IsStale(maxAge time.Duration) bool
- func (c *Cache) Save() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCachePath ¶
GetCachePath returns the path to the cache file
Types ¶
type Cache ¶
type Cache struct {
Media []plex.MediaItem `json:"media"`
LastUpdated time.Time `json:"last_updated"`
}
func (*Cache) FormatForFzf ¶
FormatForFzf returns a slice of formatted strings for fzf
func (*Cache) GetMediaByFormattedTitle ¶
GetMediaByFormattedTitle returns the media item matching the formatted title
func (*Cache) GetMediaByIndex ¶
GetMediaByIndex returns the media item at the given index
func (*Cache) GetMediaByTitle ¶
GetMediaByTitle returns media items that match the given title
Click to show internal directories.
Click to hide internal directories.