vsd 0.5.0

A command-line utility and library for downloading streams from DASH manifests and HLS playlists.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use vsd::{FileDownloader, Result, reqwest::Client, tokio};

#[tokio::main(flavor = "multi_thread")]
async fn main() -> Result<()> {
    let client = Client::new();

    FileDownloader::new(&client)
        .threads(5)
        .resume(true)
        .download(
            "https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.6/llvm-project-22.1.6.src.tar.xz",
            "target/llvm-project-22.1.6.src.tar.xz",
        )
        .await?;

    println!("Download complete!");
    Ok(())
}