lib

package
v0.0.0-...-1ac3047 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(input string)

func IsRangeValid

func IsRangeValid(s string) bool

func IsVideoURLValid

func IsVideoURLValid(s string) bool

func LoadSupportSitesRegex

func LoadSupportSitesRegex(content string) error

func Notifier

func Notifier(msg string)

Types

type AutoGenerated

type AutoGenerated struct {
	SupportSites []struct {
		Name  string `json:"name"`
		Regex string `json:"regex"`
	} `json:"support_sites"`
}

type Convert

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

func (*Convert) AddTag

func (c *Convert) AddTag() error

AddTag implements Converter.

func (*Convert) ApplyFadeInFadeOut

func (c *Convert) ApplyFadeInFadeOut(fin, fout string) error

ApplyFadeInFadeOut implements Converter.

func (*Convert) DownloadCoverAndGetFilename

func (c *Convert) DownloadCoverAndGetFilename() error

DownloadCoverAndGetFilename implements Converter.

func (*Convert) DownloadM4a

func (c *Convert) DownloadM4a(ss, t string) error

DownloadM4a implements Converter.

func (*Convert) IdentifyTargetNameAndCover

func (c *Convert) IdentifyTargetNameAndCover() error

IdentifyTargetNameAndCover() error

func (*Convert) Reset

func (c *Convert) Reset() (res string)

Reset implements Converter.

type ConvertCfg

type ConvertCfg struct {
	Output  string
	IsDebug bool

	Url   string
	Title string

	LoadOngoingProcess   func() (alfred.Process, error)
	StoreOngoingProcess  func(prop alfred.Process) error
	LoadOngoingRingTone  func() (alfred.RingTone, error)
	StoreOngoingRingTone func(prop alfred.RingTone) error
}

type Converter

type Converter interface {
	DownloadCoverAndGetFilename() error
	DownloadM4a(ss, t string) error
	IdentifyTargetNameAndCover() error
	ApplyFadeInFadeOut(fin, fout string) error
	AddTag() error
	Reset() string
}

func NewConvert

func NewConvert(cfg ConvertCfg) (Converter, error)

Jump to

Keyboard shortcuts

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