mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added error handling to image tag generation
This commit is contained in:
parent
8062c8c011
commit
a6ae6b7c2d
5 changed files with 50 additions and 26 deletions
|
@ -165,6 +165,30 @@
|
|||
$('#fldMusicBrainzReleaseGroupId', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Person" || item.Type == "Genre" || item.Type == "Studio" || item.Type == "GameGenre" || item.Type == "MusicGenre") {
|
||||
$('#fldCommunityRating', page).hide();
|
||||
$('#fldOfficialRating', page).hide();
|
||||
$('#fldCustomRating', page).hide();
|
||||
$('#genresCollapsible', page).hide();
|
||||
$('#studiosCollapsible', page).hide();
|
||||
} else {
|
||||
$('#fldCommunityRating', page).show();
|
||||
$('#fldOfficialRating', page).show();
|
||||
$('#fldCustomRating', page).show();
|
||||
$('#genresCollapsible', page).show();
|
||||
$('#studiosCollapsible', page).show();
|
||||
}
|
||||
|
||||
if (item.Type == "Person") {
|
||||
$('#lblPremiereDate', page).html('Date of birth');
|
||||
$('#lblYear', page).html('Birth year');
|
||||
$('#lblEndDate', page).html('Death date');
|
||||
} else {
|
||||
$('#lblPremiereDate', page).html('Release date');
|
||||
$('#lblYear', page).html('Year');
|
||||
$('#lblEndDate', page).html('End date');
|
||||
}
|
||||
|
||||
if (item.MediaType == "Video") {
|
||||
$('#fldOriginalAspectRatio', page).show();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue