From f6b1d68afe40abd8e23a10b781633017c2d3cee6 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 18 Aug 2024 17:12:29 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Skip=20flag=20for=20loop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/player/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/player/index.ts b/src/player/index.ts index 2a541a5..f541a9f 100644 --- a/src/player/index.ts +++ b/src/player/index.ts @@ -70,13 +70,15 @@ export class Player { this.previousAudioInformation = this.currentAudioInformation; - if (this.loopMode === LoopMode.Current) { + if (this.loopMode === LoopMode.Current && !skip) { this._createStream( this.currentAudioInformation as AudioInformation, this.currentAudioInformation?.url as string, 0, true, ); + + this._skipFlag = false; return; }