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