chore: update dependencies and drop youtube-dl support in favor of yt-dlp

This commit is contained in:
nvrl committed 2026-03-22 12:07:07 +01:00
1 parent c75e9f41f7
commit 7ef2747b20
2 files changed
+16 -16

No files matched your search

+10 -12
View File
@@ -1,19 +1,17 @@
[package]
name = "ytd-rs"
version = "0.1.7"
authors = ["Nils Pukropp <nils.pukropp@outlook.de>"]
edition = "2018"
license-file ="LICENSE"
description = "A simple wrapper for youtube-dl. Youtube-dl has to be installed on the system"
version = "0.2.0"
authors = ["Nils Pukropp <nils@narl.io>"]
edition = "2024"
license-file = "LICENSE"
description = "An async, full-featured wrapper for yt-dlp."
homepage = "https://github.com/Nirusu99/ytd-rs"
repository = "https://github.com/Nirusu99/ytd-rs"
readme = "README.md"
[features]
yt-dlp = []
youtube-dlc = []
[dependencies]
regex = "1.5.5"
thiserror = "1.0.30"
regex = "1.11.1"
thiserror = "2.0.11"
tokio = { version = "1.43.0", features = ["process", "rt", "macros", "fs"] }
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.138"
+6 -4
View File
@@ -1,11 +1,13 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum YoutubeDLError {
#[error("failed to execute youtube-dl")]
pub enum YtDlpError {
#[error("failed to execute yt-dlp: {0}")]
IOError(#[from] std::io::Error),
#[error("failed to convert path")]
#[error("failed to convert output to string: {0}")]
UTF8Error(#[from] std::string::FromUtf8Error),
#[error("youtube-dl exited with: {0}")]
#[error("failed to parse JSON: {0}")]
JsonError(#[from] serde_json::Error),
#[error("yt-dlp exited with error: {0}")]
Failure(String),
}