erdnaxeli / castblock

Automatically skip sponsor segments and ads in YouTube videos playing on Chromecast.
MIT License
182 stars 20 forks source link

[BUG] Skips songs on Spotify? #38

Closed Evanito closed 2 years ago

Evanito commented 2 years ago

Sometimes I will be listening to Spotify on my Chromecast Ultra and the song will skip for no reason.

Image below is of debug logs when my Spotify songs get skipped with no user interaction. Error messages start right when song gets skipped and then end when next song starts. image

Happens intermittently, sometimes multiple songs quickly right after each other.

Command I use to run: docker run --rm --privileged --network host erdnaxeli/castblock --debug --mute-ads --category sponsor --category outro --merge-threshold 3 --offset 2

Below is debug output of it skipping two songs in a row (and then I killed the process)

2021-12-18T00:59:13.084886Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
...
2021-12-18T00:59:23.145886Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
2021-12-18T00:59:23.158139Z  DEBUG - castblock.blocker: Checking for new devices
2021-12-18T00:59:23.158147Z  DEBUG - http.client: Performing request -- method: "GET", host: "127.0.0.1", port: 8011, resource: "/devices"
2021-12-18T00:59:25.158975Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
...
2021-12-18T00:59:37.235668Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
2021-12-18T00:59:38.171069Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
2021-12-18T00:59:38.829504Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
2021-12-18T00:59:39.275785Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
2021-12-18T00:59:40.299491Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
2021-12-18T00:59:40.627964Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
2021-12-18T00:59:41.288511Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
2021-12-18T00:59:43.456009Z  DEBUG - castblock.blocker: Received message -- application: "Spotify"
2021-12-18T00:59:43.627732Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
2021-12-18T00:59:44.127668Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
2021-12-18T00:59:45.129031Z  DEBUG - castblock.chromecast: Unhandled payload: Missing JSON attribute: customData
  parsing Castblock::Chromecast::WatchMessagePayload::PayloadStatus at line 1, column 34
  parsing Castblock::Chromecast::WatchMessagePayload#status at line 1, column 24
Evanito commented 2 years ago

Experienced issue while castblock was disabled, not a bug.