action

package
v0.0.0-...-33b225b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDurationSec

func GetDurationSec(mp *services.MediaProbe) string

func RegisterHandler

func RegisterHandler(c *cli.Context, r *gin.Engine, re multitemplate.Renderer, jobs *j.Handler)

Types

type Handler

type Handler struct {
	*w.TemplateHandler
	*w.ClaimsHandler
	// contains filtered or unexported fields
}

type ListItem

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

func GetAudioTracks

func GetAudioTracks(ud *m.VideoStreamUserData, mp *services.MediaProbe) []ListItem

func GetSubtitles

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

type PostArgs

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

type PostData

type PostData struct {
	w.ErrorData
	Job  *sv.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