configs

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFfmpegPathLogic added in v1.1.0

func ValidateFfmpegPathLogic(ctx context.Context, ffmpegPath string) error

Types

type Config

type Config struct {
	// DownloadPath will be used as the base path for all downloads
	DownloadPath string

	// FfmpegPath is the path to the FFmpeg binary
	FfmpegPath string

	// OverwriteFiles is a flag to overwrite existing files
	// If false, the download process will be skipped if the file already exists
	OverwriteFiles bool

	// Log any detected URLs of the post content that are being downloaded
	// Despite the variable name, it only logs URLs to any supported
	// external file hosting providers such as MEGA, Google Drive, etc.
	LogUrls bool

	// UserAgent is the user agent to be used in the download process
	UserAgent string
}

func (*Config) ValidateFfmpegPathLogic

func (c *Config) ValidateFfmpegPathLogic(ctx context.Context) error

Jump to

Keyboard shortcuts

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