mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
testing this for a day if its bad i just wast my time
This commit is contained in:
1 parent
fd58343ce9
commit
656cbfe149
33 files changed
+726
-102
No files matched your search
@@ -122,6 +122,7 @@ const PlaybackMixin = {
|
||||
if (currentBeforeNext) this._lastPlayedTrack = currentBeforeNext;
|
||||
const songData = this.queue.next();
|
||||
if (!songData) {
|
||||
this._consecutiveErrors = 0;
|
||||
this.emit("stopplay");
|
||||
this.emit("queueEnd");
|
||||
|
||||
@@ -171,7 +172,6 @@ const PlaybackMixin = {
|
||||
this._paused = false;
|
||||
this._pausedAt = null;
|
||||
this._queueEndedSent = false;
|
||||
this._consecutiveErrors = 0;
|
||||
this._radioReconnects = 0;
|
||||
|
||||
if (songData.type !== "radio" || !this._radioAnnounced) {
|
||||
@@ -214,6 +214,8 @@ const PlaybackMixin = {
|
||||
await this._playTrackViaBridge(songData, { seekSeconds: seekSec });
|
||||
}
|
||||
|
||||
this._consecutiveErrors = 0;
|
||||
|
||||
if (trackOptMatch && trackOptMatch.endMs > 0) {
|
||||
const elapsedMs = Date.now() - this.startedPlaying;
|
||||
const remainingMs = trackOptMatch.endMs - elapsedMs;
|
||||
@@ -313,6 +315,7 @@ const PlaybackMixin = {
|
||||
url: bridgeUrl,
|
||||
title: songData.title,
|
||||
guildId: this._guildId,
|
||||
trusted: songData.type === "radio" || songData.type === "bilibili",
|
||||
}, {
|
||||
seekSeconds: options.seekSeconds ?? 0,
|
||||
durationMs,
|
||||
|
||||
Reference in new issue
Block a user