diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-20 20:25:13 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-20 20:25:13 +0200 |
| commit | c09406cb90baca52ae7b2a800bd459cd9a26f3d4 (patch) | |
| tree | 7f2a96e463ab83b56ec312494d578394f9e5a5ba | |
| parent | improved downloader.py (diff) | |
| download | senator-sperma-c09406cb90baca52ae7b2a800bd459cd9a26f3d4.tar.gz senator-sperma-c09406cb90baca52ae7b2a800bd459cd9a26f3d4.zip | |
play.py fixing
| -rw-r--r-- | cogs/music/play.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cogs/music/play.py b/cogs/music/play.py index 2314545..f18afa8 100644 --- a/cogs/music/play.py +++ b/cogs/music/play.py | |||
| @@ -14,17 +14,10 @@ class Play(commands.Cog): | |||
| 14 | def __init__(self, bot): | 14 | def __init__(self, bot): |
| 15 | self.bot = bot | 15 | self.bot = bot |
| 16 | self.ydl_opts = { | 16 | self.ydl_opts = { |
| 17 | 'format': 'bestaudio/best', | 17 | 'extract_audio': True, |
| 18 | 'postprocessors': [{ | ||
| 19 | 'key': 'FFmpegExtractAudio', | ||
| 20 | 'preferredcodec': 'mp3', | ||
| 21 | 'preferredquality': '192', | ||
| 22 | }], | ||
| 23 | 'noplaylist': True, | 18 | 'noplaylist': True, |
| 24 | 'quiet': True, | 19 | 'quiet': True, |
| 25 | 'no_warnings': True, | ||
| 26 | 'default_search': 'auto', | 20 | 'default_search': 'auto', |
| 27 | 'source_address': '0.0.0.0', | ||
| 28 | } | 21 | } |
| 29 | 22 | ||
| 30 | async def play_audio(self, ctx, vc, url, title): | 23 | async def play_audio(self, ctx, vc, url, title): |
