Crate ytb_downloader

Source
Expand description

§ytb-downloader

A library for downloading Youtube videos

§Examples

let source = get_available_sources("https://www.youtube.com/watch?v=pqhfyrW_BEA").await?
    .into_iter().next().unwrap();
const OUTPUT_FILE: &str = "download.m4a"; 
download_video!(&source, OUTPUT_FILE).await;
let source = get_available_sources("https://www.youtube.com/watch?v=pqhfyrW_BEA").await?
    .into_iter().next().unwrap();
const OUTPUT_FILE: &str = "download.m4a"; 
download_video(&source, OUTPUT_FILE, None).await;

Modules§

errors
Error types of ytb-downloader crate
youtube
Functions related to requests to Youtube

Macros§

download_video
Helper macro to call download_video without the chunk_size parameter

Functions§

download_video
Downloads a video to an output file given a download source and optionally a chunk size for the partial requests
get_available_sources
Gets available download sources and formats for a video