mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Merge pull request #1096 from Araxeus/crossfade-beta-psa
[crossfade] add `[beta]` tag to warn of possible bugs
This commit is contained in:
7
menu.js
7
menu.js
@ -59,7 +59,12 @@ const mainMenuTemplate = (win) => {
|
||||
};
|
||||
}
|
||||
|
||||
return pluginEnabledMenu(plugin);
|
||||
let pluginLabel = plugin;
|
||||
if (pluginLabel === "crossfade") {
|
||||
pluginLabel = "crossfade [beta]";
|
||||
}
|
||||
|
||||
return pluginEnabledMenu(plugin, pluginLabel);
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
||||
@ -110,6 +110,9 @@ const onApiLoaded = () => {
|
||||
watchVideoIDChanges(async (videoID) => {
|
||||
await waitForTransition;
|
||||
const url = await getStreamURL(videoID);
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
await createAudioForCrossfade(url);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user