chore: added debug possibilities

This commit is contained in:
2025-04-20 13:04:01 +02:00
parent 90d81d2178
commit 4330994b32
3 changed files with 26 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ export class DomTidalController implements TidalController<DomControllerOptions>
globalThis.location.href.includes("/playlist/") ||
globalThis.location.href.includes("/mix/")
) {
if (this.getCurrentlyPlayingStatus() === MediaStatus.playing) {
if (this.currentlyPlaying === MediaStatus.playing) {
// find the currently playing element from the list (which might be in an album icon), traverse back up to the mediaItem (row) and select the album cell.
// document.querySelector("[class^='isPlayingIcon'], [data-test-is-playing='true']").closest('[data-type="mediaItem"]').querySelector('[class^="album"]').textContent
const row = window.document.querySelector(this.currentlyPlaying).closest(this.mediaItem);