diff options
| author | Rapptz <[email protected]> | 2017-04-18 16:05:32 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-04-18 16:05:32 -0400 |
| commit | b4bc4dfd1217ab1e1f8cfefb520830adbab65d50 (patch) | |
| tree | b215f925d9a2fabb8fb4edee623b8bb45bc9293e | |
| parent | Remove unused imports. (diff) | |
| download | discord.py-b4bc4dfd1217ab1e1f8cfefb520830adbab65d50.tar.xz discord.py-b4bc4dfd1217ab1e1f8cfefb520830adbab65d50.zip | |
Fix FFmpegPCMAudio not working with spaces in filename.
| -rw-r--r-- | discord/player.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/player.py b/discord/player.py index adda3584..cfddd2c4 100644 --- a/discord/player.py +++ b/discord/player.py @@ -138,7 +138,7 @@ class FFmpegPCMAudio(AudioSource): args.extend(shlex.split(before_options)) args.append('-i') - args.append('-' if pipe else shlex.quote(source)) + args.append('-' if pipe else source) args.extend(('-f', 's16le', '-ar', '48000', '-ac', '2', '-loglevel', 'warning')) if isinstance(options, str): |