mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
@@ -334,7 +334,7 @@ const observeTrackChanges = (): void => {
|
|||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
const currentTrackId = PlayState.playbackContext?.actualProductId;
|
const currentTrackId = PlayState.playbackContext?.actualProductId;
|
||||||
if (currentTrackId && currentTrackId !== lastTrackId) {
|
if (currentTrackId && currentTrackId !== lastTrackId) {
|
||||||
trace.msg.log(`Track changed: ${lastTrackId} -> ${currentTrackId}`);
|
//trace.msg.log(`Track changed: ${lastTrackId} -> ${currentTrackId}`);
|
||||||
lastTrackId = currentTrackId;
|
lastTrackId = currentTrackId;
|
||||||
// delay for cover art to load (to prevent flickering)
|
// delay for cover art to load (to prevent flickering)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user