diff --git a/redbot/cogs/audio/core/commands/controller.py b/redbot/cogs/audio/core/commands/controller.py index 4bf78bcad0d..37eb83dd7be 100644 --- a/redbot/cogs/audio/core/commands/controller.py +++ b/redbot/cogs/audio/core/commands/controller.py @@ -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"),