Documentation ¶
Index ¶
- type CodeReplyData
- type CodeReqData
- type FeedReply
- type FeedReq
- type IdConvertReply
- type IdConvertReq
- type MediaInfoReply
- type MediaInfoReq
- type SubtitleBestApi
- func (s *SubtitleBestApi) CheckAlive() error
- func (s *SubtitleBestApi) ConvertId(id, source, videoType string) (*IdConvertReply, error)
- func (s *SubtitleBestApi) FeedBack(id, version, MediaServer string, EnableShare, EnableApiKey bool) (*FeedReply, error)
- func (s *SubtitleBestApi) GetCode() (string, error)
- func (s *SubtitleBestApi) GetMediaInfo(id, source, videoType string) (*MediaInfoReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeReplyData ¶
type CodeReqData ¶
type CodeReqData struct {
NowTime string `json:"now_time"`
}
type IdConvertReply ¶
type IdConvertReq ¶
type MediaInfoReply ¶
type MediaInfoReply struct { Status int `json:"status"` // 0 失败,1 成功,2 在队列中等待查询 Message string `json:"message"` TMDBId string `json:"tmdb_id,omitempty"` OriginalTitle string `json:"original_title,omitempty"` OriginalLanguage string `json:"original_language,omitempty"` TitleEN string `json:"title_en,omitempty"` TitleCN string `json:"title_cn,omitempty"` Year string `json:"year,omitempty"` }
{ "status": 1, "message": "", "tmdb_id": "503235", "original_title": "邪不压正", "original_language": "zh", "title_en": "Hidden Man", "title_cn": "邪不压正", "year": "2018-07-13" }
{ "status": 1, "message": "", "tmdb_id": "78154", "original_title": "L'amica geniale", "original_language": "it", "title_en": "My Brilliant Friend", "title_cn": "我的天才女友", "year": "2018-11-18" }
type MediaInfoReq ¶
type MediaInfoReq struct { Id string `json:"id"` Source string `json:"source"` // options=imdb|tmdb VideoType string `json:"video_type"` // ,options=movie|series }
{ "id": "tt7278862", "source": "imdb", "video_type": "series" }
{ "id": "503235", "source": "tmdb", "video_type": "movie" }
type SubtitleBestApi ¶
type SubtitleBestApi struct {
// contains filtered or unexported fields
}
func NewSubtitleBestApi ¶
func NewSubtitleBestApi(log *logrus.Logger, inAuthKey random_auth_key.AuthKey) *SubtitleBestApi
func (*SubtitleBestApi) CheckAlive ¶
func (s *SubtitleBestApi) CheckAlive() error
func (*SubtitleBestApi) ConvertId ¶
func (s *SubtitleBestApi) ConvertId(id, source, videoType string) (*IdConvertReply, error)
ConvertId 目前仅仅支持 TMDB ID 转 IMDB ID
func (*SubtitleBestApi) FeedBack ¶
func (s *SubtitleBestApi) FeedBack(id, version, MediaServer string, EnableShare, EnableApiKey bool) (*FeedReply, error)
func (*SubtitleBestApi) GetCode ¶
func (s *SubtitleBestApi) GetCode() (string, error)
func (*SubtitleBestApi) GetMediaInfo ¶
func (s *SubtitleBestApi) GetMediaInfo(id, source, videoType string) (*MediaInfoReply, error)
Click to show internal directories.
Click to hide internal directories.