mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #887 - Support ttml subtitle output
This commit is contained in:
parent
90c301e86f
commit
bc12a6457d
2 changed files with 28 additions and 4 deletions
|
@ -657,6 +657,33 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if (item.AlbumId && item.AlbumPrimaryImageTag) {
|
||||||
|
|
||||||
|
imgUrl = ApiClient.getScaledImageUrl(item.AlbumId, {
|
||||||
|
type: "Primary",
|
||||||
|
width: 80,
|
||||||
|
tag: item.AlbumPrimaryImageTag
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (item.AlbumId && item.SeriesPrimaryImageTag) {
|
||||||
|
|
||||||
|
imgUrl = ApiClient.getScaledImageUrl(item.SeriesId, {
|
||||||
|
type: "Primary",
|
||||||
|
width: 80,
|
||||||
|
tag: item.SeriesPrimaryImageTag
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (item.ParentPrimaryImageTag) {
|
||||||
|
|
||||||
|
imgUrl = ApiClient.getImageUrl(item.ParentPrimaryImageItemId, {
|
||||||
|
type: "Primary",
|
||||||
|
width: 80,
|
||||||
|
tag: item.ParentPrimaryImageTag
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (imgUrl) {
|
if (imgUrl) {
|
||||||
|
|
||||||
if (index < 10) {
|
if (index < 10) {
|
||||||
|
|
|
@ -233,10 +233,7 @@
|
||||||
|
|
||||||
supportsPlaylists: function (item) {
|
supportsPlaylists: function (item) {
|
||||||
|
|
||||||
if (item.Type == 'Playlist') {
|
return item.SupportsPlaylists;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return item.MediaType == "Audio" || item.MediaType == "Video" || item.Type == "MusicAlbum" || item.Type == "MusicArtist" || item.Type == "MusicGenre" || item.Type == "Series" || item.Type == "Season";
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue