library

package
v0.0.0-...-8d14f5d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PosterJPEGQuality = 85
)

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags(f []cli.Flag) []cli.Flag

func RegisterHandler

func RegisterHandler(c *cli.Context, r *gin.Engine, tm *template.Manager[*web.Context], api *api.Api, pg *cs.PG, jobs *j.Jobs, cl *http.Client, s3Cl *cs.S3Client, en *enrich.Enricher, thumb *thumbnail.Service)

Types

type GenreOption

type GenreOption struct {
	Slug     string
	Label    string
	Selected bool
}

type Handler

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

type IndexData

type IndexData struct {
	Args         *shared.IndexArgs
	Items        []any
	TorrentCount int
	MovieCount   int
	SeriesCount  int
	RateForm     *RateFormData
	// Genres are the options of the genre filter; empty hides it.
	Genres []GenreOption
}

func (*IndexData) SectionEmpty

func (d *IndexData) SectionEmpty() bool

SectionEmpty reports whether the section has nothing at all, as opposed to nothing that matches the filters: only then the page shows its "no torrents yet" state instead of the list.

type PersonPhotoArgs

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

func (*PersonPhotoArgs) Key

func (s *PersonPhotoArgs) Key() string

type PosterArgs

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

func (*PosterArgs) Key

func (s *PosterArgs) Key() string

type PosterFormat

type PosterFormat string
const (
	PosterFormatJPEG PosterFormat = "jpg"
)

type RateFormData

type RateFormData struct {
	VideoID       string
	Type          string // "movie" or "series"
	CurrentRating int
}

type StillArgs

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

func (*StillArgs) Key

func (s *StillArgs) Key() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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