small fix

This commit is contained in:
vveeps 2021-10-26 15:39:21 +03:00
parent 12544691eb
commit 1b54aae3b3
1 changed files with 15 additions and 8 deletions

View File

@ -225,15 +225,22 @@ class Player(VoiceProtocol):
ctx=track.ctx ctx=track.ctx
))[0] ))[0]
track.original = search track.original = search
track = search
data = { data = {
"op": "play", "op": "play",
"guildId": str(self.guild.id), "guildId": str(self.guild.id),
"track": track.track_id, "track": search.track_id,
"startTime": str(start), "startTime": str(start),
"noReplace": ignore_if_playing "noReplace": ignore_if_playing
} }
else:
data = {
"op": "play",
"guildId": str(self.guild.id),
"track": track.track_id,
"startTime": str(start),
"noReplace": ignore_if_playing
}
if end > 0: if end > 0:
data["endtime"] = str(end) data["endtime"] = str(end)