mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve poster sizing
This commit is contained in:
parent
48ea645cf9
commit
cd1e583fa7
58 changed files with 931 additions and 549 deletions
|
@ -399,10 +399,7 @@
|
|||
|
||||
translateItemsForPlayback(options.items).done(function (items) {
|
||||
|
||||
self.playInternal(items[0], options.startPositionTicks, user);
|
||||
|
||||
self.playlist = items;
|
||||
currentPlaylistIndex = 0;
|
||||
self.playWithIntros(items, options, user);
|
||||
});
|
||||
|
||||
} else {
|
||||
|
@ -415,10 +412,7 @@
|
|||
|
||||
translateItemsForPlayback(result.Items).done(function (items) {
|
||||
|
||||
self.playInternal(items[0], options.startPositionTicks, user);
|
||||
|
||||
self.playlist = items;
|
||||
currentPlaylistIndex = 0;
|
||||
self.playWithIntros(items, options, user);
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -428,6 +422,27 @@
|
|||
|
||||
};
|
||||
|
||||
self.playWithIntros = function (items, options, user) {
|
||||
|
||||
var firstItem = items[0];
|
||||
|
||||
if (options.startPositionTicks || firstItem.MediaType !== 'Video' || !self.canAutoPlayVideo()) {
|
||||
self.playInternal(firstItem, options.startPositionTicks, user);
|
||||
|
||||
self.playlist = items;
|
||||
currentPlaylistIndex = 0;
|
||||
}
|
||||
|
||||
ApiClient.getJSON(ApiClient.getUrl('Users/' + user.Id + '/Items/' + firstItem.Id + '/Intros')).done(function (intros) {
|
||||
|
||||
items = intros.Items.concat(items);
|
||||
self.playInternal(items[0], options.startPositionTicks, user);
|
||||
|
||||
self.playlist = items;
|
||||
currentPlaylistIndex = 0;
|
||||
});
|
||||
};
|
||||
|
||||
self.getBitrateSetting = function () {
|
||||
return parseInt(store.getItem('preferredVideoBitrate') || '') || 1500000;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue