action

package
v0.0.0-...-bff78c0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(c *cli.Context, r *gin.Engine, tm *template.Manager, jobs *wj.Handler)

Types

type Handler

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

type Helper

type Helper struct {
}

func NewHelper

func NewHelper() *Helper

func (*Helper) GetAudioTracks

func (s *Helper) GetAudioTracks(ud *m.VideoStreamUserData, mp *api.MediaProbe) []ListItem

func (*Helper) GetDurationSec

func (s *Helper) GetDurationSec(mp *api.MediaProbe) string

func (*Helper) GetSubtitles

func (s *Helper) GetSubtitles(ud *m.VideoStreamUserData, mp *api.MediaProbe, tag *ra.ExportTag, opensubs []api.OpenSubtitleTrack) []ListItem

type ListItem

type ListItem struct {
	ID       string
	MPID     string
	Label    string
	Default  bool
	SrcLang  string
	Provider string
	Src      string
	Kind     string
}

type PostArgs

type PostArgs struct {
	ResourceID string
	ItemID     string
	Claims     *api.Claims
}

type PostData

type PostData struct {
	Job  *job.Job
	Args *PostArgs
}

type TrackPutArgs

type TrackPutArgs struct {
	ID         string `json:"id"`
	ResourceID string `json:"resourceID"`
	ItemID     string `json:"itemID"`
}

Jump to

Keyboard shortcuts

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