lyarenei / jellyfin-plugin-listenbrainz

ListenBrainz plugin for Jellyfin.
MIT License
79 stars 3 forks source link

Release MBID mismatch on ListenBrainz (album artworks do not match) #52

Closed mihawk90 closed 1 year ago

mihawk90 commented 1 year ago

Hey there,

just installed this today and tried it out a little. There is a small issue I noticed in my listen history however: image

Obviously all the cover arts are different which at first I thought was an issue on ListenBrainz' side. However I quickly discovered that you could pull the submitted info and I got them for the bottom two:

{
  "inserted_at": 1699275837,
  "listened_at": 1699275836,
  "recording_msid": "6ba57367-e845-42a5-92ad-511a427a5cee",
  "track_metadata": {
    "additional_info": {
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "duration_ms": 274000,
      "media_player": "Jellyfin",
      "recording_mbid": "725dec27-0adb-455c-a8dc-15d6ffccb4a9",
      "recording_msid": "6ba57367-e845-42a5-92ad-511a427a5cee",
      "release_group_mbid": "ebb692e3-d569-4c3e-9fd3-4a42a89c9022",
      "release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f",
      "submission_client": "ListenBrainz plugin for Jellyfin",
      "submission_client_version": "3.1.1.0",
      "tags": [],
      "track_mbid": "63b00787-90e3-3c87-bcc4-fd21b84dfa69",
      "track_number": 1
    },
    "artist_name": "Amy Macdonald",
    "mbid_mapping": {
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "artists": [
        {
          "artist_credit_name": "Amy Macdonald",
          "artist_mbid": "6aa40207-fec8-43a7-991d-b872a42def05",
          "join_phrase": ""
        }
      ],
      "caa_id": 16801886943,
      "caa_release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f",
      "recording_mbid": "725dec27-0adb-455c-a8dc-15d6ffccb4a9",
      "recording_name": "Ordinary Life",
      "release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f"
    },
    "release_name": "Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith",
    "track_name": "Ordinary Life"
  },
  "user_name": "Mihawk90"
}
{
  "inserted_at": 1699276109,
  "listened_at": 1699276109,
  "recording_msid": "ee14bedb-7249-437d-877c-d2ee8b58f988",
  "track_metadata": {
    "additional_info": {
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "duration_ms": 272000,
      "media_player": "Jellyfin",
      "recording_mbid": "95c3e752-dcff-4033-b035-3e8f494c0af3",
      "recording_msid": "ee14bedb-7249-437d-877c-d2ee8b58f988",
      "release_group_mbid": "ebb692e3-d569-4c3e-9fd3-4a42a89c9022",
      "release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f",
      "submission_client": "ListenBrainz plugin for Jellyfin",
      "submission_client_version": "3.1.1.0",
      "tags": [],
      "track_mbid": "fa15d6c4-bcb1-3b7a-95eb-87a30e54769c",
      "track_number": 2
    },
    "artist_name": "Amy Macdonald",
    "mbid_mapping": {
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "artists": [
        {
          "artist_credit_name": "Amy Macdonald",
          "artist_mbid": "6aa40207-fec8-43a7-991d-b872a42def05",
          "join_phrase": ""
        }
      ],
      "caa_id": 2116242908,
      "caa_release_mbid": "25cfed81-0e8f-3a31-aa11-756406e0b890",
      "recording_mbid": "95c3e752-dcff-4033-b035-3e8f494c0af3",
      "recording_name": "Poison Prince",
      "release_mbid": "1c6c1d7b-2a0d-392b-b6c7-42bf0781ac2e"
    },
    "release_name": "Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith",
    "track_name": "Poison Prince"
  },
  "user_name": "Mihawk90"
}

After running a diff it became fairly obvious that the release_mbid was different for both. Also note it seems to be submitting the release_mbid twice? Once in the track_metadata object (where they match), and once in the mbid_mapping object, where they don't.

However, one thing that makes me wonder if this is an issue on your end or on ListenBrainz' end is that for some reason both album covers link to the same release (and the correct one at that) on Musicbrainz? image As you can see... same href URL, but different img URL?

The IDs in Jellyfin are certainly correct (imported correctly from my files for once): image image

Otherwise it works great though, so thanks for this plugin :)

If this is an issue on ListenBrainz' side, I can also report it there.

lyarenei commented 1 year ago

Hi, that's quite a detailed report, thanks!

After running a diff it became fairly obvious that the release_mbid was different for both. Also note it seems to be submitting the release_mbid twice? Once in the track_metadata object (where they match), and once in the mbid_mapping object, where they don't.

You are looking at ListenBrainz data. This might very well differ from what the plugin sent, as ListenBrainz may do some post-processing on the submissions. To see what's exactly being sent by the plugin, please enable debug logging in Jellyfin. If the data being sent match your expectations, then there is definitely something going on on their side. If not, then the plugin is obviously supplying invalid data and we should look into it further.

Unfortunately, I don't have a working Jellyfin instance currently, so I can't do some quick tests. Please let me know what you find.

phw commented 1 year ago

The data under additional_info is what got sent by the plugin. The mbid_mapping contains the info from LB after mapping the submission

mihawk90 commented 1 year ago

Mh I'm having some difficulties enabling debug logging right now... Got it working

The data under additional_info is what got sent by the plugin. The mbid_mapping contains the info from LB after mapping the submission

Thanks for the input, that's actually soft of what I expected. So I guess it'd be safe to submit a bug on the Listenbrainz Jira then?

phw commented 1 year ago

