mirror of
https://github.com/narrrl/ytd-rs.git
synced 2026-11-04 08:57:01 +01:00
chore: update dependencies and drop youtube-dl support in favor of yt-dlp
This commit is contained in:
1 parent
c75e9f41f7
commit
7ef2747b20
2 files changed
+16
-16
No files matched your search
+6
-4
@@ -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),
|
||||
}
|
||||
Reference in new issue
Block a user