1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixed image uploading for virtual items

This commit is contained in:
Luke Pulverenti 2013-05-18 13:07:20 -04:00
parent fad47c6a3b
commit c73b7385b4
13 changed files with 52 additions and 2 deletions

View file

@ -294,8 +294,8 @@
var html = item.Status == 'Ended' ? 'Aired' : 'Airs';
if (item.AirDays.length) {
html += ' ' + item.AirDays.map(function (a) {
if (item.AirDays && item.AirDays.length) {
html += item.AirDays.length == 7 ? 'daily' : ' ' + item.AirDays.map(function (a) {
return a + "s";
}).join(',');
@ -759,6 +759,10 @@
html += '<p>' + cast.Name + '</p>';
var role = cast.Role ? "as " + cast.Role : cast.Type;
if (role == "GuestStar") {
role = "Guest star";
}
html += '<p>' + (role || "") + '</p>';