From 45b1fb13bf10f9273de83d25bdd9b650d97e549a Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Fri, 13 Nov 2020 22:41:01 +0000 Subject: [PATCH] Docs: describe `youtube-dlc` feature --- src/input/ytdl_src.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/ytdl_src.rs b/src/input/ytdl_src.rs index 90cce90..f03e356 100644 --- a/src/input/ytdl_src.rs +++ b/src/input/ytdl_src.rs @@ -21,6 +21,8 @@ const YOUTUBE_DL_COMMAND: &str = if cfg!(feature = "youtube-dlc") { }; /// Creates a streamed audio source with `youtube-dl` and `ffmpeg`. +/// +/// Uses `youtube-dlc` if the `youtube-dlc` feature is enabled. pub async fn ytdl(uri: &str) -> Result { _ytdl(uri, &[]).await } @@ -106,7 +108,7 @@ pub(crate) async fn _ytdl(uri: &str, pre_args: &[&str]) -> Result { )) } -/// Creates a streamed audio source from YouTube search results with `youtube-dl`,`ffmpeg`, and `ytsearch`. +/// Creates a streamed audio source from YouTube search results with `youtube-dl(c)`,`ffmpeg`, and `ytsearch`. /// Takes the first video listed from the YouTube search. pub async fn ytdl_search(name: &str) -> Result { ytdl(&format!("ytsearch1:{}", name)).await