Function songbird::input::ytdl_search

source ·
pub async fn ytdl_search(name: impl AsRef<str>) -> Result<Input>
Expand description

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.

This source is not seek-compatible. If you need looping or track seeking, then consider using Restartable::ytdl_search.

youtube-dlc and yt-dlp are also useable by enabling the youtube-dlc and yt-dlp features respectively.