MCPcopy Create free account

hub / github.com/boul2gom/yt-dlp / functions

Functions2,260 in github.com/boul2gom/yt-dlp

↓ 6 callersMethodevent_type
Returns a human-readable event type name
src/events/types.rs:355
↓ 6 callersMethodexecute_with_condition
Execute an async operation with retry logic and a condition for retryable errors. # Arguments `operation` - The async operation to retry `is_retryab
src/utils/network/retry.rs:92
↓ 6 callersMethodfetch
Convenience constructor for `FetchFailed`.
crates/media-seek/src/error.rs:45
↓ 6 callersMethodget_by_hash
Retrieve a file by its content hash. # Arguments `hash` - The SHA-256 hash of the file content. # Returns The cached file metadata and its path, o
src/cache/stores/files.rs:99
↓ 6 callersMethodis_audio
Checks if the format is an audio format.
src/model/format.rs:89
↓ 6 callersFunctionload_e2e_playlist
Loads the playlist fixture (note: entry URLs are not mock-server-relative).
tests/e2e/helpers.rs:53
↓ 6 callersFunctionparse
(probe: &[u8])
crates/media-seek/src/video/flv.rs:97
↓ 6 callersMethodput_file
Store a file in the cache (both layers). # Arguments `source_path` - Path to the source file. `filename` - Display name for the cached file. `video_
src/cache/stores/files.rs:342
↓ 6 callersMethodselect_thumbnail
Selects a thumbnail based on quality preference.
src/client/streams/selection.rs:453
↓ 6 callersFunctionsetup_file_server
()
tests/integration/download/manager.rs:13
↓ 6 callersFunctionsubtitle_fixture
Returns the path to a subtitle fixture file.
tests/common/fixtures.rs:28
↓ 6 callersMethodupdate
Updates the progress # Arguments `downloaded` - Number of bytes downloaded `total` - Total number of bytes
src/download/config/progress.rs:84
↓ 6 callersFunctionurl_hash
(url: &str)
src/cache/backend/mod.rs:46
↓ 6 callersMethodwith_arg
Add custom yt-dlp argument.
src/extractor/mod.rs:96
↓ 6 callersMethodwith_player_client
Set YouTube player client for optimal performance. # Arguments `client` - The player client to use # Returns Self for method chaining # Examples
src/extractor/youtube.rs:146
↓ 5 callersMethodadd_metadata
Add metadata to a file based on its format. This method automatically detects the file format and applies appropriate metadata. Use this for standalo
src/metadata/api.rs:44
↓ 5 callersMethodbuild_url
Builds the complete proxy URL with authentication if configured. # Returns The proxy URL with embedded authentication credentials if provided
src/client/proxy.rs:168
↓ 5 callersMethodcancel_download
Cancel a download. # Arguments `download_id` - The ID of the download to cancel. # Returns true if the download was canceled, false if it was not
src/download/api.rs:205
↓ 5 callersMethodcompare_video_formats
Compares two video formats. Formats sorting : "language preference", "quality", "video resolution", "fps", "video bitrate"
src/client/streams/selection.rs:219
↓ 5 callersFunctionconvert_subtitle
Convert a subtitle file from one format to another. # Arguments `input_path` - Path to the input subtitle file `output_path` - Path to the output su
src/utils/subtitle/subtitle_converter.rs:31
↓ 5 callersFunctioncreate_dir
Creates a new directory at the given destination. If the directory already exists, nothing is done. # Arguments `destination` - The path to create t
src/utils/fs.rs:236
↓ 5 callersMethoddelay_for_attempt
Calculates the delay for a specific attempt # Arguments `attempt` - The attempt number (0-indexed) # Returns The delay duration for this attempt
src/events/retry.rs:94
↓ 5 callersMethoddownload_format_to_path
Downloads a format to a specific path. # Arguments `format` - The format to download. `output` - The absolute or relative path to save the format to
src/client/streams/pipeline/download.rs:385
↓ 5 callersMethoddownload_video
Fetch the video, download it (video with audio) and returns its path. # Arguments `video` - The `Video` metadata struct. `output` - The output filen
src/client/streams/pipeline/download.rs:42
↓ 5 callersMethodexecute
Executes the download with the configured options. Depending on [`DownloadBuilder::resolved_mode`], this either downloads both video and audio stream
src/client/download_builder.rs:388
↓ 5 callersMethodextract_time_range
Trims a media file to the exact `[start_time, end_time]` window using FFmpeg stream copy. Runs: `ffmpeg -i {source} -ss {start} -t {duration} -c copy
src/client/streams/pipeline/partial.rs:361
↓ 5 callersMethodfetch_playlist
(&self, url: &str)
src/extractor/youtube.rs:435
↓ 5 callersFunctionfind_box
Finds the first box of `box_type` in `data` using a linear flat traversal. Returns `(payload_slice, end_pos)` where `payload_slice` starts immediatel
crates/media-seek/src/video/mp4.rs:230
↓ 5 callersFunctionfind_executable
Find the name of the executable for the given platform. # Arguments `name` - The base name of the executable # Returns The platform-specific execu
src/utils/mod.rs:50
↓ 5 callersMethodget
(&self, url: &str)
src/cache/backend/redb/video.rs:58
↓ 5 callersMethodget_by_video_and_format
Retrieve a file by video ID and format ID. # Arguments `video_id` - The video identifier. `format_id` - The format identifier. # Returns The cache
src/cache/stores/files.rs:141
↓ 5 callersMethodget_status
Get the status of a download # Arguments `id` - The ID of the download # Returns The download status, or None if the ID doesn't exist
src/download/manager.rs:379
↓ 5 callersMethodget_subtitle_by_language
Retrieve a subtitle by video ID and language code. # Arguments `video_id` - The video identifier. `language` - The language code (e.g., "en", "es").
src/cache/stores/files.rs:287
↓ 5 callersMethodinitial_delay
Get the initial delay. # Returns The initial delay before the first retry.
src/utils/network/retry.rs:160
↓ 5 callersMethodis_video
Checks if the format is a video format.
src/model/format.rs:82
↓ 5 callersFunctionload_fixture_with_url
Loads any JSON fixture, replaces `{{MOCK_SERVER}}` with `base_url`, and deserialises it. Use this instead of duplicating the `load_json_string + repl
tests/common/fixtures.rs:46
↓ 5 callersFunctionmake_cached_file
(format_id: &str, video_id: &str)
tests/integration/cache/json.rs:342
↓ 5 callersFunctionmake_test_source
(dir: &Path, name: &str)
tests/integration/cache/json.rs:336
↓ 5 callersFunctionmake_video_format
(id: &str, vcodec: &str, height: u32, fps: f64, vbr: f64, quality: f64)
tests/unit/selection.rs:18
↓ 5 callersFunctionparse
Parses an MP4/M4A/ISO BMFF stream and returns a [`ContainerIndex`]. First checks for fMP4 SIDX boxes (collecting all chained SIDX boxes); if none are
crates/media-seek/src/video/mp4.rs:178
↓ 5 callersFunctionparse_master
Fetches and parses an HLS master playlist. # Arguments `client` - The HTTP client to use for fetching. `url` - The URL of the master playlist. # Er
src/live/hls.rs:110
↓ 5 callersMethodprocess_event
Processes an event and delivers it to matching webhooks # Arguments `event` - The event to deliver
src/events/delivery/webhooks.rs:360
↓ 5 callersFunctionsanitize_path
Sanitizes a file path to prevent path traversal attacks. # Arguments `path` - The path to sanitize # Returns Returns a sanitized version of the pa
src/utils/validation.rs:103
↓ 5 callersFunctionskip_amf_value
Skips one AMF0 value and returns `((), bytes_consumed)`. Returns `Err` only for structurally unrecoverable situations (truncated data). Unknown type
crates/media-seek/src/video/flv.rs:434
↓ 5 callersFunctiontry_parent
Returns the parent directory of the given path. # Arguments `path` - The path to extract the parent from # Returns The parent directory path # Er
src/utils/fs.rs:170
↓ 5 callersMethodvalidate
Validates the chapters for consistency and correctness. # Returns Returns a `ChapterValidation` result containing validation status and any issues f
src/model/types/chapter.rs:246
↓ 5 callersMethodwith_cookies
Use a Netscape cookie file for authentication. # Arguments `path` - Path to the Netscape cookie file
src/client/builder.rs:151
↓ 5 callersMethodwith_cookies_from_browser
Extract cookies from a browser for authentication. # Arguments `browser` - Browser name (e.g. `"chrome"`, `"firefox"`)
src/client/builder.rs:164
↓ 5 callersMethodwith_retry_attempts
Configures the number of download attempts in case of failure. # Arguments `attempts` - The number of attempts.
src/download/engine/fetcher.rs:232
↓ 4 callersMethodadd_thumbnail_to_file
Add a thumbnail to a file based on its format. Thumbnails are embedded in the file metadata. Supported formats: MP3, M4A, MP4, WebM, MKV # Arguments
src/metadata/api.rs:202
↓ 4 callersMethodcompare_audio_formats
Compares two audio formats. Formats sorting : "language preference", "quality", "audio bitrate", "sample rate", "audio channels"
src/client/streams/selection.rs:260
↓ 4 callersFunctioncreate_file
Creates a new file at the given destination. # Arguments `destination` - The path to create the file at # Returns An opened file handle # Errors
src/utils/fs.rs:193
↓ 4 callersMethoddownload_id
Returns the download ID if this event is associated with a specific download
src/events/types.rs:318
↓ 4 callersMethodduration
Returns the duration of the chapter in seconds. # Returns The duration in seconds (end_time - start_time)
src/model/types/chapter.rs:25
↓ 4 callersMethodenqueue_with_progress
Add a download to the queue with a progress callback # Arguments `url` - The URL to download `destination` - The destination path `priority` - The d
src/download/manager.rs:256
↓ 4 callersMethodexecutable_path
(&self)
src/extractor/youtube.rs:385
↓ 4 callersMethodfetch_json
Fetch the data from the URL and return it as Serde value. # Arguments `auth_token` - An optional authentication token to use for the request. # Err
src/download/engine/fetcher.rs:287
↓ 4 callersFunctionfixtures_dir
Returns the path to the test fixtures directory.
tests/common/fixtures.rs:8
↓ 4 callersMethodget_download_status
Get the status of a download. # Arguments `download_id` - The ID of the download to check. # Returns The download status, or None if the download
src/download/api.rs:192
↓ 4 callersMethodget_thumbnail_by_video_id
Retrieve a thumbnail by video ID. # Arguments `video_id` - The video identifier. # Returns The cached thumbnail metadata and its path, or `None` i
src/cache/stores/files.rs:246
↓ 4 callersMethodget_times
Gets the start and end times for this range. # Returns A tuple (start, end) in seconds, or None if chapter conversion is needed
src/download/engine/partial.rs:232
↓ 4 callersMethodhash
(&self, state: &mut H)
src/model/video.rs:470
↓ 4 callersMethodis_available
Checks if the video is available for viewing/download. # Returns `true` if the video is public or unlisted (or has no availability info), `false` ot
src/model/types/playlist.rs:246
↓ 4 callersFunctionload_e2e_short_video
Loads the short video fixture with `{{MOCK_SERVER}}` replaced.
tests/e2e/helpers.rs:38
↓ 4 callersFunctionload_hls_fixture
Loads an HLS fixture and replaces the mock server URL placeholder.
tests/common/fixtures.rs:105
↓ 4 callersFunctionmake_chapters
()
tests/unit/download/partial.rs:4
↓ 4 callersFunctionmake_video_with_thumbnails
(thumbnails: Vec<Thumbnail>)
tests/unit/selection.rs:162
↓ 4 callersMethodmatches_preferences
Checks if this cached file matches the given preferences.
src/cache/stores/video.rs:117
↓ 4 callersMethodneeds_chapter_metadata
Checks if this range needs chapter metadata to be resolved. # Returns true if chapter metadata is needed, false otherwise
src/download/engine/partial.rs:152
↓ 4 callersMethodparallel_segments
Returns the number of parallel segments configured for downloads.
src/download/manager.rs:76
↓ 4 callersMethodparse
Convenience constructor for `ParseFailed`.
crates/media-seek/src/error.rs:31
↓ 4 callersMethodpartial_cmp
(&self, other: &Self)
src/download/types.rs:119
↓ 4 callersFunctionprefixed_url_key
(prefix: &str, url: &str)
src/cache/backend/redis.rs:36
↓ 4 callersMethodput_thumbnail
Store a thumbnail in the cache (both layers). # Arguments `source_path` - Path to the source thumbnail file. `filename` - Display name for the cache
src/cache/stores/files.rs:395
↓ 4 callersMethodrecord_live
(&'a self, video: &'a Video, output: impl Into<PathBuf>)
src/lib.rs:334
↓ 4 callersFunctionredis_url
()
tests/integration/cache/redis.rs:4
↓ 4 callersMethodsegment_size
Returns the segment size (in bytes) configured for downloads.
src/download/manager.rs:81
↓ 4 callersMethodshutdown
Initiates a graceful shutdown of all ongoing operations. This method triggers the cancellation token, signaling all ongoing downloads and operations
src/lib.rs:864
↓ 4 callersMethodtimeout
(&self)
src/extractor/youtube.rs:389
↓ 4 callersFunctiontrack_sequence
Registers a sequence number as seen, evicting the oldest entry when the window is full. Inserts `sequence` into `seen` and appends it to the bounded
src/live/core.rs:206
↓ 4 callersFunctiontry_name
Returns the name of the given path. # Arguments `path` - The path to extract the name from # Returns The file name as a string # Errors Returns
src/utils/fs.rs:118
↓ 4 callersMethodupdate_progress
Updates the progress # Arguments `bytes` - Number of bytes just downloaded
src/download/engine/segment.rs:90
↓ 4 callersMethodwith_parallel_segments
Configures the number of parallel segments for downloading. # Arguments `segments` - The number of parallel segments to use. # Returns Self for me
src/download/engine/fetcher.rs:206
↓ 4 callersMethodwith_speed_profile
Set the speed profile for download optimization. This automatically configures all download parameters (concurrent downloads, parallel segments, segm
src/client/builder.rs:264
↓ 4 callersMethodwith_timeout
Set the timeout for command execution. # Arguments `timeout` - The timeout duration
src/client/builder.rs:119
↓ 3 callersMethodarg
Adds a single argument. # Arguments `arg` - The argument to append # Returns Self for method chaining.
src/executor/ffmpeg.rs:125
↓ 3 callersMethodargs
Returns the current yt-dlp arguments. # Returns A slice of the current arguments.
src/lib.rs:527
↓ 3 callersMethodas_str
Returns the lowercase platform identifier used in binary names. # Returns A string slice with the platform name (e.g., "windows", "linux", "osx").
src/utils/platform.rs:48
↓ 3 callersMethodaudio_only
Forces audio-only download mode. In audio-only mode, only the audio stream is downloaded (no video stream will be fetched). If the target file format
src/client/download_builder.rs:281
↓ 3 callersMethodaudio_quality
Sets the desired audio quality. # Arguments `quality` - The desired audio quality level # Returns The modified `DownloadBuilder` instance.
src/client/download_builder.rs:147
↓ 3 callersMethodbackoff_factor
Get the backoff factor. # Returns The multiplicative factor applied to the delay between retries.
src/utils/network/retry.rs:178
↓ 3 callersMethodcalculate_optimal_segments
Calculate optimal number of segments based on file size and profile # Arguments `file_size` - The total size of the file in bytes `segment_size` - T
src/download/config/speed_profile.rs:143
↓ 3 callersFunctionclean_redb_table
Clean expired entries from a redb table, removing associated files on disk.
src/cache/backend/redb/mod.rs:35
↓ 3 callersMethodclone
(&self)
src/events/delivery/webhooks.rs:533
↓ 3 callersMethodcombine_audio_and_video_to_path
Combines audio and video files into a single file at a specific path. Unlike [`combine_audio_and_video`](Self::combine_audio_and_video), this method
src/client/streams/pipeline/combine.rs:396
↓ 3 callersMethodcount
Gets the total number of chapters.
src/model/types/chapter.rs:232
↓ 3 callersFunctiondetect_extractor_type
Detect which extractor type should handle a URL. # Arguments `url` - The URL to analyze `executable_path` - Path to the yt-dlp executable # Returns
src/extractor/detector.rs:21
↓ 3 callersMethoddownload_format
Downloads a format. # Arguments `format` - The format to download. `output` - The output filename/path relative to the download directory. # Return
src/client/streams/pipeline/download.rs:370
↓ 3 callersMethoddownload_subtitle
Downloads a subtitle file for a specific language. # Arguments `video` - The `Video` metadata struct. `language_code` - The language code (e.g., "en
src/client/streams/assets/subtitle.rs:22
↓ 3 callersMethoddownload_video_partial
Downloads a specific time window of a video using HTTP Range requests and pure Rust parsing. Selects the best video and audio formats, fetches only t
src/client/streams/pipeline/partial.rs:205
← previousnext →101–200 of 2,260, ranked by callers