Yes, would be best to report it there. But there might be already a ticket. AFAIK LB is currently only using the submitted recording MBID for the mapping and not considering the release MBID. There was a discussion about this recently in the Metabrainz forums.

mihawk90 commented 1 year ago

OK, so now I got the logs. It's a lot (how I wish the JF logs had a filtering á la journalctl lol), but anyway this is what came up for the first 3 tracks:

[2023-11-08 16:22:14.388 +00:00] [DBG] [26] Jellyfin.Api.Controllers.PlaystateController: ReportPlaybackStopped PlaySessionId: ""
[2023-11-08 16:22:14.503 +00:00] [DBG] [36] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Poison Prince"
[2023-11-08 16:22:14.503 +00:00] [DBG] [36] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:22:14.504 +00:00] [INF] [26] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Finamp" "0.6.18" playing "Ordinary Life". Stopped at "274181" ms
[2023-11-08 16:22:14.571 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Ordinary Life"
[2023-11-08 16:22:14.571 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:22:14.580 +00:00] [DBG] [36] Jellyfin.Plugin.ListenBrainz: Picking up playback stop event for item "Ordinary Life"
[2023-11-08 16:22:14.581 +00:00] [INF] [36] Jellyfin.Plugin.ListenBrainz: MusicBrainz integration is enabled, fetching metadata for track "Ordinary Life"
[2023-11-08 16:22:14.582 +00:00] [DBG] [36] Jellyfin.Plugin.ListenBrainz: Sending request ("174c327"):
Method: "GET"
URI: https://musicbrainz.org/ws/2/recording?query=tid%3a63b00787-90e3-3c87-bcc4-fd21b84dfa69&limit=1
Data: "null"
[2023-11-08 16:22:14.687 +00:00] [DBG] [24] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Poison Prince"
[2023-11-08 16:22:14.687 +00:00] [DBG] [24] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:22:14.697 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Picking up playback start event for item "Poison Prince"
[2023-11-08 16:22:14.697 +00:00] [INF] [26] Jellyfin.Plugin.ListenBrainz: Checking required metadata and user configuration
[2023-11-08 16:22:14.697 +00:00] [INF] [26] Jellyfin.Plugin.ListenBrainz: All checks passed, sending 'now playing' listen of track "Poison Prince" for user "tarulia"
[2023-11-08 16:22:14.697 +00:00] [INF] [26] Jellyfin.Plugin.ListenBrainz: MusicBrainz integration is enabled, fetching metadata for track "Poison Prince"
[2023-11-08 16:22:14.697 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Sending request ("bd9fa2f"):
Method: "GET"
URI: https://musicbrainz.org/ws/2/recording?query=tid%3afa15d6c4-bcb1-3b7a-95eb-87a30e54769c&limit=1
Data: "null"
[2023-11-08 16:22:14.751 +00:00] [DBG] [34] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:22:14.751 +00:00] [DBG] [34] Jellyfin.Plugin.ListenBrainz: Got response ("174c327"):
Status: OK
Data: "{\"created\":\"2023-11-08T16:17:38.240Z\",\"count\":1,\"offset\":0,\"recordings\":[{\"id\":\"725dec27-0adb-455c-a8dc-15d6ffccb4a9\",\"score\":100,\"title\":\"Ordinary Life\",\"length\":274000,\"disambiguation\":\"live, 2010-10-26: HMV Hammersmith Apollo, London, UK\",\"video\":null,\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\",\"aliases\":[{\"sort-name\":\"Amy Mc Donald\",\"type-id\":\"1937e404-b981-3cb7-8151-4c86ebfc8d8e\",\"name\":\"Amy Mc Donald\",\"locale\":null,\"type\":\"Search hint\",\"primary\":null,\"begin-date\":null,\"end-date\":null},{\"sort-name\":\"Macdonald, Amy Elizabeth\",\"type-id\":\"d4dcd0c0-b341-3612-a332-c0ce797b25cf\",\"name\":\"Amy Elizabeth Macdonald\",\"locale\":null,\"type\":\"Legal name\",\"primary\":null,\"begin-date\":null,\"end-date\":null}]}}],\"first-release-date\":\"2010-10-26\",\"releases\":[{\"id\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":3,\"title\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"type-id\":\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Love Love UK & European Tour LIVE 2010\",\"primary-type\":\"Album\",\"secondary-types\":[\"Live\"],\"secondary-type-ids\":[\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"2010-10-26\",\"country\":\"GB\",\"release-events\":[{\"date\":\"2010-10-26\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":19,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"63b00787-90e3-3c87-bcc4-fd21b84dfa69\",\"number\":\"1\",\"title\":\"Ordinary Life\",\"length\":274000}],\"track-count\":10,\"track-offset\":0}]}]}]}"
[2023-11-08 16:22:14.752 +00:00] [DBG] [36] Jellyfin.Plugin.ListenBrainz: Sending request ("b59ab8b"):
Method: "POST"
URI: https://api.listenbrainz.org/1/submit-listens
Data: "{\"listen_type\":\"single\",\"payload\":[{\"listened_at\":1699460534,\"track_metadata\":{\"artist_name\":\"Amy Macdonald\",\"track_name\":\"Ordinary Life\",\"release_name\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"additional_info\":{\"artist_mbids\":[\"6aa40207-fec8-43a7-991d-b872a42def05\"],\"release_group_mbid\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"release_mbid\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"recording_mbid\":\"725dec27-0adb-455c-a8dc-15d6ffccb4a9\",\"track_mbid\":\"63b00787-90e3-3c87-bcc4-fd21b84dfa69\",\"track_number\":1,\"tags\":[],\"media_player\":\"Jellyfin\",\"submission_client\":\"ListenBrainz plugin for Jellyfin\",\"submission_client_version\":\"3.1.1.0\",\"duration_ms\":274000}}}]}"
[2023-11-08 16:22:14.761 +00:00] [DBG] [36] Jellyfin.Plugin.ListenBrainz: Sending request ("0c2d8bb"):
Method: "POST"
URI: https://api.listenbrainz.org/1/feedback/recording-feedback
Data: "{\"recording_mbid\":\"725dec27-0adb-455c-a8dc-15d6ffccb4a9\"}"
[2023-11-08 16:22:14.813 +00:00] [DBG] [3] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:22:14.813 +00:00] [DBG] [3] Jellyfin.Plugin.ListenBrainz: Got response ("bd9fa2f"):
Status: OK
Data: "{\"created\":\"2023-11-08T16:22:14.804Z\",\"count\":1,\"offset\":0,\"recordings\":[{\"id\":\"95c3e752-dcff-4033-b035-3e8f494c0af3\",\"score\":100,\"title\":\"Poison Prince\",\"length\":272000,\"disambiguation\":\"live, 2010-10-26: HMV Hammersmith Apollo, London, UK\",\"video\":null,\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\",\"aliases\":[{\"sort-name\":\"Amy Mc Donald\",\"type-id\":\"1937e404-b981-3cb7-8151-4c86ebfc8d8e\",\"name\":\"Amy Mc Donald\",\"locale\":null,\"type\":\"Search hint\",\"primary\":null,\"begin-date\":null,\"end-date\":null},{\"sort-name\":\"Macdonald, Amy Elizabeth\",\"type-id\":\"d4dcd0c0-b341-3612-a332-c0ce797b25cf\",\"name\":\"Amy Elizabeth Macdonald\",\"locale\":null,\"type\":\"Legal name\",\"primary\":null,\"begin-date\":null,\"end-date\":null}]}}],\"first-release-date\":\"2010-10-26\",\"releases\":[{\"id\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":3,\"title\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"type-id\":\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Love Love UK & European Tour LIVE 2010\",\"primary-type\":\"Album\",\"secondary-types\":[\"Live\"],\"secondary-type-ids\":[\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"2010-10-26\",\"country\":\"GB\",\"release-events\":[{\"date\":\"2010-10-26\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":19,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"fa15d6c4-bcb1-3b7a-95eb-87a30e54769c\",\"number\":\"2\",\"title\":\"Poison Prince\",\"length\":272000}],\"track-count\":10,\"track-offset\":1}]}]}]}"
[2023-11-08 16:22:14.813 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Sending request ("769a30c"):
Method: "POST"
URI: https://api.listenbrainz.org/1/submit-listens
Data: "{\"listen_type\":\"playing_now\",\"payload\":[{\"track_metadata\":{\"artist_name\":\"Amy Macdonald\",\"track_name\":\"Poison Prince\",\"release_name\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"additional_info\":{\"artist_mbids\":[\"6aa40207-fec8-43a7-991d-b872a42def05\"],\"release_group_mbid\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"release_mbid\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"recording_mbid\":\"95c3e752-dcff-4033-b035-3e8f494c0af3\",\"track_mbid\":\"fa15d6c4-bcb1-3b7a-95eb-87a30e54769c\",\"track_number\":2,\"tags\":[],\"media_player\":\"Jellyfin\",\"submission_client\":\"ListenBrainz plugin for Jellyfin\",\"submission_client_version\":\"3.1.1.0\",\"duration_ms\":272000}}}]}"
[2023-11-08 16:22:14.852 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:22:14.852 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Got response ("b59ab8b"):
Status: OK
Data: "{\"status\":\"ok\"}
"
[2023-11-08 16:22:14.854 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Response status is BadRequest, will not retry
[2023-11-08 16:22:14.854 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Got response ("0c2d8bb"):
Status: BadRequest
Data: "{\"code\":400,\"error\":\"JSON document must contain either recording_msid or recording_mbid, and score top level keys\"}
"
[2023-11-08 16:22:14.884 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:22:14.884 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Got response ("769a30c"):
Status: OK
Data: "{\"status\":\"ok\"}
"
[2023-11-08 16:22:18.083 +00:00] [DBG] [41] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Poison Prince"
[2023-11-08 16:22:18.083 +00:00] [DBG] [41] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
...
[2023-11-08 16:25:50.982 +00:00] [DBG] [44] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Poison Prince"
[2023-11-08 16:25:50.982 +00:00] [DBG] [44] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:26:46.544 +00:00] [DBG] [40] Jellyfin.Api.Controllers.PlaystateController: ReportPlaybackStopped PlaySessionId: ""
[2023-11-08 16:26:46.630 +00:00] [DBG] [38] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Love Love"
[2023-11-08 16:26:46.630 +00:00] [DBG] [38] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:26:46.631 +00:00] [INF] [40] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Finamp" "0.6.18" playing "Poison Prince". Stopped at "272137" ms
[2023-11-08 16:26:46.698 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Poison Prince"
[2023-11-08 16:26:46.698 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:26:46.708 +00:00] [DBG] [38] Jellyfin.Plugin.ListenBrainz: Picking up playback stop event for item "Poison Prince"
[2023-11-08 16:26:46.708 +00:00] [INF] [38] Jellyfin.Plugin.ListenBrainz: MusicBrainz integration is enabled, fetching metadata for track "Poison Prince"
[2023-11-08 16:26:46.709 +00:00] [DBG] [38] Jellyfin.Plugin.ListenBrainz: Sending request ("b2b4601"):
Method: "GET"
URI: https://musicbrainz.org/ws/2/recording?query=tid%3afa15d6c4-bcb1-3b7a-95eb-87a30e54769c&limit=1
Data: "null"
[2023-11-08 16:26:46.801 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Love Love"
[2023-11-08 16:26:46.801 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:26:46.810 +00:00] [DBG] [42] Jellyfin.Plugin.ListenBrainz: Picking up playback start event for item "Love Love"
[2023-11-08 16:26:46.810 +00:00] [INF] [42] Jellyfin.Plugin.ListenBrainz: Checking required metadata and user configuration
[2023-11-08 16:26:46.810 +00:00] [INF] [42] Jellyfin.Plugin.ListenBrainz: All checks passed, sending 'now playing' listen of track "Love Love" for user "tarulia"
[2023-11-08 16:26:46.810 +00:00] [INF] [42] Jellyfin.Plugin.ListenBrainz: MusicBrainz integration is enabled, fetching metadata for track "Love Love"
[2023-11-08 16:26:46.810 +00:00] [DBG] [42] Jellyfin.Plugin.ListenBrainz: Sending request ("313b1ed"):
Method: "GET"
URI: https://musicbrainz.org/ws/2/recording?query=tid%3a9429f1da-db9c-3631-abd6-3af9412aeb9b&limit=1
Data: "null"
[2023-11-08 16:26:46.855 +00:00] [DBG] [45] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:26:46.855 +00:00] [DBG] [45] Jellyfin.Plugin.ListenBrainz: Got response ("b2b4601"):
Status: OK
Data: "{\"created\":\"2023-11-08T16:26:46.837Z\",\"count\":1,\"offset\":0,\"recordings\":[{\"id\":\"95c3e752-dcff-4033-b035-3e8f494c0af3\",\"score\":100,\"title\":\"Poison Prince\",\"length\":272000,\"disambiguation\":\"live, 2010-10-26: HMV Hammersmith Apollo, London, UK\",\"video\":null,\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\",\"aliases\":[{\"sort-name\":\"Amy Mc Donald\",\"type-id\":\"1937e404-b981-3cb7-8151-4c86ebfc8d8e\",\"name\":\"Amy Mc Donald\",\"locale\":null,\"type\":\"Search hint\",\"primary\":null,\"begin-date\":null,\"end-date\":null},{\"sort-name\":\"Macdonald, Amy Elizabeth\",\"type-id\":\"d4dcd0c0-b341-3612-a332-c0ce797b25cf\",\"name\":\"Amy Elizabeth Macdonald\",\"locale\":null,\"type\":\"Legal name\",\"primary\":null,\"begin-date\":null,\"end-date\":null}]}}],\"first-release-date\":\"2010-10-26\",\"releases\":[{\"id\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":3,\"title\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"type-id\":\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Love Love UK & European Tour LIVE 2010\",\"primary-type\":\"Album\",\"secondary-types\":[\"Live\"],\"secondary-type-ids\":[\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"2010-10-26\",\"country\":\"GB\",\"release-events\":[{\"date\":\"2010-10-26\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":19,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"fa15d6c4-bcb1-3b7a-95eb-87a30e54769c\",\"number\":\"2\",\"title\":\"Poison Prince\",\"length\":272000}],\"track-count\":10,\"track-offset\":1}]}]}]}"
[2023-11-08 16:26:46.855 +00:00] [DBG] [38] Jellyfin.Plugin.ListenBrainz: Sending request ("9e07110"):
Method: "POST"
URI: https://api.listenbrainz.org/1/submit-listens
Data: "{\"listen_type\":\"single\",\"payload\":[{\"listened_at\":1699460806,\"track_metadata\":{\"artist_name\":\"Amy Macdonald\",\"track_name\":\"Poison Prince\",\"release_name\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"additional_info\":{\"artist_mbids\":[\"6aa40207-fec8-43a7-991d-b872a42def05\"],\"release_group_mbid\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"release_mbid\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"recording_mbid\":\"95c3e752-dcff-4033-b035-3e8f494c0af3\",\"track_mbid\":\"fa15d6c4-bcb1-3b7a-95eb-87a30e54769c\",\"track_number\":2,\"tags\":[],\"media_player\":\"Jellyfin\",\"submission_client\":\"ListenBrainz plugin for Jellyfin\",\"submission_client_version\":\"3.1.1.0\",\"duration_ms\":272000}}}]}"
[2023-11-08 16:26:46.856 +00:00] [DBG] [38] Jellyfin.Plugin.ListenBrainz: Sending request ("1fd356b"):
Method: "POST"
URI: https://api.listenbrainz.org/1/feedback/recording-feedback
Data: "{\"recording_mbid\":\"95c3e752-dcff-4033-b035-3e8f494c0af3\"}"
[2023-11-08 16:26:46.906 +00:00] [DBG] [45] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:26:46.906 +00:00] [DBG] [45] Jellyfin.Plugin.ListenBrainz: Got response ("313b1ed"):
Status: OK
Data: "{\"created\":\"2023-11-08T16:26:46.894Z\",\"count\":1,\"offset\":0,\"recordings\":[{\"id\":\"01bb795e-8d16-4e0f-b383-f3035ccd932f\",\"score\":100,\"title\":\"Love Love\",\"length\":263000,\"disambiguation\":\"live, 2010-10-26: HMV Hammersmith Apollo, London, UK\",\"video\":null,\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\",\"aliases\":[{\"sort-name\":\"Amy Mc Donald\",\"type-id\":\"1937e404-b981-3cb7-8151-4c86ebfc8d8e\",\"name\":\"Amy Mc Donald\",\"locale\":null,\"type\":\"Search hint\",\"primary\":null,\"begin-date\":null,\"end-date\":null},{\"sort-name\":\"Macdonald, Amy Elizabeth\",\"type-id\":\"d4dcd0c0-b341-3612-a332-c0ce797b25cf\",\"name\":\"Amy Elizabeth Macdonald\",\"locale\":null,\"type\":\"Legal name\",\"primary\":null,\"begin-date\":null,\"end-date\":null}]}}],\"first-release-date\":\"2010-10-26\",\"releases\":[{\"id\":\"72a87f25-c443-4957-9987-1a5d031f3428\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":2,\"title\":\"Greatest Live Hits\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"1d2f9e1d-8ad9-4302-a006-0268479c2bd4\",\"type-id\":\"dd2a21e1-0c00-3729-a7a0-de60b84eb5d1\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Greatest Live Hits\",\"primary-type\":\"Album\",\"secondary-types\":[\"Compilation\",\"Live\"],\"secondary-type-ids\":[\"dd2a21e1-0c00-3729-a7a0-de60b84eb5d1\",\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"\",\"country\":\"GB\",\"release-events\":[{\"date\":\"\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":15,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"d1c31f43-3e8c-4cff-bea2-2482fc54d784\",\"number\":\"8\",\"title\":\"Love Love\",\"length\":263000}],\"track-count\":8,\"track-offset\":7}]},{\"id\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":3,\"title\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"type-id\":\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Love Love UK & European Tour LIVE 2010\",\"primary-type\":\"Album\",\"secondary-types\":[\"Live\"],\"secondary-type-ids\":[\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"2010-10-26\",\"country\":\"GB\",\"release-events\":[{\"date\":\"2010-10-26\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":19,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"9429f1da-db9c-3631-abd6-3af9412aeb9b\",\"number\":\"3\",\"title\":\"Love Love\",\"length\":265000}],\"track-count\":10,\"track-offset\":2}]}]}]}"
[2023-11-08 16:26:46.906 +00:00] [DBG] [42] Jellyfin.Plugin.ListenBrainz: Sending request ("1e80c58"):
Method: "POST"
URI: https://api.listenbrainz.org/1/submit-listens
Data: "{\"listen_type\":\"playing_now\",\"payload\":[{\"track_metadata\":{\"artist_name\":\"Amy Macdonald\",\"track_name\":\"Love Love\",\"release_name\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"additional_info\":{\"artist_mbids\":[\"6aa40207-fec8-43a7-991d-b872a42def05\"],\"release_group_mbid\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"release_mbid\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"recording_mbid\":\"01bb795e-8d16-4e0f-b383-f3035ccd932f\",\"track_mbid\":\"9429f1da-db9c-3631-abd6-3af9412aeb9b\",\"track_number\":3,\"tags\":[],\"media_player\":\"Jellyfin\",\"submission_client\":\"ListenBrainz plugin for Jellyfin\",\"submission_client_version\":\"3.1.1.0\",\"duration_ms\":265000}}}]}"
[2023-11-08 16:26:46.974 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:26:46.974 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Got response ("9e07110"):
Status: OK
Data: "{\"status\":\"ok\"}
"
[2023-11-08 16:26:46.977 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Response status is BadRequest, will not retry
[2023-11-08 16:26:46.977 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Got response ("1fd356b"):
Status: BadRequest
Data: "{\"code\":400,\"error\":\"JSON document must contain either recording_msid or recording_mbid, and score top level keys\"}
"
[2023-11-08 16:26:46.992 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:26:46.992 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Got response ("1e80c58"):
Status: OK
Data: "{\"status\":\"ok\"}
"
[2023-11-08 16:26:49.568 +00:00] [DBG] [18] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Love Love"
[2023-11-08 16:26:49.568 +00:00] [DBG] [18] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
...
[2023-11-08 16:30:17.029 +00:00] [DBG] [48] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Love Love"
[2023-11-08 16:30:17.029 +00:00] [DBG] [48] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:31:11.689 +00:00] [DBG] [48] Jellyfin.Api.Controllers.PlaystateController: ReportPlaybackStopped PlaySessionId: ""
[2023-11-08 16:31:12.293 +00:00] [DBG] [46] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Mr Rock and Roll"
[2023-11-08 16:31:12.293 +00:00] [DBG] [46] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:31:12.370 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Mr Rock and Roll"
[2023-11-08 16:31:12.370 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:31:12.371 +00:00] [INF] [48] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Finamp" "0.6.18" playing "Love Love". Stopped at "265171" ms
[2023-11-08 16:31:12.442 +00:00] [DBG] [48] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Love Love"
[2023-11-08 16:31:12.442 +00:00] [DBG] [48] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:31:12.455 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Picking up playback stop event for item "Love Love"
[2023-11-08 16:31:12.455 +00:00] [INF] [50] Jellyfin.Plugin.ListenBrainz: MusicBrainz integration is enabled, fetching metadata for track "Love Love"
[2023-11-08 16:31:12.455 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Sending request ("bde2740"):
Method: "GET"
URI: https://musicbrainz.org/ws/2/recording?query=tid%3a9429f1da-db9c-3631-abd6-3af9412aeb9b&limit=1
Data: "null"
[2023-11-08 16:31:12.551 +00:00] [DBG] [46] Jellyfin.Plugin.ListenBrainz: Picking up user data save event for item "Mr Rock and Roll"
[2023-11-08 16:31:12.551 +00:00] [DBG] [46] Jellyfin.Plugin.ListenBrainz: Dropping event - alternative mode is disabled
[2023-11-08 16:31:12.560 +00:00] [DBG] [51] Jellyfin.Plugin.ListenBrainz: Picking up playback start event for item "Mr Rock and Roll"
[2023-11-08 16:31:12.560 +00:00] [INF] [51] Jellyfin.Plugin.ListenBrainz: Checking required metadata and user configuration
[2023-11-08 16:31:12.560 +00:00] [INF] [51] Jellyfin.Plugin.ListenBrainz: All checks passed, sending 'now playing' listen of track "Mr Rock and Roll" for user "tarulia"
[2023-11-08 16:31:12.560 +00:00] [INF] [51] Jellyfin.Plugin.ListenBrainz: MusicBrainz integration is enabled, fetching metadata for track "Mr Rock and Roll"
[2023-11-08 16:31:12.560 +00:00] [DBG] [51] Jellyfin.Plugin.ListenBrainz: Sending request ("49c65d2"):
Method: "GET"
URI: https://musicbrainz.org/ws/2/recording?query=tid%3a34aaec8c-57d5-3cff-8652-22b62b77544c&limit=1
Data: "null"
[2023-11-08 16:31:12.621 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:31:12.621 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Got response ("bde2740"):
Status: OK
Data: "{\"created\":\"2023-11-08T16:26:46.894Z\",\"count\":1,\"offset\":0,\"recordings\":[{\"id\":\"01bb795e-8d16-4e0f-b383-f3035ccd932f\",\"score\":100,\"title\":\"Love Love\",\"length\":263000,\"disambiguation\":\"live, 2010-10-26: HMV Hammersmith Apollo, London, UK\",\"video\":null,\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\",\"aliases\":[{\"sort-name\":\"Amy Mc Donald\",\"type-id\":\"1937e404-b981-3cb7-8151-4c86ebfc8d8e\",\"name\":\"Amy Mc Donald\",\"locale\":null,\"type\":\"Search hint\",\"primary\":null,\"begin-date\":null,\"end-date\":null},{\"sort-name\":\"Macdonald, Amy Elizabeth\",\"type-id\":\"d4dcd0c0-b341-3612-a332-c0ce797b25cf\",\"name\":\"Amy Elizabeth Macdonald\",\"locale\":null,\"type\":\"Legal name\",\"primary\":null,\"begin-date\":null,\"end-date\":null}]}}],\"first-release-date\":\"2010-10-26\",\"releases\":[{\"id\":\"72a87f25-c443-4957-9987-1a5d031f3428\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":2,\"title\":\"Greatest Live Hits\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"1d2f9e1d-8ad9-4302-a006-0268479c2bd4\",\"type-id\":\"dd2a21e1-0c00-3729-a7a0-de60b84eb5d1\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Greatest Live Hits\",\"primary-type\":\"Album\",\"secondary-types\":[\"Compilation\",\"Live\"],\"secondary-type-ids\":[\"dd2a21e1-0c00-3729-a7a0-de60b84eb5d1\",\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"\",\"country\":\"GB\",\"release-events\":[{\"date\":\"\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":15,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"d1c31f43-3e8c-4cff-bea2-2482fc54d784\",\"number\":\"8\",\"title\":\"Love Love\",\"length\":263000}],\"track-count\":8,\"track-offset\":7}]},{\"id\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":3,\"title\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"type-id\":\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Love Love UK & European Tour LIVE 2010\",\"primary-type\":\"Album\",\"secondary-types\":[\"Live\"],\"secondary-type-ids\":[\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"2010-10-26\",\"country\":\"GB\",\"release-events\":[{\"date\":\"2010-10-26\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":19,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"9429f1da-db9c-3631-abd6-3af9412aeb9b\",\"number\":\"3\",\"title\":\"Love Love\",\"length\":265000}],\"track-count\":10,\"track-offset\":2}]}]}]}"
[2023-11-08 16:31:12.622 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Sending request ("b9eb67d"):
Method: "POST"
URI: https://api.listenbrainz.org/1/submit-listens
Data: "{\"listen_type\":\"single\",\"payload\":[{\"listened_at\":1699461072,\"track_metadata\":{\"artist_name\":\"Amy Macdonald\",\"track_name\":\"Love Love\",\"release_name\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"additional_info\":{\"artist_mbids\":[\"6aa40207-fec8-43a7-991d-b872a42def05\"],\"release_group_mbid\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"release_mbid\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"recording_mbid\":\"01bb795e-8d16-4e0f-b383-f3035ccd932f\",\"track_mbid\":\"9429f1da-db9c-3631-abd6-3af9412aeb9b\",\"track_number\":3,\"tags\":[],\"media_player\":\"Jellyfin\",\"submission_client\":\"ListenBrainz plugin for Jellyfin\",\"submission_client_version\":\"3.1.1.0\",\"duration_ms\":265000}}}]}"
[2023-11-08 16:31:12.622 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Sending request ("2aaab9f"):
Method: "POST"
URI: https://api.listenbrainz.org/1/feedback/recording-feedback
Data: "{\"recording_mbid\":\"01bb795e-8d16-4e0f-b383-f3035ccd932f\"}"
[2023-11-08 16:31:12.667 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:31:12.667 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Got response ("49c65d2"):
Status: OK
Data: "{\"created\":\"2023-11-08T16:31:12.659Z\",\"count\":1,\"offset\":0,\"recordings\":[{\"id\":\"72c6f52f-adad-44e4-a04f-b56d0acd14ae\",\"score\":100,\"title\":\"Mr Rock and Roll\",\"length\":319000,\"disambiguation\":\"live, 2010-10-26: HMV Hammersmith Apollo, London, UK\",\"video\":null,\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\",\"aliases\":[{\"sort-name\":\"Amy Mc Donald\",\"type-id\":\"1937e404-b981-3cb7-8151-4c86ebfc8d8e\",\"name\":\"Amy Mc Donald\",\"locale\":null,\"type\":\"Search hint\",\"primary\":null,\"begin-date\":null,\"end-date\":null},{\"sort-name\":\"Macdonald, Amy Elizabeth\",\"type-id\":\"d4dcd0c0-b341-3612-a332-c0ce797b25cf\",\"name\":\"Amy Elizabeth Macdonald\",\"locale\":null,\"type\":\"Legal name\",\"primary\":null,\"begin-date\":null,\"end-date\":null}]}}],\"first-release-date\":\"2010-10-26\",\"releases\":[{\"id\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"status-id\":\"4e304316-386d-3409-af2e-78857eec5cfe\",\"count\":3,\"title\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"status\":\"Official\",\"artist-credit\":[{\"name\":\"Amy Macdonald\",\"artist\":{\"id\":\"6aa40207-fec8-43a7-991d-b872a42def05\",\"name\":\"Amy Macdonald\",\"sort-name\":\"Macdonald, Amy\",\"disambiguation\":\"Scottish singer/songwriter\"}}],\"release-group\":{\"id\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"type-id\":\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\",\"primary-type-id\":\"f529b476-6e62-324f-b0aa-1f3e33d313fc\",\"title\":\"Love Love UK & European Tour LIVE 2010\",\"primary-type\":\"Album\",\"secondary-types\":[\"Live\"],\"secondary-type-ids\":[\"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0\"]},\"date\":\"2010-10-26\",\"country\":\"GB\",\"release-events\":[{\"date\":\"2010-10-26\",\"area\":{\"id\":\"8a754a16-0027-3a29-b6d7-2b40ea0481ed\",\"name\":\"United Kingdom\",\"sort-name\":\"United Kingdom\",\"iso-3166-1-codes\":[\"GB\"]}}],\"track-count\":19,\"media\":[{\"position\":1,\"format\":\"CD\",\"track\":[{\"id\":\"34aaec8c-57d5-3cff-8652-22b62b77544c\",\"number\":\"4\",\"title\":\"Mr Rock and Roll\",\"length\":319000}],\"track-count\":10,\"track-offset\":3}]}]}]}"
[2023-11-08 16:31:12.667 +00:00] [DBG] [51] Jellyfin.Plugin.ListenBrainz: Sending request ("87e33df"):
Method: "POST"
URI: https://api.listenbrainz.org/1/submit-listens
Data: "{\"listen_type\":\"playing_now\",\"payload\":[{\"track_metadata\":{\"artist_name\":\"Amy Macdonald\",\"track_name\":\"Mr Rock and Roll\",\"release_name\":\"Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith\",\"additional_info\":{\"artist_mbids\":[\"6aa40207-fec8-43a7-991d-b872a42def05\"],\"release_group_mbid\":\"ebb692e3-d569-4c3e-9fd3-4a42a89c9022\",\"release_mbid\":\"c3a103d6-6c60-4339-a353-0175b6a65b4f\",\"recording_mbid\":\"72c6f52f-adad-44e4-a04f-b56d0acd14ae\",\"track_mbid\":\"34aaec8c-57d5-3cff-8652-22b62b77544c\",\"track_number\":4,\"tags\":[],\"media_player\":\"Jellyfin\",\"submission_client\":\"ListenBrainz plugin for Jellyfin\",\"submission_client_version\":\"3.1.1.0\",\"duration_ms\":319000}}}]}"
[2023-11-08 16:31:12.729 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:31:12.729 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Got response ("b9eb67d"):
Status: OK
Data: "{\"status\":\"ok\"}
"
[2023-11-08 16:31:12.742 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Response status is BadRequest, will not retry
[2023-11-08 16:31:12.742 +00:00] [DBG] [50] Jellyfin.Plugin.ListenBrainz: Got response ("2aaab9f"):
Status: BadRequest
Data: "{\"code\":400,\"error\":\"JSON document must contain either recording_msid or recording_mbid, and score top level keys\"}
"
[2023-11-08 16:31:12.758 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Response status is OK, will not retry
[2023-11-08 16:31:12.758 +00:00] [DBG] [23] Jellyfin.Plugin.ListenBrainz: Got response ("87e33df"):
Status: OK
Data: "{\"status\":\"ok\"}
"

ListenBrainz Data for comparison:

{
  "track_metadata": {
    "track_name": "Ordinary Life",
    "artist_name": "Amy Macdonald",
    "release_name": "Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith",
    "additional_info": {
      "tags": [],
      "track_mbid": "63b00787-90e3-3c87-bcc4-fd21b84dfa69",
      "duration_ms": 274000,
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "media_player": "Jellyfin",
      "release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f",
      "track_number": 1,
      "recording_mbid": "725dec27-0adb-455c-a8dc-15d6ffccb4a9",
      "submission_client": "ListenBrainz plugin for Jellyfin",
      "release_group_mbid": "ebb692e3-d569-4c3e-9fd3-4a42a89c9022",
      "submission_client_version": "3.1.1.0",
      "recording_msid": "6ba57367-e845-42a5-92ad-511a427a5cee"
    },
    "mbid_mapping": {
      "recording_mbid": "725dec27-0adb-455c-a8dc-15d6ffccb4a9",
      "recording_name": "Ordinary Life",
      "release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f",
      "artists": [
        {
          "artist_mbid": "6aa40207-fec8-43a7-991d-b872a42def05",
          "artist_credit_name": "Amy Macdonald",
          "join_phrase": ""
        }
      ],
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "caa_id": 16801886943,
      "caa_release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f"
    }
  },
  "listened_at": 1699460534,
  "recording_msid": "6ba57367-e845-42a5-92ad-511a427a5cee",
  "user_name": "Mihawk90",
  "inserted_at": 1699460551
}
{
  "track_metadata": {
    "track_name": "Poison Prince",
    "artist_name": "Amy Macdonald",
    "release_name": "Love Love UK & European Arena Tour LIVE 2010: 26.10.2010 HMV Apollo Hammersmith",
    "additional_info": {
      "tags": [],
      "track_mbid": "fa15d6c4-bcb1-3b7a-95eb-87a30e54769c",
      "duration_ms": 272000,
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "media_player": "Jellyfin",
      "release_mbid": "c3a103d6-6c60-4339-a353-0175b6a65b4f",
      "track_number": 2,
      "recording_mbid": "95c3e752-dcff-4033-b035-3e8f494c0af3",
      "submission_client": "ListenBrainz plugin for Jellyfin",
      "release_group_mbid": "ebb692e3-d569-4c3e-9fd3-4a42a89c9022",
      "submission_client_version": "3.1.1.0",
      "recording_msid": "ee14bedb-7249-437d-877c-d2ee8b58f988"
    },
    "mbid_mapping": {
      "recording_mbid": "95c3e752-dcff-4033-b035-3e8f494c0af3",
      "recording_name": "Poison Prince",
      "release_mbid": "1c6c1d7b-2a0d-392b-b6c7-42bf0781ac2e",
      "artists": [
        {
          "artist_mbid": "6aa40207-fec8-43a7-991d-b872a42def05",
          "artist_credit_name": "Amy Macdonald",
          "join_phrase": ""
        }
      ],
      "artist_mbids": [
        "6aa40207-fec8-43a7-991d-b872a42def05"
      ],
      "caa_id": 2116242908,
      "caa_release_mbid": "25cfed81-0e8f-3a31-aa11-756406e0b890"
    }
  },
  "listened_at": 1699460806,
  "recording_msid": "ee14bedb-7249-437d-877c-d2ee8b58f988",
  "user_name": "Mihawk90",
  "inserted_at": 1699460818
}

So, same result as the original report.

What sticks out in the logs though:

[2023-11-08 16:22:14.854 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Response status is BadRequest, will not retry
[2023-11-08 16:22:14.854 +00:00] [DBG] [26] Jellyfin.Plugin.ListenBrainz: Got response ("0c2d8bb"):
Status: BadRequest
Data: "{\"code\":400,\"error\":\"JSON document must contain either recording_msid or recording_mbid, and score top level keys\"}
"
...
[2023-11-08 16:26:46.977 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Response status is BadRequest, will not retry
[2023-11-08 16:26:46.977 +00:00] [DBG] [40] Jellyfin.Plugin.ListenBrainz: Got response ("1fd356b"):
Status: BadRequest
Data: "{\"code\":400,\"error\":\"JSON document must contain either recording_msid or recording_mbid, and score top level keys\"}
"

So if I'm interpreting this right the MBIDs shouldn't be in the additional_info object but rather the top-level track_metadata?

AFAIK LB is currently only using the submitted recording MBID for the mapping and not considering the release MBID.

Seems to be the case, I just looked at the API docs:

Currently the release argument for a listen is not used, but we plan to support in the near future, so we encourage you to start sending release information if you have it.

Still begs the question whether this format is correct though. Actually, the submitted JSON seems correct according to the Docs. So the question is why it's still throwing a BadRequest.

mihawk90 commented 1 year ago

Checking the Jira it seems this is relevant:

LB-1263

But it's not exactly the same. The responses are talking about different releases in the same release group, however in my case the releases aren't even in the same group. Now the linked PR metabrainz/listenbrainz-server#2464 was merged back in May so I'd expect it to be live, but I can't find version info on the website.

LB-1116 and LB-1330 also seem relevant.

MonkeyDo commented 1 year ago

This is definitely a ListenBrainz issue, thanks for the report @mihawk90 !

I think you can close the issue here, and let's continue the discussion on https://tickets.metabrainz.org/browse/LB-1263

mihawk90 commented 1 year ago

I'll leave the closing up to the Repo owner, if nothing else just to list it as a "known issue" or similar so people won't open duplicate reports :)

lyarenei commented 1 year ago

Actually, the submitted JSON seems correct according to the Docs. So the question is why it's still throwing a BadRequest.

@mihawk90 The BadRequests are for feedback sync requests and the JSON serializer was dropping the score field as it was set to 0 and it was configured to drop default values. Fix should be available shortly in plugin version 3.1.2.0.

As for the issue with the release IDs I'll close the issue and pin it for visibility. Thank you.