From 2a270f20cc8e2f2a0754d28d6892bb1bd27e45ce Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 16 May 2023 17:50:10 -0300 Subject: don't explode without metadata lol --- backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.js b/backend.js index c04f4a9..a491f00 100644 --- a/backend.js +++ b/backend.js @@ -795,7 +795,7 @@ export default class Backend extends EventEmitter { queuePlayer.on('playing', track => { if (track) { const metadata = this.getMetadataFor(track) - queuePlayer.setDuration(metadata.duration) + queuePlayer.setDuration(metadata?.duration) } }) -- cgit 1.3.0-6-gf8a5