mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
[3.1.9]
- Patches over an issue with audio - More comprehensive fix restoring some of this functionality more safely planned Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -2391,7 +2391,7 @@ class Audio(commands.Cog):
|
||||
if not self._track_limit(ctx, track["info"]["length"], maxlength):
|
||||
continue
|
||||
player.add(author_obj, lavalink.rest_api.Track(data=track))
|
||||
await asyncio.sleep(1)
|
||||
await asyncio.sleep(0)
|
||||
track_len += 1
|
||||
if len(playlists[playlist_name]["tracks"]) > track_len:
|
||||
maxlength_msg = " {bad_tracks} tracks cannot be queued.".format(
|
||||
@@ -3072,7 +3072,7 @@ class Audio(commands.Cog):
|
||||
else:
|
||||
track_len += 1
|
||||
player.add(ctx.author, track)
|
||||
await asyncio.sleep(1)
|
||||
await asyncio.sleep(0)
|
||||
if not player.current:
|
||||
await player.play()
|
||||
if len(tracks) > track_len:
|
||||
|
||||
Reference in New Issue
Block a user