Documentation
¶
Index ¶
- Constants
- type About
- type AppData
- type Cache
- type CacheStats
- type Cast
- type Collection
- type Creator
- type Credits
- type Crew
- type Episode
- type ExternalIDs
- type FriendlyMediaRequest
- type GenerealUserSettings
- type GenericSearchResult
- type Genre
- type IssueCount
- type Job
- type JobType
- type Keyword
- type LanguageProfile
- type LogLevel
- type LogMessage
- type LogResponse
- type MainSettings
- type MediaInfo
- type MediaQuota
- type MediaRequest
- type MediaRequestResponse
- type MediaStatus
- type MediaType
- type MovieDetails
- type MovieResult
- type Network
- type NewRequest
- type Overseerr
- func NewKeyAuth(url string, customHeaders map[string]string, locale string, apikey string) (*Overseerr, error)
- func NewLocalAuth(url string, customHeaders map[string]string, locale string, ...) (*Overseerr, error)
- func NewPlexAuth(url string, customHeaders map[string]string, locale string, plexToken string) (*Overseerr, error)
- func (o *Overseerr) AddRadarr(settings RadarrSettings) (*RadarrSettings, error)
- func (o *Overseerr) AddSonarr(settings SonarrSettings) (*SonarrSettings, error)
- func (o *Overseerr) ApproveRequest(requestID int) (*MediaRequest, error)
- func (o *Overseerr) CancelJob(jobID string) (*Job, error)
- func (o *Overseerr) CancelPlexSync() error
- func (o *Overseerr) CreateNewUser(newUser User) (*User, error)
- func (o *Overseerr) CreateRequest(request NewRequest) (*MediaRequest, error)
- func (o *Overseerr) DeclineRequest(requestID int) (*MediaRequest, error)
- func (o *Overseerr) DeleteRadarr(radarrID int) error
- func (o *Overseerr) DeleteRequest(requestID int) error
- func (o *Overseerr) DeleteSonarr(sonarrID int) error
- func (o *Overseerr) DeleteUser(userID int) (*User, error)
- func (o *Overseerr) DiscoverMovies(pageNumber int) (*SearchResults, error)
- func (o *Overseerr) DiscoverMoviesByGenre(pageNumber, genreID int) (*SearchResults, error)
- func (o *Overseerr) DiscoverMoviesByStudio(pageNumber, studioID int) (*SearchResults, error)
- func (o *Overseerr) DiscoverTV(pageNumber int) (*SearchResults, error)
- func (o *Overseerr) DiscoverTVByGenre(pageNumber, genreID int) (*SearchResults, error)
- func (o *Overseerr) DiscoverTVByNetwork(pageNumber, networkID int) (*SearchResults, error)
- func (o *Overseerr) DiscoverTrending(pageNumber int) (*SearchResults, error)
- func (o *Overseerr) DiscoverUpcomingMovies(pageNumber int) (*SearchResults, error)
- func (o *Overseerr) DiscoverUpcomingTV(pageNumber int) (*SearchResults, error)
- func (o *Overseerr) FlushCache(cacheID string) error
- func (o *Overseerr) GetAbout() (*About, error)
- func (o *Overseerr) GetAllRadarrProfiles(radarrID int) ([]*ServiceProfile, error)
- func (o *Overseerr) GetAllUsers(pageSize, pageNumber int) ([]*User, *Page, error)
- func (o *Overseerr) GetAppData() (*AppData, error)
- func (o *Overseerr) GetCacheStats() ([]*Cache, error)
- func (o *Overseerr) GetIssueCounts() (*IssueCount, error)
- func (o *Overseerr) GetJobs() ([]*Job, error)
- func (o *Overseerr) GetLoggedInUser() (*User, error)
- func (o *Overseerr) GetLogs(take, skip int, filter LogLevel) ([]*LogMessage, error)
- func (o *Overseerr) GetMainSettings() (*MainSettings, error)
- func (o *Overseerr) GetMovie(movieID int) (*MovieDetails, []GenericSearchResult, []GenericSearchResult, *Rating, error)
- func (o *Overseerr) GetMovieDetails(movieID int) (*MovieDetails, error)
- func (o *Overseerr) GetMovieRatings(movieID int) (*Rating, error)
- func (o *Overseerr) GetMovieRecommendations(movieID, page int) (*SearchResults, error)
- func (o *Overseerr) GetMovieSimilar(movieID, page int) (*SearchResults, error)
- func (o *Overseerr) GetPersonDetails(personID int) (*PersonDetails, error)
- func (o *Overseerr) GetPlexLibraries() ([]*PlexLibrary, error)
- func (o *Overseerr) GetPlexServers() ([]*PlexDevice, error)
- func (o *Overseerr) GetPlexSettings() (*PlexSettings, error)
- func (o *Overseerr) GetPlexSyncStatus() (*PlexSyncStatus, error)
- func (o *Overseerr) GetPublicSettings() (*PublicSettings, error)
- func (o *Overseerr) GetRadarrProfiles(radarrID int) (*RadarrService, error)
- func (o *Overseerr) GetRadarrServers() ([]*RadarrSettings, error)
- func (o *Overseerr) GetRadarrSettings() ([]*RadarrSettings, error)
- func (o *Overseerr) GetRequest(requestID int) (*MediaRequest, error)
- func (o *Overseerr) GetRequestCounts() (*RequestCounts, error)
- func (o *Overseerr) GetRequests(pageNumber, pageSize int, filter RequestFilter, sort RequestSort) ([]*MediaRequest, *Page, error)
- func (o *Overseerr) GetRequestsByUser(pageNumber, pageSize, userID int, filter RequestFilter, sort RequestSort) ([]*MediaRequest, *Page, error)
- func (o *Overseerr) GetSonarrProfiles(sonarrID int) (*SonarrService, error)
- func (o *Overseerr) GetSonarrServers() ([]*SonarrSettings, error)
- func (o *Overseerr) GetSonarrSettings() ([]*SonarrSettings, error)
- func (o *Overseerr) GetTV(tvID int) (*TVDetails, []GenericSearchResult, []GenericSearchResult, *Rating, error)
- func (o *Overseerr) GetTVDetails(tvID int) (*TVDetails, error)
- func (o *Overseerr) GetTVRatings(tvID int) (*Rating, error)
- func (o *Overseerr) GetTVRecommendations(tvID, page int) (*SearchResults, error)
- func (o *Overseerr) GetTVSeason(tvID, seasonID int) (*Season, error)
- func (o *Overseerr) GetTVSimilar(tvID, page int) (*SearchResults, error)
- func (o *Overseerr) GetUser(userID int) (*User, error)
- func (o *Overseerr) GetUserGeneralSettings(userID int) (*GenerealUserSettings, error)
- func (o *Overseerr) GetUserQuota(userID int) (*UserQuota, error)
- func (o *Overseerr) GetUserRequests(userID int, pageNumber, pageSize int) ([]*MediaRequest, *Page, error)
- func (o *Overseerr) HealthCheck() bool
- func (o *Overseerr) ImportPlexUsers() ([]*User, error)
- func (o *Overseerr) MovieGenres() ([]*Genre, error)
- func (o *Overseerr) RegenerateMainSettings() (*MainSettings, error)
- func (o *Overseerr) RegisterPostResponseMiddleware(middleware func(c *resty.Client, resp *resty.Response) error)
- func (o *Overseerr) RegisterPreRequestMiddleware(middleware func(c *resty.Client, req *resty.Request) error)
- func (o *Overseerr) RegisterRequestErrorMiddleware(middleware func(req *resty.Request, err error))
- func (o *Overseerr) RetryRequest(requestID int) (*MediaRequest, error)
- func (o *Overseerr) RunJob(jobID string) (*Job, error)
- func (o *Overseerr) Search(query string, pageNumber int) (*SearchResults, error)
- func (o *Overseerr) SetBasicAuth(user, pass string)
- func (o *Overseerr) SetProxy(proxyURL string) error
- func (o *Overseerr) SetUserAgent(ua string)
- func (o *Overseerr) SetUserGeneralSettings(userID int, new GenerealUserSettings) error
- func (o *Overseerr) Status() (*Status, error)
- func (o *Overseerr) TVGenres() ([]*Genre, error)
- func (o *Overseerr) TestRadarr(settings RadarrSettings) error
- func (o *Overseerr) TestSonarr(settings SonarrSettings) error
- func (o *Overseerr) TriggerPlexSync() error
- func (o *Overseerr) UpdateMainSettings(newSettings MainSettings) (*MainSettings, error)
- func (o *Overseerr) UpdatePlexSettings(newSettings PlexSettings) error
- func (o *Overseerr) UpdateRadarrSettings(newSettings RadarrSettings, radarrID int) error
- func (o *Overseerr) UpdateRequest(requestID int, request MediaRequest) (*MediaRequest, error)
- func (o *Overseerr) UpdateSonarrSettings(newSettings SonarrSettings, sonarrID int) error
- func (o *Overseerr) UpdateUser(userID int, updatedUser User) (*User, error)
- type Page
- type PersonDetails
- type PersonResult
- type PlexConnection
- type PlexDevice
- type PlexLibrary
- type PlexSettings
- type PlexSyncStatus
- type ProductionCompany
- type PublicSettings
- type RadarrService
- type RadarrSettings
- type Rating
- type RelatedVideo
- type RelatedVideoSite
- type RelatedVideoType
- type RequestCounts
- type RequestFilter
- type RequestSort
- type RequestStatus
- type RootFolder
- type SearchResults
- type Season
- type ServiceProfile
- type SonarrService
- type SonarrSettings
- type SpokenLanguage
- type Status
- type TVDetails
- type TVResult
- type User
- type UserQuota
- type UserSettings
- type UserType
- type UsersResponse
Constants ¶
const PosterPathBase string = "https://image.tmdb.org/t/p/w600_and_h900_bestv2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { ID string `json:"id"` Name string `json:"name"` Stats CacheStats `json:"stats"` }
type CacheStats ¶
type Collection ¶
type Episode ¶
type Episode struct { ID int `json:"id"` Name string `json:"name"` AirDate string `json:"airDate"` Number int `json:"episodeNumber"` Overview string `json:"overview"` ProductionCode string `json:"productionCode"` SeasonNumber int `json:"seasonNumber"` ShowID int `json:"showId"` StillPath string `json:"stillPath"` VoteAverage float64 `json:"voteAverage"` VoteCount float64 `json:"voteCount"` }
type ExternalIDs ¶
type FriendlyMediaRequest ¶
type GenerealUserSettings ¶
type GenericSearchResult ¶
type GenericSearchResult struct { ID int `json:"id" mapstructure:"id"` MediaType MediaType `json:"mediaType" mapstructure:"mediaType"` MediaInfo MediaInfo `json:"mediaInfo" mapstructure:"mediaInfo"` Name string `json:"name" mapstructure:"name"` Popularity float64 `json:"popularity" mapstructure:"popularity"` Adult bool `json:"adult" mapstructure:"adult"` PosterPath string `json:"posterPath" mapstructure:"posterPath"` BackdropPath string `json:"backdropPath" mapstructure:"backdropPath"` VoteCount int `json:"voteCount" mapstructure:"voteCount"` VoteAverage float64 `json:"voteAverage" mapstructure:"voteAverage"` GenreIDs []int `json:"genreIds" mapstructure:"genreIds"` Overview string `json:"overview" mapstructure:"overview"` OriginalLanguage string `json:"originalLanguage" mapstructure:"originalLanguage"` OriginalTitle string `json:"originalTitle" mapstructure:"originalTitle"` MovieResult TVResult PersonResult }
GenericSearchResult represents a single search result item
type IssueCount ¶
type LanguageProfile ¶
type LogMessage ¶
type LogResponse ¶
type LogResponse struct { PageInfo Page `json:"pageInfo"` Entries []*LogMessage `json:"results"` }
type MainSettings ¶
type MainSettings struct { APIKey string `json:"apiKey"` AppTitle string `json:"applicationTitle"` AppURL string `json:"applicationUrl"` TrustProxy bool `json:"trustProxy"` CSRFProtection bool `json:"csrfProtection"` HideAvailable bool `json:"hideAvailable"` PartialRequestsEnabled bool `json:"partialRequestsEnabled"` LocalLogin bool `json:"localLogin"` DefaultPermissions int `json:"defaultPermissions"` }
type MediaInfo ¶
type MediaInfo struct { ID int `json:"id"` TMDB int `json:"tmdbID"` TVDB int `json:"tvdbID"` MediaType MediaType `json:"mediaType"` Status MediaStatus `json:"status"` Created time.Time `json:"createdAt"` Modified time.Time `json:"updatedAt"` Requests []MediaRequest `json:"requests"` PlexURL string `json:"plexUrl"` ServiceURL string `json:"serviceUrl"` }
type MediaQuota ¶
type MediaRequest ¶
type MediaRequest struct { ID int `json:"id"` Status RequestStatus `json:"status"` Media MediaInfo `json:"media"` Created time.Time `json:"createdAt"` Modified time.Time `json:"updatedAt"` Creator User `json:"requestedBy"` LastModifer User `json:"updatedBy"` IsUHD bool `json:"is4k"` RootFolder string `json:"rootFolder"` ServerID int `json:"serverId"` ProfileID int `json:"profileID"` }
func (MediaRequest) GetMovieDetails ¶
func (req MediaRequest) GetMovieDetails(o *Overseerr) (*MovieDetails, error)
func (MediaRequest) GetTVDetails ¶
func (req MediaRequest) GetTVDetails(o *Overseerr) (*TVDetails, error)
func (MediaRequest) ToFriendly ¶
func (req MediaRequest) ToFriendly(o *Overseerr) (*FriendlyMediaRequest, error)
type MediaRequestResponse ¶
type MediaRequestResponse struct { PageInfo Page `json:"pageInfo"` Results []*MediaRequest `json:"results"` }
type MediaStatus ¶
type MediaStatus int
const ( MediaStatusUnknown MediaStatus = 0 MediaStatusPending MediaStatus = 1 MediaStatusProcessing MediaStatus = 3 MediaStatusPartial MediaStatus = 4 MediaStatusAvailable MediaStatus = 5 )
func (MediaStatus) ToEmoji ¶
func (s MediaStatus) ToEmoji() string
func (MediaStatus) ToString ¶
func (s MediaStatus) ToString() string
type MovieDetails ¶
type MovieDetails struct { ID int `json:"id"` Title string `json:"title"` Adult bool `json:"adult"` IMDBID string `json:"imdbId"` ReleaseDate string `json:"releaseDate"` Genres []Genre `json:"genres"` Overview string `json:"overview"` BackdropPath string `json:"backdropPath"` PosterPath string `json:"posterPath"` Budget int `json:"budget"` Homepage string `json:"homepage"` RelatedVideos []RelatedVideo `json:"relatedVideos"` OriginalLanguage string `json:"originalLanguage"` OriginalTitle string `json:"originalTitle"` Popularity float64 `json:"popularity"` ProductionCompanies []ProductionCompany `json:"productionCompanies"` Revenue int `json:"revenue"` Runtime int `json:"runtime"` SpokenLanguages []SpokenLanguage `json:"spokenLanguages"` Status string `json:"status"` Tagline string `json:"tagline"` Video bool `json:"video"` VoteAverage float64 `json:"voteAverage"` VoteCount int `json:"voteCount"` Credits Credits `json:"credits"` Collection Collection `json:"collection"` ExternalIDs ExternalIDs `json:"externalIds"` MediaInfo MediaInfo `json:"mediaInfo"` }
type MovieResult ¶
type NewRequest ¶
type NewRequest struct { MediaType string `json:"mediaType"` MediaID int `json:"mediaId"` TVDBID int `json:"tvdbId"` Seasons []int `json:"seasons"` UHD bool `json:"is4k"` ServerID int `json:"serverId"` ProfileID int `json:"profileId"` RootFolder string `json:"rootFolder"` LanguageProfileID int `json:"languageProfileId"` }
type Overseerr ¶
type Overseerr struct { URL string // contains filtered or unexported fields }
func NewKeyAuth ¶
func NewKeyAuth(url string, customHeaders map[string]string, locale string, apikey string) (*Overseerr, error)
NewKeyAuth creates a new Overseerr client with the X-Api-Key header set. An error is returned alongside the client if an auth check fails.
func NewLocalAuth ¶
func NewLocalAuth(url string, customHeaders map[string]string, locale string, email, password string) (*Overseerr, error)
NewLocalAuth creates a new Overseerr client with the session cookie for auth. The cookie is generated via an API call that requires and email and password. An error is returned alongside the client if an auth check fails.
func NewPlexAuth ¶
func NewPlexAuth(url string, customHeaders map[string]string, locale string, plexToken string) (*Overseerr, error)
NewPlexAuth creates a new Overseerr client with the session cookie for auth. The cookie is generated via an API call that requires a plex toke. An error is returned alongside the client if an auth check fails.
func (*Overseerr) AddRadarr ¶
func (o *Overseerr) AddRadarr(settings RadarrSettings) (*RadarrSettings, error)
func (*Overseerr) AddSonarr ¶
func (o *Overseerr) AddSonarr(settings SonarrSettings) (*SonarrSettings, error)
func (*Overseerr) ApproveRequest ¶
func (o *Overseerr) ApproveRequest(requestID int) (*MediaRequest, error)
func (*Overseerr) CancelPlexSync ¶
func (*Overseerr) CreateRequest ¶
func (o *Overseerr) CreateRequest(request NewRequest) (*MediaRequest, error)
func (*Overseerr) DeclineRequest ¶
func (o *Overseerr) DeclineRequest(requestID int) (*MediaRequest, error)
func (*Overseerr) DeleteRadarr ¶
func (*Overseerr) DeleteRequest ¶
func (*Overseerr) DeleteSonarr ¶
func (*Overseerr) DiscoverMovies ¶
func (o *Overseerr) DiscoverMovies(pageNumber int) (*SearchResults, error)
func (*Overseerr) DiscoverMoviesByGenre ¶
func (o *Overseerr) DiscoverMoviesByGenre(pageNumber, genreID int) (*SearchResults, error)
func (*Overseerr) DiscoverMoviesByStudio ¶
func (o *Overseerr) DiscoverMoviesByStudio(pageNumber, studioID int) (*SearchResults, error)
func (*Overseerr) DiscoverTV ¶
func (o *Overseerr) DiscoverTV(pageNumber int) (*SearchResults, error)
func (*Overseerr) DiscoverTVByGenre ¶
func (o *Overseerr) DiscoverTVByGenre(pageNumber, genreID int) (*SearchResults, error)
func (*Overseerr) DiscoverTVByNetwork ¶
func (o *Overseerr) DiscoverTVByNetwork(pageNumber, networkID int) (*SearchResults, error)
func (*Overseerr) DiscoverTrending ¶
func (o *Overseerr) DiscoverTrending(pageNumber int) (*SearchResults, error)
func (*Overseerr) DiscoverUpcomingMovies ¶
func (o *Overseerr) DiscoverUpcomingMovies(pageNumber int) (*SearchResults, error)
func (*Overseerr) DiscoverUpcomingTV ¶
func (o *Overseerr) DiscoverUpcomingTV(pageNumber int) (*SearchResults, error)
func (*Overseerr) FlushCache ¶
func (*Overseerr) GetAllRadarrProfiles ¶
func (o *Overseerr) GetAllRadarrProfiles(radarrID int) ([]*ServiceProfile, error)
func (*Overseerr) GetAllUsers ¶
func (*Overseerr) GetAppData ¶
func (*Overseerr) GetCacheStats ¶
func (*Overseerr) GetIssueCounts ¶
func (o *Overseerr) GetIssueCounts() (*IssueCount, error)
func (*Overseerr) GetLoggedInUser ¶
func (*Overseerr) GetLogs ¶
func (o *Overseerr) GetLogs(take, skip int, filter LogLevel) ([]*LogMessage, error)
func (*Overseerr) GetMainSettings ¶
func (o *Overseerr) GetMainSettings() (*MainSettings, error)
func (*Overseerr) GetMovie ¶
func (o *Overseerr) GetMovie(movieID int) (*MovieDetails, []GenericSearchResult, []GenericSearchResult, *Rating, error)
func (*Overseerr) GetMovieDetails ¶
func (o *Overseerr) GetMovieDetails(movieID int) (*MovieDetails, error)
func (*Overseerr) GetMovieRatings ¶
func (*Overseerr) GetMovieRecommendations ¶
func (o *Overseerr) GetMovieRecommendations(movieID, page int) (*SearchResults, error)
func (*Overseerr) GetMovieSimilar ¶
func (o *Overseerr) GetMovieSimilar(movieID, page int) (*SearchResults, error)
func (*Overseerr) GetPersonDetails ¶
func (o *Overseerr) GetPersonDetails(personID int) (*PersonDetails, error)
func (*Overseerr) GetPlexLibraries ¶
func (o *Overseerr) GetPlexLibraries() ([]*PlexLibrary, error)
func (*Overseerr) GetPlexServers ¶
func (o *Overseerr) GetPlexServers() ([]*PlexDevice, error)
func (*Overseerr) GetPlexSettings ¶
func (o *Overseerr) GetPlexSettings() (*PlexSettings, error)
func (*Overseerr) GetPlexSyncStatus ¶
func (o *Overseerr) GetPlexSyncStatus() (*PlexSyncStatus, error)
func (*Overseerr) GetPublicSettings ¶
func (o *Overseerr) GetPublicSettings() (*PublicSettings, error)
func (*Overseerr) GetRadarrProfiles ¶
func (o *Overseerr) GetRadarrProfiles(radarrID int) (*RadarrService, error)
func (*Overseerr) GetRadarrServers ¶
func (o *Overseerr) GetRadarrServers() ([]*RadarrSettings, error)
func (*Overseerr) GetRadarrSettings ¶
func (o *Overseerr) GetRadarrSettings() ([]*RadarrSettings, error)
func (*Overseerr) GetRequest ¶
func (o *Overseerr) GetRequest(requestID int) (*MediaRequest, error)
func (*Overseerr) GetRequestCounts ¶
func (o *Overseerr) GetRequestCounts() (*RequestCounts, error)
func (*Overseerr) GetRequests ¶
func (o *Overseerr) GetRequests(pageNumber, pageSize int, filter RequestFilter, sort RequestSort) ([]*MediaRequest, *Page, error)
func (*Overseerr) GetRequestsByUser ¶
func (o *Overseerr) GetRequestsByUser(pageNumber, pageSize, userID int, filter RequestFilter, sort RequestSort) ([]*MediaRequest, *Page, error)
func (*Overseerr) GetSonarrProfiles ¶
func (o *Overseerr) GetSonarrProfiles(sonarrID int) (*SonarrService, error)
func (*Overseerr) GetSonarrServers ¶
func (o *Overseerr) GetSonarrServers() ([]*SonarrSettings, error)
func (*Overseerr) GetSonarrSettings ¶
func (o *Overseerr) GetSonarrSettings() ([]*SonarrSettings, error)
func (*Overseerr) GetTV ¶
func (o *Overseerr) GetTV(tvID int) (*TVDetails, []GenericSearchResult, []GenericSearchResult, *Rating, error)
func (*Overseerr) GetTVRecommendations ¶
func (o *Overseerr) GetTVRecommendations(tvID, page int) (*SearchResults, error)
func (*Overseerr) GetTVSeason ¶
func (*Overseerr) GetTVSimilar ¶
func (o *Overseerr) GetTVSimilar(tvID, page int) (*SearchResults, error)
func (*Overseerr) GetUserGeneralSettings ¶
func (o *Overseerr) GetUserGeneralSettings(userID int) (*GenerealUserSettings, error)
func (*Overseerr) GetUserRequests ¶
func (*Overseerr) HealthCheck ¶
HealthCheck ensures an Overseerr instance is accessible and that the API key provided is valid
func (*Overseerr) ImportPlexUsers ¶
func (*Overseerr) MovieGenres ¶
func (*Overseerr) RegenerateMainSettings ¶
func (o *Overseerr) RegenerateMainSettings() (*MainSettings, error)
func (*Overseerr) RegisterPostResponseMiddleware ¶
func (o *Overseerr) RegisterPostResponseMiddleware(middleware func(c *resty.Client, resp *resty.Response) error)
RegisterPostResponseMiddleware allows for a custom function to be called after each request. Useful for logging.
func (*Overseerr) RegisterPreRequestMiddleware ¶
func (o *Overseerr) RegisterPreRequestMiddleware(middleware func(c *resty.Client, req *resty.Request) error)
RegisterPreRequestMiddleware allows for a custom function to be called before each request. Useful for logging.
func (*Overseerr) RegisterRequestErrorMiddleware ¶
RegisterRequestErrorMiddleware allows for a custom function to be called if a request encounters an error. Useful for logging.
func (*Overseerr) RetryRequest ¶
func (o *Overseerr) RetryRequest(requestID int) (*MediaRequest, error)
func (*Overseerr) Search ¶
func (o *Overseerr) Search(query string, pageNumber int) (*SearchResults, error)
func (*Overseerr) SetBasicAuth ¶
SetBasicAuth allows requests to the Overseerr instance to get past basic authentication using a given username and password
func (*Overseerr) SetProxy ¶
SetProxy forces all requests to the Overseerr to go via the given proxy and removes the proxy if a blank string is given
func (*Overseerr) SetUserAgent ¶
SetUserAgent allows requests to the Overseerr instance to bypass any security that checks the user agent
func (*Overseerr) SetUserGeneralSettings ¶
func (o *Overseerr) SetUserGeneralSettings(userID int, new GenerealUserSettings) error
func (*Overseerr) TestRadarr ¶
func (o *Overseerr) TestRadarr(settings RadarrSettings) error
func (*Overseerr) TestSonarr ¶
func (o *Overseerr) TestSonarr(settings SonarrSettings) error
func (*Overseerr) TriggerPlexSync ¶
func (*Overseerr) UpdateMainSettings ¶
func (o *Overseerr) UpdateMainSettings(newSettings MainSettings) (*MainSettings, error)
func (*Overseerr) UpdatePlexSettings ¶
func (o *Overseerr) UpdatePlexSettings(newSettings PlexSettings) error
func (*Overseerr) UpdateRadarrSettings ¶
func (o *Overseerr) UpdateRadarrSettings(newSettings RadarrSettings, radarrID int) error
func (*Overseerr) UpdateRequest ¶
func (o *Overseerr) UpdateRequest(requestID int, request MediaRequest) (*MediaRequest, error)
func (*Overseerr) UpdateSonarrSettings ¶
func (o *Overseerr) UpdateSonarrSettings(newSettings SonarrSettings, sonarrID int) error
type PersonDetails ¶
type PersonDetails struct { ID int `json:"id"` Name string `json:"name"` DeathDay string `json:"deathday"` AKA []string `json:"alsoKnownAs"` Gender string `json:"gender"` Bio string `json:"biography"` Popularity string `json:"popularity"` PlaceOfBirth string `json:"placeOfBirth"` ProfilePath string `json:"profilePath"` Adult bool `json:"adult"` IMDBID string `json:"imdbId"` Homepage string `json:"homepage"` }
type PersonResult ¶
type PersonResult struct { ProfilePath string `json:"profilePath" mapstructure:"profilePath"` KnownFor []interface{} `json:"knownFor" mapstructure:"knownFor"` }
type PlexConnection ¶
type PlexDevice ¶
type PlexDevice struct { Name string `json:"name"` Product string `json:"product"` ProductVersion string `json:"productVersion"` Platform string `json:"platform"` PlatformVersion string `json:"platformVersion"` Device string `json:"device"` ClientIdentifier string `json:"clientIdentifier"` Created time.Time `json:"createdAt"` LastSeen time.Time `json:"lastSeenAt"` Provides []string `json:"provides"` Owned bool `json:"owned"` OwnerID string `json:"ownerId"` Home bool `json:"home"` SourceTitle string `json:"sourceTitle"` AccessToken string `json:"accessToken"` PublicAddress string `json:"publicAddress"` HTTPSRequired bool `json:"httpsRequired"` Synced bool `json:"synced"` Relay bool `json:"relay"` DNSRebindingProtection bool `json:"dnsRebindingProtection"` NATLoopbackSupported bool `json:"natLoopbackSupported"` PublicAddressMatches bool `json:"publicAddressMatches"` Presence bool `json:"presence"` Connection PlexConnection `json:"connection"` }
type PlexLibrary ¶
type PlexSettings ¶
type PlexSyncStatus ¶
type PlexSyncStatus struct { Running bool `json:"running"` Progress int `json:"progress"` Total int `json:"total"` CurrentLibrary PlexLibrary `json:"currentLibrary"` Libraries []PlexLibrary `json:"libraries"` }
type ProductionCompany ¶
type PublicSettings ¶
type PublicSettings struct {
Initialized bool `json:"initialized"`
}
type RadarrService ¶
type RadarrService struct { Server RadarrSettings `json:"server"` Profiles []ServiceProfile `json:"profiles"` RootFolders []RootFolder `json:"rootFolders"` }
type RadarrSettings ¶
type RadarrSettings struct { ID int `json:"id"` Name string `json:"name"` Hostname string `json:"hostname"` Port int `json:"port"` APIKey string `json:"apiKey"` SSL bool `json:"useSsl"` BaseURL string `json:"baseUrl"` ProfileID int `json:"activeProfileId"` ProfileName string `json:"activeProfileName"` Directory string `json:"activeDirectory"` UHD bool `json:"is4k"` MinAvailability string `json:"minimumAvailability"` Default bool `json:"isDefault"` ExternalURL string `json:"externalUrl"` SyncEnabled bool `json:"syncEnabled"` PreventSearch bool `json:"preventSearch"` }
type RelatedVideo ¶
type RelatedVideo struct { URL string `json:"url"` Key string `json:"key"` Name string `json:"name"` Size int `json:"size"` Type RelatedVideoType `json:"type"` Site RelatedVideoSite `json:"site"` }
type RelatedVideoSite ¶
type RelatedVideoSite string
const (
RelatedVideoSiteYoutube RelatedVideoSite = "YouTube"
)
type RelatedVideoType ¶
type RelatedVideoType string
const ( RelatedVideoTypeClip RelatedVideoType = "Clip" RelatedVideoTypeTrailer RelatedVideoType = "Trailer" RelatedVideoTypeFeaturette RelatedVideoType = "Featurette" RelatedVideoTypeOpeningCredits RelatedVideoType = "Opening Credits" RelatedVideoTypeBehindTheScenes RelatedVideoType = "Behind the Scenes" RelatedVideoTypeBloopers RelatedVideoType = "Bloopers" )
type RequestCounts ¶
type RequestFilter ¶
type RequestFilter string
const ( RequestFileterAll RequestFilter = "all" RequestFileterApproved RequestFilter = "approved" RequestFileterPending RequestFilter = "pending" RequestFileterAvailable RequestFilter = "available" RequestFileterProcessing RequestFilter = "processing" )
type RequestSort ¶
type RequestSort string
const ( RequestSortAdded RequestSort = "added" RequestSortModified RequestSort = "modified" )
type RequestStatus ¶
type RequestStatus int
const ( RequestStatusPending RequestStatus = 1 RequestStatusApproved RequestStatus = 2 RequestStatusDeclined RequestStatus = 3 RequestStatusAvailable RequestStatus = 4 )
func StringToRequestStatus ¶
func StringToRequestStatus(status string) RequestStatus
func (RequestStatus) ToEmoji ¶
func (s RequestStatus) ToEmoji() string
func (RequestStatus) ToString ¶
func (s RequestStatus) ToString() string
type RootFolder ¶
type SearchResults ¶
type SearchResults struct { Page int `json:"page"` TotalPages int `json:"totalPages"` TotalResults int `json:"totalResults"` Genre Genre `json:"genre,omitempty"` Studio ProductionCompany `json:"studio,omitempty"` Network Network `json:"network,omitempty"` Results []GenericSearchResult `json:"results"` }
func (*SearchResults) SortByAdult ¶
func (results *SearchResults) SortByAdult()
func (*SearchResults) SortByID ¶
func (results *SearchResults) SortByID()
func (*SearchResults) SortByPopularity ¶
func (results *SearchResults) SortByPopularity()
type ServiceProfile ¶
type SonarrService ¶
type SonarrService struct { Server SonarrSettings `json:"server"` Profiles []ServiceProfile `json:"profiles"` RootFolders []RootFolder `json:"rootFolders"` LanguageProfiles []LanguageProfile `json:"languageProfiles"` }
type SonarrSettings ¶
type SonarrSettings struct { ID int `json:"id"` Name string `json:"name"` Hostname string `json:"hostname"` Port int `json:"port"` APIKey string `json:"apiKey"` SSL bool `json:"useSsl"` BaseURL string `json:"baseUrl"` ProfileID int `json:"activeProfileId"` ProfileName string `json:"activeProfileName"` Directory string `json:"activeDirectory"` LanguageProfileId int `json:"activeLanguageProfileId"` AnimeProfileID int `json:"activeAnimeProfileId"` AnimeLanguageProfileId int `json:"activeAnimeLanguageProfileId"` AnimeProfileName string `json:"activeAnimeProfileName"` AnimeDirectory string `json:"activeAnimeDirectory"` UHD bool `json:"is4k"` MinAvailability string `json:"minimumAvailability"` Default bool `json:"isDefault"` ExternalURL string `json:"externalUrl"` SyncEnabled bool `json:"syncEnabled"` PreventSearch bool `json:"preventSearch"` }
type SpokenLanguage ¶
type TVDetails ¶
type TVDetails struct { ID int `json:"id"` Name string `json:"name"` TagLine string `json:"tagline"` IMDBID string `json:"imdbId"` InProduction bool `json:"inProduction"` Genres []Genre `json:"genres"` Overview string `json:"overview"` Creator []Creator `json:"createdBy"` FirstAired string `json:"firstAirDate"` EpisodeRuntime []int `json:"episodeRunTime"` Homepage string `json:"homepage"` Languages []string `json:"languages"` LastAired string `json:"lastAirDate"` LastAiredEpisode Episode `json:"lastEpisodeToAir"` NextEpisodeToAir Episode `json:"nextEpisodeToAir"` Networks []Network `json:"networks"` EpisodeCount int `json:"numberOfEpisodes"` SeasonCount int `json:"numberOfSeasons"` OriginCountry []string `json:"originCountry"` OriginalLanguage string `json:"originalLanguage"` OriginalName string `json:"originalName"` Popularity float64 `json:"popularity"` ProductionCompanies []ProductionCompany `json:"productionCompanies"` SpokenLanguages []SpokenLanguage `json:"spokenLanguages"` Seasons []Season `json:"seasons"` Status string `json:"status"` Type string `json:"type"` VoteAverage float64 `json:"voteAverage"` VoteCount int `json:"voteCount"` Credits Credits `json:"credits"` ExternalIDs ExternalIDs `json:"externalIds"` KeyWords []Keyword `json:"keywords"` MediaInfo MediaInfo `json:"mediaInfo"` RelatedVideos []RelatedVideo `json:"relatedVideos"` }
type User ¶
type User struct { ID int `json:"id"` Email string `json:"email"` PlexToken string `json:"plexToken"` UserType UserType `json:"userType"` RequestCount int `json:"requestCount"` Requests []MediaRequest `json:"requests"` Avatar string `json:"avatar"` Created time.Time `json:"createdAt"` Modified time.Time `json:"updatedAt"` Permissions int `json:"permissions"` Settings UserSettings `json:"settings"` }
type UserQuota ¶
type UserQuota struct { MovieQuota MediaQuota `json:"movie"` TVQuota MediaQuota `json:"tv"` }
type UserSettings ¶
type UserSettings struct { NotificationAgents int `json:"notificationAgents"` ID int `json:"id"` DiscordID string `json:"discordId"` Region string `json:"region"` Language string `json:"originalLanguage"` PGPKey string `json:"pgpKey"` TelegramChatID int `json:"telegramChatId"` TelegramSilent bool `json:"telegramSendSilently"` }