Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion redbot/cogs/audio/core/commands/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,16 @@ async def command_seek(self, ctx: commands.Context, seconds: Union[int, str]):
abs_position = False
except ValueError:
abs_position = True
assert isinstance(seconds, str)
parts = seconds.split(":")
if not (2 <= len(parts) <= 3 and all(p.isdigit() for p in parts)):
return await self.send_embed_msg(
ctx,
title=_("Unable To Seek Tracks"),
description=_("Invalid input for the time to seek."),
)
seconds = self.time_convert(seconds)
if seconds == 0:
if seconds == 0 and not abs_position:
return await self.send_embed_msg(
ctx,
title=_("Unable To Seek Tracks"),
Expand Down
Loading