Skip to content

Commit

Permalink
(1.1.9) fix error on track playback
Browse files Browse the repository at this point in the history
  • Loading branch information
PapiOphidian committed Sep 8, 2022
1 parent 530311c commit 1ec07a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "volcano",
"version": "1.1.8",
"version": "1.1.9",
"description": "A light-weight LavaLink compatible replacement",
"main": "dist/index.js",
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ class Queue {
output = m3u8(chosen.url);
}

const found = plugins.find(p => p.source === decoded.source);
if (found) {
output = await found.streamHandler(decoded.uri!);
else {
const found = plugins.find(p => p.source === decoded.source);
if (found) {
output = await found.streamHandler(decoded.uri!);
} else throw new Error(`${decoded.source.toUpperCase()}_NOT_IMPLEMENTED`);
}

else throw new Error(`${decoded.source.toUpperCase()}_NOT_IMPLEMENTED`);

if (!output) throw new Error(`NO_OUTPUT_TYPE_${decoded.source.toUpperCase()}_FILTERS_${String(!!this._filters.length).toUpperCase()}_PREVIOUS_${String(!this.actions.initial).toUpperCase()}`);

if (useFFMPEG) {
Expand Down

0 comments on commit 1ec07a6

Please sign in to comment.