Merge pull request #1096 from Araxeus/crossfade-beta-psa

[crossfade] add `[beta]` tag to warn of possible bugs
This commit is contained in:
th-ch
2023-04-04 22:05:40 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,12 @@ const mainMenuTemplate = (win) => {
};
}
return pluginEnabledMenu(plugin);
let pluginLabel = plugin;
if (pluginLabel === "crossfade") {
pluginLabel = "crossfade [beta]";
}
return pluginEnabledMenu(plugin, pluginLabel);
}),
],
},

View File

@ -110,6 +110,9 @@ const onApiLoaded = () => {
watchVideoIDChanges(async (videoID) => {
await waitForTransition;
const url = await getStreamURL(videoID);
if (!url) {
return;
}
await createAudioForCrossfade(url);
});
};