Versions in this module Expand all Collapse all v0 v0.1.0 Jul 22, 2026 Changes in this version + type Arg interface + type Args struct + func NewArgs(args ...string) *Args + func (c *Args) Add(arg Arg) + func (c *Args) Args() []string + func (c *Args) String() string + type Audio string + const AudioAAC + const AudioALAC + const AudioFLAC + const AudioM4A + const AudioMP3 + const AudioOPUS + const AudioVORBIS + const AudioWAV + func (f Audio) String() string + type BiParameter struct + func PrintToFile(when When, template, file string) BiParameter + func PrintToFileTemplate(template, file string) BiParameter + type Flag string + const FLAG_ABORT_ON_ERROR + const FLAG_ABORT_ON_UNAVAILABLE_FRAGMENTS + const FLAG_ADD_HEADERS + const FLAG_AGE_LIMIT + const FLAG_ALLOW_DYNAMIC_MPD + const FLAG_AP_LIST_MSO + const FLAG_AP_MSO + const FLAG_AP_PASSWORD + const FLAG_AP_USERNAME + const FLAG_AUDIO_FORMAT + const FLAG_AUDIO_MULTISTREAMS + const FLAG_AUDIO_QUALITY + const FLAG_BATCH_FILE + const FLAG_BIDI_WORKAROUND + const FLAG_BREAK_MATCH_FILTERS + const FLAG_BREAK_ON_EXISTING + const FLAG_BREAK_PER_INPUT + const FLAG_BUFFER_SIZE + const FLAG_CACHE_DIR + const FLAG_CHECK_ALL_FORMATS + const FLAG_CHECK_FORMATS + const FLAG_CLEAN_INFO_JSON + const FLAG_CLIENT_CERTIFICATE + const FLAG_CLIENT_CERTIFICATE_KEY + const FLAG_CLIENT_CERTIFICATE_PASSWORD + const FLAG_COLOR + const FLAG_COMPAT_OPTIONS + const FLAG_CONCAT_PLAYLIST + const FLAG_CONCURRENT_FRAGMENTS + const FLAG_CONFIG_LOCATIONS + const FLAG_CONSOLE_TITLE + const FLAG_CONTINUE + const FLAG_CONVERT_SUBS + const FLAG_CONVERT_THUMBNAILS + const FLAG_COOKIES + const FLAG_COOKIES_FROM_BROWSER + const FLAG_DATE + const FLAG_DATEAFTER + const FLAG_DATEBEFORE + const FLAG_DEFAULT_SEARCH + const FLAG_DOWNLOADER + const FLAG_DOWNLOADER_ARGS + const FLAG_DOWNLOAD_ARCHIVE + const FLAG_DOWNLOAD_SECTIONS + const FLAG_DUMP_JSON + const FLAG_DUMP_PAGES + const FLAG_DUMP_SINGLE_JSON + const FLAG_DUMP_USER_AGENT + const FLAG_EMBED_CHAPTERS + const FLAG_EMBED_INFO_JSON + const FLAG_EMBED_METADATA + const FLAG_EMBED_SUBS + const FLAG_EMBED_THUMBNAIL + const FLAG_ENABLE_FILE_URLS + const FLAG_ENCODING + const FLAG_EXEC + const FLAG_EXTRACTOR_ARGS + const FLAG_EXTRACTOR_DESCRIPTIONS + const FLAG_EXTRACTOR_RETRIES + const FLAG_EXTRACT_AUDIO + const FLAG_FFMPEG_LOCATION + const FLAG_FILE_ACCESS_RETRIES + const FLAG_FIXUP + const FLAG_FLAT_PLAYLIST + const FLAG_FORCE_IPV4 + const FLAG_FORCE_IPV6 + const FLAG_FORCE_KEYFRAMES_AT_CUTS + const FLAG_FORCE_OVERWRITES + const FLAG_FORCE_WRITE_ARCHIVE + const FLAG_FORMAT + const FLAG_FORMAT_SORT + const FLAG_FORMAT_SORT_FORCE + const FLAG_FRAGMENT_RETRIES + const FLAG_GEO_VERIFICATION_PROXY + const FLAG_HELP + const FLAG_HLS_SPLIT_DISCONTINUITY + const FLAG_HLS_USE_MPEGTS + const FLAG_HTTP_CHUNK_SIZE + const FLAG_IGNORE_CONFIG + const FLAG_IGNORE_DYNAMIC_MPD + const FLAG_IGNORE_ERRORS + const FLAG_IGNORE_NO_FORMATS_ERROR + const FLAG_IMPERSONATE + const FLAG_KEEP_FRAGMENTS + const FLAG_KEEP_VIDEO + const FLAG_LAZY_PLAYLIST + const FLAG_LEGACY_SERVER_CONNECT + const FLAG_LIMIT_RATE + const FLAG_LIST_EXTRACTORS + const FLAG_LIST_FORMATS + const FLAG_LIST_IMPERSONATE_TARGETS + const FLAG_LIST_SUBS + const FLAG_LIST_THUMBNAILS + const FLAG_LIVE_FROM_START + const FLAG_LOAD_INFO_JSON + const FLAG_MARK_WATCHED + const FLAG_MATCH_FILTERS + const FLAG_MAX_DOWNLOADS + const FLAG_MAX_FILESIZE + const FLAG_MAX_SLEEP_INTERVAL + const FLAG_MERGE_OUTPUT_FORMAT + const FLAG_MIN_FILESIZE + const FLAG_MTIME + const FLAG_NETRC + const FLAG_NETRC_CMD + const FLAG_NETRC_LOCATION + const FLAG_NEWLINE + const FLAG_NO_ABORT_ON_ERROR + const FLAG_NO_AUDIO_MULTISTREAMS + const FLAG_NO_BATCH_FILE + const FLAG_NO_BREAK_MATCH_FILTERS + const FLAG_NO_BREAK_ON_EXISTING + const FLAG_NO_BREAK_PER_INPUT + const FLAG_NO_CACHE_DIR + const FLAG_NO_CHECK_CERTIFICATES + const FLAG_NO_CHECK_FORMATS + const FLAG_NO_CLEAN_INFO_JSON + const FLAG_NO_CONFIG_LOCATIONS + const FLAG_NO_CONTINUE + const FLAG_NO_COOKIES + const FLAG_NO_COOKIES_FROM_BROWSER + const FLAG_NO_DOWNLOAD_ARCHIVE + const FLAG_NO_EMBED_CHAPTERS + const FLAG_NO_EMBED_INFO_JSON + const FLAG_NO_EMBED_METADATA + const FLAG_NO_EMBED_SUBS + const FLAG_NO_EMBED_THUMBNAIL + const FLAG_NO_EXEC + const FLAG_NO_FLAT_PLAYLIST + const FLAG_NO_FORCE_KEYFRAMES_AT_CUTS + const FLAG_NO_FORCE_OVERWRITES + const FLAG_NO_FORMAT_SORT_FORCE + const FLAG_NO_HLS_SPLIT_DISCONTINUITY + const FLAG_NO_HLS_USE_MPEGTS + const FLAG_NO_IGNORE_NO_FORMATS_ERROR + const FLAG_NO_KEEP_FRAGMENTS + const FLAG_NO_KEEP_VIDEO + const FLAG_NO_LAZY_PLAYLIST + const FLAG_NO_LIVE_FROM_START + const FLAG_NO_MARK_WATCHED + const FLAG_NO_MATCH_FILTERS + const FLAG_NO_MTIME + const FLAG_NO_OVERWRITES + const FLAG_NO_PART + const FLAG_NO_PLAYLIST + const FLAG_NO_PLUGIN_DIRS + const FLAG_NO_POST_OVERWRITES + const FLAG_NO_PREFER_FREE_FORMATS + const FLAG_NO_PROGRESS + const FLAG_NO_QUIET + const FLAG_NO_REMOVE_CHAPTERS + const FLAG_NO_RESIZE_BUFFER + const FLAG_NO_RESTRICT_FILENAMES + const FLAG_NO_SIMULATE + const FLAG_NO_SPLIT_CHAPTERS + const FLAG_NO_SPONSORBLOCK + const FLAG_NO_UPDATE + const FLAG_NO_VIDEO_MULTISTREAMS + const FLAG_NO_WAIT_FOR_VIDEO + const FLAG_NO_WARNINGS + const FLAG_NO_WINDOWS_FILENAMES + const FLAG_NO_WRITE_AUTO_SUBS + const FLAG_NO_WRITE_COMMENTS + const FLAG_NO_WRITE_DESCRIPTION + const FLAG_NO_WRITE_INFO_JSON + const FLAG_NO_WRITE_PLAYLIST_METAFILES + const FLAG_NO_WRITE_SUBS + const FLAG_NO_WRITE_THUMBNAIL + const FLAG_OUTPUT + const FLAG_OUTPUT_NA_PLACEHOLDER + const FLAG_PARSE_METADATA + const FLAG_PART + const FLAG_PASSWORD + const FLAG_PATHS + const FLAG_PLAYLIST_ITEMS + const FLAG_PLAYLIST_RANDOM + const FLAG_PLUGIN_DIRS + const FLAG_POSTPROCESSOR_ARGS + const FLAG_POST_OVERWRITES + const FLAG_PREFER_FREE_FORMATS + const FLAG_PREFER_INSECURE + const FLAG_PRESET_ALIAS + const FLAG_PRINT + const FLAG_PRINT_TO_FILE + const FLAG_PRINT_TRAFFIC + const FLAG_PROGRESS + const FLAG_PROGRESS_DELTA + const FLAG_PROGRESS_TEMPLATE + const FLAG_PROXY + const FLAG_QUIET + const FLAG_RECODE_VIDEO + const FLAG_REMOVE_CHAPTERS + const FLAG_REMUX_VIDEO + const FLAG_REPLACE_IN_METADATA + const FLAG_RESIZE_BUFFER + const FLAG_RESTRICT_FILENAMES + const FLAG_RETRIES + const FLAG_RETRY_SLEEP + const FLAG_RM_CACHE_DIR + const FLAG_SIMULATE + const FLAG_SKIP_DOWNLOAD + const FLAG_SKIP_PLAYLIST_AFTER_ERRORS + const FLAG_SKIP_UNAVAILABLE_FRAGMENTS + const FLAG_SLEEP_INTERVAL + const FLAG_SLEEP_REQUESTS + const FLAG_SLEEP_SUBTITLES + const FLAG_SOCKET_TIMEOUT + const FLAG_SOURCE_ADDRESS + const FLAG_SPLIT_CHAPTERS + const FLAG_SPONSORBLOCK_API + const FLAG_SPONSORBLOCK_CHAPTER_TITLE + const FLAG_SPONSORBLOCK_MARK + const FLAG_SPONSORBLOCK_REMOVE + const FLAG_SUB_FORMAT + const FLAG_SUB_LANGS + const FLAG_THROTTLED_RATE + const FLAG_TRIM_FILENAMES + const FLAG_TWO_FACTOR + const FLAG_UPDATE + const FLAG_UPDATE_TO + const FLAG_USERNAME + const FLAG_USE_EXTRACTORS + const FLAG_USE_POSTPROCESSOR + const FLAG_VERBOSE + const FLAG_VERSION + const FLAG_VIDEO_MULTISTREAMS + const FLAG_VIDEO_PASSWORD + const FLAG_WAIT_FOR_VIDEO + const FLAG_WINDOWS_FILENAMES + const FLAG_WRITE_ALL_THUMBNAILS + const FLAG_WRITE_AUTO_SUBS + const FLAG_WRITE_COMMENTS + const FLAG_WRITE_DESCRIPTION + const FLAG_WRITE_DESKTOP_LINK + const FLAG_WRITE_INFO_JSON + const FLAG_WRITE_LINK + const FLAG_WRITE_PAGES + const FLAG_WRITE_PLAYLIST_METAFILES + const FLAG_WRITE_SUBS + const FLAG_WRITE_THUMBNAIL + const FLAG_WRITE_URL_LINK + const FLAG_WRITE_WEBLOC_LINK + const FLAG_XATTRS + const FLAG_XATTR_SET_FILESIZE + const FLAG_XFF + const FLAG_YES_PLAYLIST + func (f Flag) String() string + type Listener interface + OnExit func(code int) + OnStderr func(line string) + OnStdout func(line string) + type Parameter struct + func AddHeaders(header, value string) Parameter + func AgeLimit(years int) Parameter + func ApMso(mso string) Parameter + func ApPassword(password string) Parameter + func ApUsername(username string) Parameter + func AudioFormat(format Audio) Parameter + func AudioQuality(quality string) Parameter + func BatchFile(file string) Parameter + func BreakMatchFilters(filter string) Parameter + func BufferSize(size string) Parameter + func CacheDir(directory string) Parameter + func ClientCertificate(certFile string) Parameter + func ClientCertificateKey(keyFile string) Parameter + func ClientCertificatePassword(password string) Parameter + func Color(stream, policy string) Parameter + func ColorPolicy(policy string) Parameter + func CompatOptions(opts string) Parameter + func ConcatPlaylist(policy string) Parameter + func ConcurrentFragments(fragments int) Parameter + func ConfigLocations(path string) Parameter + func ConvertSubs(format string) Parameter + func ConvertThumbnails(format string) Parameter + func Cookies(file string) Parameter + func CookiesFromBrowser(browser string) Parameter + func Date(date string) Parameter + func DateAfter(date string) Parameter + func DateBefore(date string) Parameter + func DefaultSearch(prefix string) Parameter + func DownloadArchive(file string) Parameter + func DownloadSections(regex string) Parameter + func Downloader(proto, name string) Parameter + func DownloaderArgs(name, args string) Parameter + func DownloaderName(name string) Parameter + func Encoding(encoding string) Parameter + func Exec(when When, cmd string) Parameter + func ExecCommand(cmd string) Parameter + func ExtractorArgs(ieKey, args string) Parameter + func ExtractorRetries(retries string) Parameter + func FakeForward(header string) Parameter + func FfmpegLocation(path string) Parameter + func FileAccessRetries(retries int) Parameter + func Fixup(policy string) Parameter + func Format(format string) Parameter + func FormatSort(sortOrder string) Parameter + func FragmentRetries(retries int) Parameter + func GeoVerificationProxy(url string) Parameter + func HttpChunkSize(size string) Parameter + func Impersonate(client, os string) Parameter + func ImpersonateClient(client string) Parameter + func LimitRate(rate string) Parameter + func LoadInfoJson(file string) Parameter + func MatchFilters(filter string) Parameter + func MaxDownloads(number int) Parameter + func MaxFilesize(filesize string) Parameter + func MergeOutputFormat(format string) Parameter + func MinFilesize(filesize string) Parameter + func NetrcCmd(cmd string) Parameter + func NetrcLocation(path string) Parameter + func Output(types, template string) Parameter + func OutputNaPlaceholder(text string) Parameter + func OutputTemplate(template string) Parameter + func ParseMetadata(when When, from, to string) Parameter + func ParseMetadataPair(from, to string) Parameter + func Password(password string) Parameter + func Paths(types, path string) Parameter + func PathsSingle(path string) Parameter + func PlaylistItems(items string) Parameter + func PlaylistItemsRange(start, end int) Parameter + func PluginDirs(path string) Parameter + func PostprocessorArgs(name, args string) Parameter + func PresetAlias(preset Preset) Parameter + func Print(when When, template string) Parameter + func PrintTemplate(template string) Parameter + func ProgressDelta(seconds float32) Parameter + func ProgressTemplate(types, template string) Parameter + func ProgressTemplateValue(template string) Parameter + func Proxy(url string) Parameter + func RecodeVideo(format Video) Parameter + func RemoveChapters(regex string) Parameter + func RemuxVideo(format Video) Parameter + func ReplaceInMetadata(when When, fields, regex, replace string) Parameter + func ReplaceInMetadataValues(fields, regex, replace string) Parameter + func Retries(retries int) Parameter + func RetrySleep(typeValue, expression string) Parameter + func RetrySleepExpression(expression string) Parameter + func SkipPlaylistAfterErrors(errors int) Parameter + func SleepInterval(seconds float32) Parameter + func SleepMaxInterval(seconds float32) Parameter + func SleepRequests(seconds float32) Parameter + func SleepSubtitles(seconds float32) Parameter + func SocketTimeout(seconds int) Parameter + func SourceAddress(ip string) Parameter + func SponsorblockApi(url string) Parameter + func SponsorblockChapterTitle(template string) Parameter + func SponsorblockMark(cats string) Parameter + func SponsorblockRemove(cats string) Parameter + func SubFormat(format string) Parameter + func SubLangs(langs string) Parameter + func ThrottledRate(rate string) Parameter + func TrimFilenames(length int) Parameter + func TwoFactor(code string) Parameter + func UpdateTo(channel, tag string) Parameter + func UseExtractors(names string) Parameter + func UsePostprocessor(name, args string) Parameter + func UsePostprocessorName(name string) Parameter + func Username(username string) Parameter + func VideoPassword(password string) Parameter + func WaitForVideo(min int) Parameter + func WaitForVideoRange(min, max int) Parameter + type Preset string + const PresetAAC + const PresetMKV + const PresetMP3 + const PresetMP4 + const PresetSleep + func (p Preset) String() string + type PrintListener struct + func (p *PrintListener) OnStderr(line string) + func (p *PrintListener) OnStdout(line string) + func (ü *PrintListener) OnExit(code int) + type Runner struct + ExecutablePath string + func NewRunner(executablePath string) *Runner + func (r *Runner) Run(listener Listener, arg ...string) error + type Video string + const VideoAAC + const VideoAIFF + const VideoALAC + const VideoAVI + const VideoFLAC + const VideoFLV + const VideoGIF + const VideoM4A + const VideoMKA + const VideoMKV + const VideoMOV + const VideoMP3 + const VideoMP4 + const VideoOGG + const VideoOPUS + const VideoVORBIS + const VideoWAV + const VideoWEBM + func (f Video) String() string + type When string + const WhenAfterDownload + const WhenAfterExtraction + const WhenAfterFilter + const WhenAfterFormat + const WhenAfterMove + const WhenAfterPlaylist + const WhenAfterVideo + const WhenBeforeDownload + func (w When) String() string