shooter

package
v0.55.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeFileHash

func ComputeFileHash(filePath string) (string, error)

Types

type FilesShooter

type FilesShooter struct {
	Ext  string `json:"ext"`
	Link string `json:"link"`
}

type SublistShooter

type SublistShooter struct {
	Desc  string         `json:"desc"`
	Delay int64          `json:"delay"`
	Files []FilesShooter `json:"files"`
}

type Supplier

type Supplier struct {
	// contains filtered or unexported fields
}

func NewSupplier

func NewSupplier(fileDownloader *file_downloader.FileDownloader) *Supplier

func (*Supplier) CheckAlive

func (s *Supplier) CheckAlive() (bool, int64)

func (*Supplier) GetLogger

func (s *Supplier) GetLogger() *logrus.Logger

func (*Supplier) GetSubListFromFile4Anime

func (s *Supplier) GetSubListFromFile4Anime(seriesInfo *series.SeriesInfo) ([]supplier.SubInfo, error)

func (*Supplier) GetSubListFromFile4Movie

func (s *Supplier) GetSubListFromFile4Movie(filePath string) ([]supplier.SubInfo, error)

func (*Supplier) GetSubListFromFile4Series

func (s *Supplier) GetSubListFromFile4Series(seriesInfo *series.SeriesInfo) ([]supplier.SubInfo, error)

func (*Supplier) GetSupplierName

func (s *Supplier) GetSupplierName() string

func (*Supplier) IsAlive

func (s *Supplier) IsAlive() bool

func (*Supplier) OverDailyDownloadLimit

func (s *Supplier) OverDailyDownloadLimit() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL