Skip to content

Commit

Permalink
Voice: add infinite retry arg to ytdl for rst packets (#578)
Browse files Browse the repository at this point in the history
Youtube periodically will send rst packets to drop the connection
likely due to the slow download rate as it is piped directly into ffmpeg
to play. The default number of retries is 10 which will abort playback
in long tracks after 10 errors. This commit sets the max retries to
infinite.
  • Loading branch information
Flat authored and arqunis committed May 25, 2019
1 parent 186e914 commit 86ec810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/voice/streamer.rs
Expand Up @@ -277,6 +277,8 @@ pub fn ytdl(uri: &str) -> Result<Box<dyn AudioSource>> {
let ytdl_args = [
"-f",
"webm[abr>0]/bestaudio/best",
"-R",
"infinite",
"--no-playlist",
"--ignore-config",
uri,
Expand Down

0 comments on commit 86ec810

Please sign in to comment.