mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
ESLint fixes
This commit is contained in:
parent
196fa0d7c6
commit
4f6dea432d
1 changed files with 9 additions and 11 deletions
|
@ -237,17 +237,15 @@ export default function (view) {
|
|||
currentItem = state.NowPlayingItem;
|
||||
|
||||
// set the song title, artist name, album name, and album primary image
|
||||
document.getElementById('songTitle').textContent = currentItem.Name || "Unknown Title";
|
||||
document.getElementById('artistName').textContent = currentItem.Artists?.join(", ") || "Unknown Artist";
|
||||
document.getElementById('albumName').textContent = currentItem.Album || "Unknown Album";
|
||||
const albumArtUrl = currentItem.ImageTags?.Primary
|
||||
? ServerConnections.getApiClient(currentItem.ServerId).getImageUrl(currentItem.Id, {
|
||||
type: 'Primary',
|
||||
maxWidth: 300,
|
||||
maxHeight: 300,
|
||||
})
|
||||
: "assets/img/avatar.png";
|
||||
|
||||
document.getElementById('songTitle').textContent = currentItem.Name || 'Unknown Title';
|
||||
document.getElementById('artistName').textContent = currentItem.Artists?.join(', ') || 'Unknown Artist';
|
||||
document.getElementById('albumName').textContent = currentItem.Album || 'Unknown Album';
|
||||
const albumArtUrl = currentItem.ImageTags?.Primary ? ServerConnections.getApiClient(currentItem.ServerId).getImageUrl(currentItem.Id, {
|
||||
type: 'Primary',
|
||||
maxWidth: 300,
|
||||
maxHeight: 300
|
||||
}) : 'assets/img/avatar.png';
|
||||
|
||||
document.getElementById('albumArt').src = albumArtUrl;
|
||||
|
||||
const serverId = state.NowPlayingItem.ServerId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue