Skip to content

Commit

Permalink
Fix deezer connector
Browse files Browse the repository at this point in the history
Apply a track version to a track title.

Fixes #2203.
  • Loading branch information
alexesprit committed Dec 14, 2019
1 parent 1093ed9 commit 5eab310
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/connectors/deezer-dom-inject.js
Expand Up @@ -36,9 +36,15 @@ function getTrackInfo() {
const player = window.dzPlayer;
const item = player.getCurrentSong();

let trackTitle = item.SNG_TITLE;
const trackVersion = item.VERSION;
if (trackVersion) {
trackTitle = `${trackTitle} ${trackVersion}`;
}

return {
artist: item.ART_NAME,
track: item.SNG_TITLE,
track: trackTitle,
album: item.ALB_TITLE,
duration: player.getDuration(),
currentTime: player.getPosition(),
Expand Down

0 comments on commit 5eab310

Please sign in to comment.