Input: Allows yt-dlp usage as another youtube-dl fork (#90)

Signed-off-by: Miezhiko <Miezhiko@gmail.com>
This commit is contained in:
Miezhiko
2021-10-10 23:56:32 +04:00
committed by GitHub
parent e25cc140b8
commit 6fcb196e34
3 changed files with 6 additions and 0 deletions

View File

@@ -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"
};

View File

@@ -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")]