mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add check to get albumlufs only for music
This commit is contained in:
parent
f09dec63cd
commit
c47c1cacb2
1 changed files with 7 additions and 3 deletions
|
@ -2723,10 +2723,14 @@ class PlaybackManager {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return apiClient.getItem(apiClient.getCurrentUserId(), item.AlbumId).then(function(result) {
|
if (item.AlbumId != null) {
|
||||||
mediaSource.albumLUFS = result.LUFS;
|
return apiClient.getItem(apiClient.getCurrentUserId(), item.AlbumId).then(function(result) {
|
||||||
|
mediaSource.albumLUFS = result.LUFS;
|
||||||
|
return mediaSource;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
return mediaSource;
|
return mediaSource;
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
showPlaybackInfoErrorMessage(self, 'PlaybackErrorNoCompatibleStream');
|
showPlaybackInfoErrorMessage(self, 'PlaybackErrorNoCompatibleStream');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue