Documentation ¶
Index ¶
Constants ¶
View Source
const ( KINOPOISK_BASE_URL_FILMDETAIL = "https://ma.kinopoisk.ru/ios/5.0.0/" KINOPOISK_API_FILMDETAIL = "getKPFilmDetailView" )
View Source
const ( KINOPOISK_API_RELEASES_PATH = "/k/v1/films/releases/digital" KINOPOISK_BASE_URL = "https://ma.kinopoisk.ru" )
View Source
const (
KINOPOISK_API_SALT = "IDATevHDS7"
)
View Source
const (
NoReleasesFound apiError = "No releases found"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilmDetail ¶
type FilmDetail struct { RatingData struct { Rating string `json:"rating"` RatingIMDb string `json:"ratingIMDb"` } `json:"ratingData"` HasReleasedFilm int `json:"hasReleasedFilm"` WebURL string `json:"webURL"` NameRu string `json:"nameRu"` NameEn string `json:"nameEn"` PosterURL string `json:"posterURL"` BigPosterURL string `json:"bigPosterUrl"` Year string `json:"year"` FilmLength string `json:"filmLength"` Country string `json:"country"` Genre string `json:"genre"` Description string `json:"description"` RaitingMPAA string `json:"raitingMPAA"` RaitingAgeLimit string `json:"raitingAgeLimit"` BudgetData map[string]string `json:"budgetData"` VideoURL map[string]string `json:"videoURL"` Creators json_creators `json:"creators"` }
func (*FilmDetail) Rating ¶
func (f *FilmDetail) Rating() float64
type KinopoiskFilmDetail ¶
type KinopoiskFilmDetail interface {
FilmDetail(filmID int) (FilmDetail, error)
}
func NewFilmDetail ¶
func NewFilmDetail(do providers.Doer) KinopoiskFilmDetail
type KinopoiskReleaser ¶
type KinopoiskReleaser interface {
GetReleases(from, to time.Time) ([]ReleaseItem, error)
}
func NewReleases ¶
func NewReleases(do providers.Doer) KinopoiskReleaser
type ReleaseItem ¶
Click to show internal directories.
Click to hide internal directories.