configs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFfmpegAndPrintErr

func ValidateFfmpegAndPrintErr(c *Config)

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() error

Jump to

Keyboard shortcuts

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