aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorMarcoCoreDuo <[email protected]>2024-07-18 06:32:16 +0200
committerGitHub <[email protected]>2024-07-17 21:32:16 -0700
commitfcc8d8881aa338c5011f1173ad2d16efa13591c3 (patch)
treea67aa6689c4f625e0177f5c73c36eae88dd3e05c /src/services
parent29b61cc0b6363b3e07f17bd7d41400d20827f959 (diff)
downloadmuse-fcc8d8881aa338c5011f1173ad2d16efa13591c3.tar.xz
muse-fcc8d8881aa338c5011f1173ad2d16efa13591c3.zip
Switch to Distube's ytdl-core fork (resolves playback issue) (#1042)
Diffstat (limited to 'src/services')
-rw-r--r--src/services/player.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/player.ts b/src/services/player.ts
index 0da80a4..5e284a6 100644
--- a/src/services/player.ts
+++ b/src/services/player.ts
@@ -1,7 +1,7 @@
import {VoiceChannel, Snowflake} from 'discord.js';
import {Readable} from 'stream';
import hasha from 'hasha';
-import ytdl, {videoFormat} from 'ytdl-core';
+import ytdl, {videoFormat} from '@distube/ytdl-core';
import {WriteStream} from 'fs-capacitor';
import ffmpeg from 'fluent-ffmpeg';
import shuffle from 'array-shuffle';
@@ -280,8 +280,8 @@ export default class {
if (this.getCurrent() && this.status !== STATUS.PAUSED) {
await this.play();
} else {
- this.audioPlayer?.stop(true);
this.status = STATUS.IDLE;
+ this.audioPlayer?.stop(true);
const settings = await getGuildSettings(this.guildId);