Skip to content

Commit

Permalink
fix(Spotify Podcasts): play/pause check fixed (PreMiD#6706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark_Ville authored Aug 31, 2022
1 parent ddec5bb commit 3855958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion websites/S/Spotify Podcasts/dist/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"support.spotify.com",
"podcasters.spotify.com"
],
"version": "2.2.10",
"version": "2.2.11",
"logo": "https://i.imgur.com/q3tKDRA.png",
"thumbnail": "https://i.imgur.com/AzNhQ4j.png",
"color": "#1ed760",
Expand Down
7 changes: 3 additions & 4 deletions websites/S/Spotify Podcasts/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,9 @@ presence.on("UpdateData", async () => {
let pause: boolean;

if (
(
document.querySelector("div.player-controls__buttons")
.children[1] as HTMLButtonElement
).dataset.testid === "control-button-play"
document
.querySelector("div.player-controls__buttons")
?.children[1]?.getAttribute("aria-label") === "Play"
)
pause = true;
else pause = false;
Expand Down

0 comments on commit 3855958

Please sign in to comment.