Documentation ¶
Index ¶
- type OneSubDetail
- type SearchSubResult
- type SearchSubResultEmpty
- 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
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OneSubDetail ¶
type OneSubDetail struct { Sub struct { Action string `json:"action"` Subs []struct { DownCount int `json:"down_count,omitempty"` ViewCount int `json:"view_count,omitempty"` Lang struct { Desc string `json:"desc,omitempty"` Langlist struct { Langcht bool `json:"langcht,omitempty"` Langdou bool `json:"langdou,omitempty"` Langeng bool `json:"langeng,omitempty"` Langchs bool `json:"langchs,omitempty"` } `json:"langlist,omitempty"` } `json:"lang,omitempty"` Size int `json:"size,omitempty"` Title string `json:"title,omitempty"` Videoname string `json:"videoname,omitempty"` Revision int `json:"revision,omitempty"` NativeName string `json:"native_name,omitempty"` UploadTime string `json:"upload_time,omitempty"` Producer struct { Producer string `json:"producer,omitempty"` Verifier string `json:"verifier,omitempty"` Uploader string `json:"uploader,omitempty"` Source string `json:"source,omitempty"` } `json:"producer,omitempty"` Subtype string `json:"subtype,omitempty"` VoteScore int `json:"vote_score,omitempty"` ReleaseSite string `json:"release_site,omitempty"` //Filelist []struct { // S string `json:"s,omitempty"` // F string `json:"f,omitempty"` // Url string `json:"url,omitempty"` //} `json:"filelist,omitempty"` Id int `json:"id,omitempty"` Filename string `json:"filename,omitempty"` Url string `json:"url,omitempty"` } `json:"subs,omitempty"` Result string `json:"result,omitempty"` } `json:"sub,omitempty"` Status int `json:"status,omitempty"` }
type SearchSubResult ¶
type SearchSubResult struct { Sub struct { Action string `json:"action"` Subs []struct { Lang struct { Desc string `json:"desc,omitempty"` Langlist struct { Langcht bool `json:"langcht,omitempty"` Langdou bool `json:"langdou,omitempty"` Langeng bool `json:"langeng,omitempty"` Langchs bool `json:"langchs,omitempty"` } `json:"langlist,omitempty"` } `json:"lang,omitempty"` Id int `json:"id,omitempty"` VoteScore int `json:"vote_score,omitempty"` Videoname string `json:"videoname,omitempty"` ReleaseSite string `json:"release_site,omitempty"` Revision int `json:"revision,omitempty"` Subtype string `json:"subtype,omitempty"` NativeName string `json:"native_name,omitempty"` UploadTime string `json:"upload_time,omitempty"` } `json:"subs,omitempty"` Result string `json:"result,omitempty"` Keyword string `json:"keyword,omitempty"` } `json:"sub,omitempty"` Status int `json:"status,omitempty"` }
type SearchSubResultEmpty ¶
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.