mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
fix random queue bug
This commit is contained in:
parent
18843bb265
commit
197908991c
1 changed files with 2 additions and 1 deletions
|
@ -672,7 +672,8 @@ class RoyalDiscordBot(discord.Client):
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
# Might have some problems with del
|
# Might have some problems with del
|
||||||
for index, video in enumerate(self.video_queue.not_ready_videos(self.max_videos_to_predownload)):
|
for index, video in enumerate(self.video_queue.not_ready_videos(self.max_videos_to_predownload) +
|
||||||
|
[self.video_queue.now_playing]):
|
||||||
try:
|
try:
|
||||||
with async_timeout.timeout(self.max_video_ready_time):
|
with async_timeout.timeout(self.max_video_ready_time):
|
||||||
await loop.run_in_executor(executor, video.ready_up)
|
await loop.run_in_executor(executor, video.ready_up)
|
||||||
|
|
Loading…
Reference in a new issue