Documentation ¶
Index ¶
- type Api
- func (a *Api) GetDownloadUrl(client *resty.Client, subSha256, imdbID string, isMovie bool, ...) (*GetUrlResponse, *LimitInfo, error)
- func (a *Api) QueryMovieSubtitle(client *resty.Client, imdbID string) (*SubtitleResponse, *LimitInfo, error)
- func (a *Api) QueryTVEpsSubtitle(client *resty.Client, imdbID string, season, episode int) (*SubtitleResponse, *LimitInfo, error)
- func (a *Api) QueryTVSeasonPackageByID(client *resty.Client, imdbID string, seasonPackageId string) (*SubtitleResponse, *LimitInfo, error)
- func (a *Api) QueryTVSeasonPackages(client *resty.Client, imdbID string, season int) (*SeasonPackagesResponse, *LimitInfo, error)
- type DownloadUrlConvertRequest
- type GetUrlResponse
- type LimitInfo
- type SearchMovieSubtitleRequest
- type SearchTVEpsSubtitleRequest
- type SearchTVSeasonPackageByIDRequest
- type SearchTVSeasonPackagesRequest
- type SeasonPackagesResponse
- type Subtitle
- type SubtitleResponse
- type Supplier
- func (s *Supplier) CheckAlive() (bool, int64)
- func (s *Supplier) GetLogger() *logrus.Logger
- func (s *Supplier) GetSubListFromFile4Anime(seriesInfo *series.SeriesInfo) ([]supplier.SubInfo, error)
- func (s *Supplier) GetSubListFromFile4Movie(filePath string) ([]supplier.SubInfo, error)
- func (s *Supplier) GetSubListFromFile4Series(seriesInfo *series.SeriesInfo) ([]supplier.SubInfo, error)
- func (s *Supplier) GetSupplierName() string
- func (s *Supplier) IsAlive() bool
- func (s *Supplier) OverDailyDownloadLimit() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) GetDownloadUrl ¶
func (a *Api) GetDownloadUrl(client *resty.Client, subSha256, imdbID string, isMovie bool, season, episode int, seasonPackageId string, language int, token string) (*GetUrlResponse, *LimitInfo, error)
GetDownloadUrl 获取字幕下载地址
func (*Api) QueryMovieSubtitle ¶
func (a *Api) QueryMovieSubtitle(client *resty.Client, imdbID string) (*SubtitleResponse, *LimitInfo, error)
QueryMovieSubtitle 查询电影的字幕
func (*Api) QueryTVEpsSubtitle ¶
func (a *Api) QueryTVEpsSubtitle(client *resty.Client, imdbID string, season, episode int) (*SubtitleResponse, *LimitInfo, error)
QueryTVEpsSubtitle 查询连续剧 一季 一集的字幕
func (*Api) QueryTVSeasonPackageByID ¶
func (a *Api) QueryTVSeasonPackageByID(client *resty.Client, imdbID string, seasonPackageId string) (*SubtitleResponse, *LimitInfo, error)
QueryTVSeasonPackageByID 查询连续剧 一季 一字幕包的字幕
func (*Api) QueryTVSeasonPackages ¶
func (a *Api) QueryTVSeasonPackages(client *resty.Client, imdbID string, season int) (*SeasonPackagesResponse, *LimitInfo, error)
QueryTVSeasonPackages 查询连续剧 一季的字幕包 ID 列表
type DownloadUrlConvertRequest ¶
type DownloadUrlConvertRequest struct { SubSha256 string `json:"sub_sha256"` ImdbID string `json:"imdb_id"` IsMovie bool `json:"is_movie"` Season int `json:"season"` Episode int `json:"episode"` SeasonPackageId string `json:"season_package_id"` Language int `json:"language"` ApiKey string `json:"api_key"` Token string `json:"token"` }
type GetUrlResponse ¶
type LimitInfo ¶
type LimitInfo struct {
// contains filtered or unexported fields
}
func NewHeaderInfo ¶
func NewHeaderInfo(resp *resty.Response) *LimitInfo
func (LimitInfo) DailyCount ¶
func (LimitInfo) DailyLimit ¶
func (LimitInfo) RateLimitLimit ¶
func (LimitInfo) RateLimitRemaining ¶
func (LimitInfo) RateLimitReset ¶
type SeasonPackagesResponse ¶
type SubtitleResponse ¶
type Supplier ¶
type Supplier struct {
// contains filtered or unexported fields
}
func NewSupplier ¶
func NewSupplier(fileDownloader *file_downloader.FileDownloader) *Supplier
func (*Supplier) CheckAlive ¶
func (*Supplier) GetSubListFromFile4Anime ¶
func (*Supplier) GetSubListFromFile4Movie ¶
func (*Supplier) GetSubListFromFile4Series ¶
func (*Supplier) GetSupplierName ¶
func (*Supplier) OverDailyDownloadLimit ¶
Click to show internal directories.
Click to hide internal directories.