mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
add a [beta] tag to crossfade plugin
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);
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
||||
@ -111,6 +111,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