Input: Allows yt-dlp usage as another youtube-dl fork (#90)
Signed-off-by: Miezhiko <Miezhiko@gmail.com>
This commit is contained in:
@@ -221,6 +221,7 @@ tokio-02-marker = []
|
||||
|
||||
# Behaviour altering features.
|
||||
youtube-dlc = []
|
||||
yt-dlp = []
|
||||
builtin-queue = []
|
||||
|
||||
# Used for docgen/testing/benchmarking.
|
||||
|
||||
@@ -19,6 +19,8 @@ use tracing::trace;
|
||||
|
||||
const YOUTUBE_DL_COMMAND: &str = if cfg!(feature = "youtube-dlc") {
|
||||
"youtube-dlc"
|
||||
} else if cfg!(feature = "yt-dlp") {
|
||||
"yt-dlp"
|
||||
} else {
|
||||
"youtube-dl"
|
||||
};
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
//! [`ConnectionInfo`]: struct@ConnectionInfo
|
||||
//! [lavalink]: https://github.com/freyacodes/Lavalink
|
||||
|
||||
#[cfg(all(feature = "youtube-dlc", feature = "yt-dlp"))]
|
||||
compile_error!("feature \"youtube-dlc\" and feature \"yt-dlp\" cannot be enabled at the same time");
|
||||
|
||||
mod config;
|
||||
pub mod constants;
|
||||
#[cfg(feature = "driver-core")]
|
||||
|
||||
Reference in New Issue
Block a user