Documentation ¶
Index ¶
- Constants
- func LookupTraktId(mediaType string, providerType TraktSearchType, searchId string) (int, error)
- func PruneExistingMedia(pvrMediaItems map[string]config.MediaItem, ...) (map[string]config.MediaItem, error)
- func SortedMediaItemSlice(mediaItems map[string]config.MediaItem, sortType SortType) []config.MediaItem
- func ValidateTmdbId(idType string, tmdbId string) bool
- func ValidateTvdbId(tvdbId string) bool
- type SortType
- type TraktSearchResponse
- type TraktSearchType
Constants ¶
View Source
const ( TraktClientId string = "7eb1023eff72ac4d130e1fb46ae2741fe0f5fd39c367b74c8f37285e09aff23d" Tmdb TraktSearchType = "tmdb" Tvdb TraktSearchType = "tvdb" )
Variables ¶
This section is empty.
Functions ¶
func LookupTraktId ¶
func LookupTraktId(mediaType string, providerType TraktSearchType, searchId string) (int, error)
func PruneExistingMedia ¶
func SortedMediaItemSlice ¶
func ValidateTmdbId ¶
func ValidateTvdbId ¶
Types ¶
type TraktSearchResponse ¶
type TraktSearchResponse []struct { Type string `json:"type"` Score int `json:"score"` Movie *struct { Title string `json:"title"` Year int `json:"year"` Ids struct { Trakt int `json:"trakt"` Slug string `json:"slug"` Imdb string `json:"imdb"` Tmdb int `json:"tmdb"` } `json:"ids"` } `json:"movie"` Show *struct { Title string `json:"title"` Year int `json:"year"` Ids struct { Trakt int `json:"trakt"` Slug string `json:"slug"` Tvdb int `json:"tvdb"` Imdb string `json:"imdb"` Tmdb int `json:"tmdb"` Tvrage interface{} `json:"tvrage"` } `json:"ids"` } `json:"show"` }
type TraktSearchType ¶
type TraktSearchType string
Click to show internal directories.
Click to hide internal directories.