Skip to content

Commit

Permalink
chore(Deezer): refactor (PreMiD#7734)
Browse files Browse the repository at this point in the history
chore: update assets

Signed-off-by: SeMiD <[email protected]>
  • Loading branch information
SeMiD authored Nov 9, 2023
1 parent 70d8fa4 commit a348fa1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
9 changes: 6 additions & 3 deletions websites/D/Deezer/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@
"ga_IE": "Éifeall na ceimhniú a thágthóg, uair éirinn."
},
"url": "www.deezer.com",
"version": "2.3.0",
"version": "2.3.1",
"logo": "https://cdn.rcd.gg/PreMiD/websites/D/Deezer/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/D/Deezer/assets/thumbnail.png",
"color": "#A31D7C",
"category": "music",
"tags": ["radio", "music"],
"tags": [
"radio",
"music"
],
"settings": [
{
"id": "lang",
Expand All @@ -53,4 +56,4 @@
"value": false
}
]
}
}
14 changes: 6 additions & 8 deletions websites/D/Deezer/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,13 @@ presence.on("UpdateData", async () => {
artistLink = document
.querySelector('[data-testid="item_subtitle"] > a')
?.getAttribute("href"),
currentTime = document.querySelector(
'[data-testid="elapsed_time"]'
).textContent,
duration = document.querySelector(
'[data-testid="remaining_time"]'
).textContent,
timestamps = presence.getTimestamps(
presence.timestampFromFormat(currentTime),
presence.timestampFromFormat(duration)
presence.timestampFromFormat(
document.querySelector('[data-testid="elapsed_time"]').textContent
),
presence.timestampFromFormat(
document.querySelector('[data-testid="remaining_time"]').textContent
)
);

if (document.querySelector('[data-testid="play_button_play"]')) paused = true;
Expand Down

0 comments on commit a348fa1

Please sign in to comment.