Open Johannes7k75 opened 5 days ago
3.3.12 DEV
Windows
Windows 11 Pro 23H2
x64
No response
pnpm run dev
A console.log where the songinfo is send as a json object
No console.log of songInfo on start After first skip / song change the song info is logged correcly
This only appears when using it in development when using pnpm run start it, the behavior disappears
pnpm run start
CustomPlugin
// plugins/custom-plugin/index.ts import { createPlugin } from "@/utils"; import registerCallback from "@/providers/song-info"; export default createPlugin({ name: () => "Custom plugin", description: () => "Custom test plugin", restartNeeded: false, renderer: { onPlayerApiReady(playerApi, context) { context.ipc.on("testLog", (message: string) => console.log("TestLog: " + message)); }, }, backend: { start: (ctx) => { registerCallback((songInfo) => { console.log("Song info changed", songInfo); ctx.window.webContents.send("testLog", `songInfo: ${JSON.stringify(songInfo)}`); }); } } });
Preflight Checklist
YouTube Music (Application) Version
3.3.12 DEV
Checklists
What operating system are you using?
Windows
Operating System Version
Windows 11 Pro 23H2
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
pnpm run dev
Expected Behavior
A console.log where the songinfo is send as a json object
Actual Behavior
No console.log of songInfo on start After first skip / song change the song info is logged correcly
Enabled plugins
Additional Information
This only appears when using it in development when using
pnpm run start
it, the behavior disappearsCustomPlugin