th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.74k stars 496 forks source link

[Bug]: using the plugin "lumiastream" the eventType switchSong is only sent 6 times unless the connection is restarted #2220

Open abdevlpr opened 3 months ago

abdevlpr commented 3 months ago

Preflight Checklist

YouTube Music (Application) Version

3.3.12

Checklists

What operating system are you using?

macOS

Operating System Version

Sonoma 14.5

What CPU architecture are you using?

arm64 (including Apple Silicon)

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Expected Behavior

When sending data.eventType = 'switchSong' it should always send to Lumia Stream without the need to restart the app everytime

Actual Behavior

When sending data.eventType = 'switchSong' it stops after the 6th time from sending and no event is sent anymore until app reload manually

Enabled plugins

Additional Information

I can reproduce the same issue on my other devices and on windows as well

BluesBroBo commented 1 week ago

I wonder if the bug will be fixed anytime. I started using th-ch because of the option to display the songs on stream, but now that's the very part that is broken since months :/

ArjixWasTaken commented 1 week ago

The number 6 sounds really arbitrary ngl.

ArjixWasTaken commented 1 week ago

I spent an hour trying to make sense of this, but I give up.

  1. lumiastream has shitty docs
  2. the api used in the code is not documented anywhere, and adding th-ch/youtube-music as an integration did nothing
  3. lumia's webserver does not start, even after I enabled developer mode and restarted lumia a few times

Does this even work? Do you even get to experience this bug?

ArjixWasTaken commented 1 week ago

You'd expect a service like lumiastream to have good documentation since they make money off this, but looks like that ain't the case.

abdevlpr commented 1 week ago

Hi @ArjixWasTaken , It looks like there might have been some confusion with the setup process. Here’s how you can get YouTube Music working with Lumia Stream:

After that, go to Alerts to ensure you have it set to something that can show. A good way to test is to also connect Twitch or any platform with a chatbot integration, so you can see if the issue arises when it gets stuck. In Alerts, under YouTube Music, set the chatbot message (or tts if you don't want to connect another platform) to: {{youtubemusic_now_playing_song}} - {{youtubemusic_now_playing_artist}}, so you can display the song title and artist in your chat. Let me know if you still run into any issues, and I'll be happy to help!