tasks

package
v0.0.0-...-f0b9b21 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AiringSync

type AiringSync struct{ *task.Task }

func (*AiringSync) Run

func (j *AiringSync) Run(ctx context.Context) (err error)

type AutoDownload

type AutoDownload struct {
	*task.Task
}

func (*AutoDownload) Run

func (j *AutoDownload) Run(ctx context.Context) (err error)

type LatestSync

type LatestSync struct {
	*task.Task
}

func (*LatestSync) Run

func (j *LatestSync) Run(ctx context.Context) (err error)

type PackSync

type PackSync struct{ *task.Task }

PackSync synchronizes titles and episodes via with the Packlist Controller. Any new titles and episodes added / updated to the packlists will be updated thanks to this job.

func (*PackSync) Run

func (j *PackSync) Run(ctx context.Context) (err error)

func (*PackSync) SyncTitle

func (j *PackSync) SyncTitle(ctx context.Context, packs []*domain.GroupPack) (*domain.PacklistSync, error)

type RebalanceTitles

type RebalanceTitles struct{ *task.Task }

func (*RebalanceTitles) Run

func (r *RebalanceTitles) Run(ctx context.Context) error

type RemoveUnusedImages

type RemoveUnusedImages struct{ *task.Task }

RemoveUnusedImages is a job which deos the following: - retrieves unused poster/banner/thumbnail entries from the databse

  • if they're not owned by an anime (poster/banner) or a video (thumbnail) they're removed from the database and the file system.

- retrieves all poster/banner images from the file system

  • if they're not in the database, they're removed from the file system.

func (RemoveUnusedImages) Run

func (j RemoveUnusedImages) Run(ctx context.Context) (err error)

type ScanUnreviewedTitles

type ScanUnreviewedTitles struct{ *task.Task }

func (*ScanUnreviewedTitles) Run

type SimulcastSync

type SimulcastSync struct{ *task.Task }

func (*SimulcastSync) Run

func (j *SimulcastSync) Run(ctx context.Context) (err error)

type VideoChecksum

type VideoChecksum struct {
	*task.Task
}

VideoChecksum grabs all the video entries in our database, goes through every video file we have storede in our file system and applie a CRC32 checksum with what we have stored in our database.

func (*VideoChecksum) Run

func (j *VideoChecksum) Run(ctx context.Context) (err error)

Run will execute the VideoChecksum job.

type VideoSync

type VideoSync struct {
	*task.Task
}

VideoSync is responsible for deleting video entries for the following scenarios: - Parent path removal. - File is present in the file system but not in the database. - File is present in the database but not in the file system.

func (*VideoSync) Run

func (j *VideoSync) Run(ctx context.Context) (err error)

Run will execute the VideoSync job.

Jump to

Keyboard shortcuts

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