diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-05-16 17:50:10 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-05-16 17:50:10 -0300 |
commit | 2a270f20cc8e2f2a0754d28d6892bb1bd27e45ce (patch) | |
tree | 6742946e1e0221c15dffe0ec8dcf50b7e6e4c564 | |
parent | fdc5961a4b8423ffe5e6e4939f9f709f8e7e34c9 (diff) |
don't explode without metadata lol backup-socket-mtui
-rw-r--r-- | backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) } }) |