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.
|
# Behaviour altering features.
|
||||||
youtube-dlc = []
|
youtube-dlc = []
|
||||||
|
yt-dlp = []
|
||||||
builtin-queue = []
|
builtin-queue = []
|
||||||
|
|
||||||
# Used for docgen/testing/benchmarking.
|
# Used for docgen/testing/benchmarking.
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ use tracing::trace;
|
|||||||
|
|
||||||
const YOUTUBE_DL_COMMAND: &str = if cfg!(feature = "youtube-dlc") {
|
const YOUTUBE_DL_COMMAND: &str = if cfg!(feature = "youtube-dlc") {
|
||||||
"youtube-dlc"
|
"youtube-dlc"
|
||||||
|
} else if cfg!(feature = "yt-dlp") {
|
||||||
|
"yt-dlp"
|
||||||
} else {
|
} else {
|
||||||
"youtube-dl"
|
"youtube-dl"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
//! [`ConnectionInfo`]: struct@ConnectionInfo
|
//! [`ConnectionInfo`]: struct@ConnectionInfo
|
||||||
//! [lavalink]: https://github.com/freyacodes/Lavalink
|
//! [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;
|
mod config;
|
||||||
pub mod constants;
|
pub mod constants;
|
||||||
#[cfg(feature = "driver-core")]
|
#[cfg(feature = "driver-core")]
|
||||||
|
|||||||
Reference in New Issue
Block a user