mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 21:42:46 +01:00
revert last change
This commit is contained in:
parent
5e952e3899
commit
81a536bbdb
@ -277,30 +277,30 @@ setInterval(function () {
|
|||||||
currentSong = songDashArtistTitle;
|
currentSong = songDashArtistTitle;
|
||||||
currentPlayStatus = currentStatus;
|
currentPlayStatus = currentStatus;
|
||||||
|
|
||||||
|
// check progress bar value and make sure current stays up to date after switch
|
||||||
|
if(barvalue != barval) {
|
||||||
|
barvalue = barval;
|
||||||
|
oldcurrent = options.current;
|
||||||
|
updatecurrent = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(updatecurrent) {
|
||||||
|
if(options.current == oldcurrent && currentStatus != "paused") return;
|
||||||
|
oldcurrent = options.current;
|
||||||
|
updatecurrent = false;
|
||||||
|
}
|
||||||
|
|
||||||
// make sure current is set to 0 if title changes
|
// make sure current is set to 0 if title changes
|
||||||
if (titleOrArtistChanged) {
|
if(titleOrArtistChanged) {
|
||||||
options.current = "0:00";
|
options.current = "0:00";
|
||||||
oldcurrent = options.current;
|
oldcurrent = options.current;
|
||||||
barvalue = barval;
|
barvalue = barval;
|
||||||
} else {
|
}
|
||||||
// check progress bar value and make sure current stays up to date after switch
|
|
||||||
if (barvalue != barval) {
|
|
||||||
barvalue = barval;
|
|
||||||
oldcurrent = options.current;
|
|
||||||
updatecurrent = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (updatecurrent) {
|
if(durationChanged) {
|
||||||
if (options.current == oldcurrent && currentStatus != "paused") return;
|
options.duration = duration;
|
||||||
oldcurrent = options.current;
|
options.current = current;
|
||||||
updatecurrent = false;
|
sduration = duration;
|
||||||
}
|
|
||||||
|
|
||||||
if (durationChanged) {
|
|
||||||
options.duration = duration;
|
|
||||||
options.current = current;
|
|
||||||
sduration = duration;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const image = elements.getSongIcon();
|
const image = elements.getSongIcon();
|
||||||
|
Loading…
Reference in New Issue
Block a user