Skip to content

Commit

Permalink
Docs: added documentation for yt-dlp feature (#106)
Browse files Browse the repository at this point in the history
* Docs: added documentation for yt-dlp feature
* Docs: remove trailing whitespace
  • Loading branch information
Lunarmagpie authored Jan 4, 2022
1 parent 62ecfe6 commit 73323e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/input/ytdl_src.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const YOUTUBE_DL_COMMAND: &str = if cfg!(feature = "youtube-dlc") {
/// If you need looping or track seeking, then consider using
/// [`Restartable::ytdl`].
///
/// Uses `youtube-dlc` if the `"youtube-dlc"` feature is enabled.
/// `youtube-dlc` and `yt-dlp` are also useable by enabling the `youtube-dlc`
/// and `yt-dlp` features respectively.
///
/// [`Restartable::ytdl`]: crate::input::restartable::Restartable::ytdl
pub async fn ytdl(uri: impl AsRef<str>) -> Result<Input> {
Expand Down Expand Up @@ -169,7 +170,8 @@ pub(crate) async fn _ytdl_metadata(uri: &str) -> Result<Metadata> {
/// If you need looping or track seeking, then consider using
/// [`Restartable::ytdl_search`].
///
/// Uses `youtube-dlc` if the `"youtube-dlc"` feature is enabled.
/// `youtube-dlc` and `yt-dlp` are also useable by enabling the `youtube-dlc`
/// and `yt-dlp` features respectively.
///
/// [`Restartable::ytdl_search`]: crate::input::restartable::Restartable::ytdl_search
pub async fn ytdl_search(name: impl AsRef<str>) -> Result<Input> {
Expand Down

0 comments on commit 73323e5

Please sign in to comment.