mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-04-08 06:12:44 +02:00
incorporated next into this branch
This commit is contained in:
parent
f553fe98e7
commit
c975ecb16b
@ -30,7 +30,7 @@ export class DomTidalController implements TidalController<DomControllerOptions>
|
||||
media: '*[data-test="current-media-imagery"]',
|
||||
image: "img",
|
||||
current: '*[data-test="current-time"]',
|
||||
duration: '*[class^=playbackControlsContainer] *[data-test="duration"]',
|
||||
duration: '*[class^=_playbackControlsContainer] *[data-test="duration"]',
|
||||
bar: '*[data-test="progress-bar"]',
|
||||
footer: "#footerPlayer",
|
||||
mediaItem: "[data-type='mediaItem']",
|
||||
@ -47,7 +47,7 @@ export class DomTidalController implements TidalController<DomControllerOptions>
|
||||
* @param {*} key key in elements object to fetch
|
||||
*/
|
||||
get: function (key: string) {
|
||||
return globalThis.document.querySelector(this[key.toLowerCase()]);
|
||||
return globalThis.document.querySelector(this[key.toLowerCase()]) ?? "";
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -29,9 +29,9 @@ export const getEmptyMediaInfo = () => {
|
||||
playingFrom: "",
|
||||
status: MediaStatus.playing,
|
||||
url: "",
|
||||
current: "",
|
||||
current: "00:00",
|
||||
currentInSeconds: 100,
|
||||
duration: "",
|
||||
duration: "00:00",
|
||||
durationInSeconds: 100,
|
||||
image: "",
|
||||
icon: "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user