mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-29 12:57:50 +00:00 
			
		
		
		
	Fix: get current song only on song change
This commit is contained in:
		| @@ -1055,7 +1055,8 @@ function parseState(obj) { | ||||
|     setCounter(obj.data.currentSongId, obj.data.totalTime, obj.data.elapsedTime); | ||||
|      | ||||
|     //Get current song | ||||
|     sendAPI({"cmd": "MPD_API_PLAYER_CURRENT_SONG"}, songChange); | ||||
|     if (lastState && lastState.data.currentSongId != obj.data.currentSongId) | ||||
|         sendAPI({"cmd": "MPD_API_PLAYER_CURRENT_SONG"}, songChange); | ||||
|     //clear playback card if not playing | ||||
|     if (obj.data.songPos == '-1') { | ||||
|         domCache.currentTrack.innerText = 'Not playing'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation