Fix artwork fetching on metadata updates

Problem

When playing or switching tracks on YouTube Music, the correct artwork briefly appears and is then replaced by a blank placeholder image.

Cause

The mpris/metadata callback receives the metadata object as message.
The metadata object is then stored in payload.metadata.
However, payload is passed to fetchPlayerArtwork() instead of payload.metadata, so the function cannot access the artwork property on the metadata object.

Fix

Pass payload.metadata to fetchPlayerArtwork() instead of payload.

Testing

Tested with:

  • Google Chrome 153.0.8010.36 / YouTube Music
  • Mozilla Firefox 155.0.1 / YouTube Music
  • Plasma 6.7.5

Confirmed the issue in both browsers before the change and verified that it no longer occurs after the change.

BUG: 514788

Merge request reports

Loading
Loading