Documentation ¶
Index ¶
- func ConnectDownloadsToDownloadsInfo(ctx context.Context, dls *Downloads, dlInfoStor *StorageItem[DownloadsInfo], ...)
- func GetSeason(ctx context.Context, season sp.Season) (episodes []sp.Episode, mgid string, err error)
- func GetSeries(ctx context.Context) (region sp.RegionInfo, seasons map[sp.Language][]Season, mgid string, err error)
- type Cache
- type Config
- type Download
- type DownloadInfo
- type DownloadParams
- type DownloadProgress
- type DownloadStatus
- type Downloads
- type DownloadsInfo
- type Quality
- type Season
- type Series
- type Storage
- type StorageItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDownloadsToDownloadsInfo ¶
func ConnectDownloadsToDownloadsInfo(ctx context.Context, dls *Downloads, dlInfoStor *StorageItem[DownloadsInfo], onError func(error))
Initializes dls to current data in dlInfoStor, then continually updates dlInfoStor if any changes occur in dls
Types ¶
type Config ¶
type Download ¶
type Download struct { *asynctask.AsyncTask[struct{}, DownloadProgress, struct{}] // contains filtered or unexported fields }
func (*Download) Params ¶
func (dl *Download) Params() DownloadParams
func (*Download) Progress ¶
func (dl *Download) Progress() DownloadProgress
func (*Download) ProgressBinding ¶
func (dl *Download) ProgressBinding() *data.Binding[DownloadProgress]
type DownloadParams ¶
type DownloadProgress ¶
type DownloadProgress struct { Status DownloadStatus Value float64 // -1 if unable to determine }
func (DownloadProgress) String ¶
func (v DownloadProgress) String() string
type DownloadStatus ¶
type DownloadStatus int
const ( DownloadStatusWaiting DownloadStatus = iota DownloadStatusFetchingMetadata DownloadStatusDownloadingVideo DownloadStatusDownloadingSubtitles DownloadStatusPostprocessing DownloadStatusDone DownloadStatusInterrupted )
type Downloads ¶
type Downloads struct { *data.ListBinding[*Download] // contains filtered or unexported fields }
func NewDownloads ¶
type DownloadsInfo ¶
type DownloadsInfo []DownloadInfo
func NewDownloadsInfo ¶
func NewDownloadsInfo() DownloadsInfo
type StorageItem ¶
func NewStorageItem ¶
Click to show internal directories.
Click to hide internal directories.