multi-scrobbler: Jellyfin spams logs with "media type was not 'Audio', found type: undefined {}"

Please check the FAQ before submitting a bug report.

Describe the bug Jellyfin sends second by second updates to multi-scrobbler which dumps Will not scrobble event because media type was not 'Audio', found type: undefined {} errors in the log. This results in the current playback position in seconds being updated only every minute or so.

To Reproduce

  1. Set up webhook on Jellyfin
  2. Begin playback on any client

Expected behavior Second by second playback status information updates, and no errors flooding into the logs.

Logs

[begins playback]
2023-09-26T11:23:11-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:23:11-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true
2023-09-26T11:23:11-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:23:11-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true
2023-09-26T11:23:11-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:23:12-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true

[later...]

2023-09-26T11:24:03-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:24:04-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true
2023-09-26T11:24:04-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:24:05-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true
2023-09-26T11:24:05-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:24:06-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true {"Album":"Squaredance","Artist":"Kitsune²","Audio_0_Bitrate":916922,"Audio_0_Channels":2,"Audio_0_Codec":"flac","Audio_0_Default":false,"Audio_0_Language":null,"Audio_0_SampleRate":44100,"Audio_0_Title":"FLAC - Stereo","Audio_0_Type":"Audio","ClientName":"Android","DeviceId":"BC9311B570ABE4BD71EEEC0856A448AD","DeviceName":"samsung SM-S901E","IsAutomated":true,"IsPaused":false,"ItemId":"a8f15b29fdb162df7c91d4aa95ef10df","ItemType":"Audio","MediaSourceId":"a8f15b29fdb162df7c91d4aa95ef10df","Name":"Squaredance","NotificationType":"PlaybackProgress","NotificationUsername":"Tabitha","Overview":"","PlaybackPosition":"00:00:55","PlaybackPositionTicks":550000000,"Provider_musicbrainzalbum":"20d76f22-b42f-4704-90d0-10ee3508ec89","Provider_musicbrainzalbumartist":"6e659357-5963-4daf-a634-a3596893f3d7","Provider_musicbrainzartist":"6e659357-5963-4daf-a634-a3596893f3d7","Provider_musicbrainzreleasegroup":"c75e0af7-ac3a-41ba-8674-43060200ecd7","Provider_musicbrainztrack":"fb64dc69-f581-32d8-95dd-355f7df6e498","RunTime":"00:02:43","RunTimeTicks":1638661248,"ServerId":"6c41d884a9c1490f8fd0863e04d75a69","ServerName":"maine","ServerUrl":"<redacted>","ServerVersion":"10.8.10","Tagline":"","Timestamp":"2023-09-26T11:24:06.8974676-03:00","UserId":"6d23c30c5e9d4ec6a66db6b05b63e516","UtcTimestamp":"2023-09-26T14:24:06.8974696Z","Year":2009}
2023-09-26T11:24:06-03:00 debug   : [Sources] [Jellyfin - jellyfin] [Player BC9311B570-samsung SM-S901E-Tabitha] Incoming play state ((a8f15b29fdb162df7c91d4aa95ef10df) Kitsune² - Squaredance) does not match existing state, removing existing: (514941104216969e74a8d87fc7893ad5) Kitsune² - Brother Madonna
2023-09-26T11:24:06-03:00 debug   : [Sources] [Jellyfin - jellyfin] [Player BC9311B570-samsung SM-S901E-Tabitha] New Play: (a8f15b29fdb162df7c91d4aa95ef10df) Kitsune² - Squaredance
2023-09-26T11:24:06-03:00 debug   : [Sources] [Jellyfin - jellyfin] [Player BC9311B570-samsung SM-S901E-Tabitha] Started new Player listen range.
2023-09-26T11:24:07-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true
2023-09-26T11:24:07-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:24:08-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true
2023-09-26T11:24:08-03:00 debug   : [Sources] [Jellyfin - jellyfin] Will not scrobble event because media type was not 'Audio', found type: undefined {}
2023-09-26T11:24:09-03:00 debug   : [API] [Jellyfin] Logging payload due to at least one Jellyfin source having 'logPayload: true

Versions:

  • multi-scrobbler: latest Docker develop tag (digest d5cc2ce81891df3c8a54e1bca7dd9f6e05e17c9cf2ff9328b65bb17984cf527a)
  • jellyfin 10.8.10, webhook plugin 11.0.0.0

Additional context Tested with Symphonium and the official Jellyfin Android app.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

The workaround works just fine, especially since according to you, Jellyfin only ever sends JSON anyway, so this is acceptable. Perhaps it’s worth adding this workaround to the docs? Just in case another user runs into this issue, would avoid the headache for both the user and you if they open another issue.

What I mentioned earlier seems to be the case. I manually added Content-Type: application/json to the headers in the plugin settings and now it’s working as expected, second by second updates with no errors.

image

Seems this is a bug with the plugin then?