Input: Pass --no-playlist for YoutubeDl (#168)

If a link such as [this](https://www.youtube.com/watch?v=ygY2qObZv24&list=RDygY2qObZv24)
is passed to `YoutubeDl` without the option, it would cause a deadlock
in my bot.

There were many videos where it produced a `Silent` packet first instead
of mixed or passthrough. The URL I added was one that produced a
passthrough packet so I used that. Please let me know if this is wrong.
This commit is contained in:
fee1-dead
2023-03-24 06:16:41 +08:00
committed by Kyle Simpson
parent 6e6d8e7ebf
commit 296f0e552c
4 changed files with 25 additions and 4 deletions

View File

@@ -87,6 +87,13 @@ pub mod test_data {
/// Referenced under CC BY-NC-SA 3.0 -- https://creativecommons.org/licenses/by-nc-sa/3.0/
pub const YTDL_TARGET: &str = "https://cloudkicker.bandcamp.com/track/94-days";
/// URL for a source that has both a playlist and a music video,
/// which YTDL should extract.
///
/// Referenced under CC BY-NC-SA 3.0 -- https://creativecommons.org/licenses/by/3.0/
pub const YTDL_PLAYLIST_TARGET: &str =
"https://www.youtube.com/watch?v=hAl_mSCEe5w&list=RDhAl_mSCEe5w&start_radio=1";
/// URL for a source which can be read via an Http Request.
///
/// Referenced under CC BY-NC-SA 3.0 -- https://creativecommons.org/licenses/by-nc-sa/3.0/