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

close ffmpeg more gracefully

This commit is contained in:
Luke Pulverenti 2014-06-20 00:50:30 -04:00
parent d39aecd4a5
commit 14042a1ff3
10 changed files with 13 additions and 121 deletions

View file

@ -515,9 +515,12 @@
options.shape = 'banner';
options.coverImage = true;
}
else {
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 0.6666667) < .2) {
options.shape = 'portrait';
}
else {
options.shape = options.defaultShape || 'portrait';
}
}
for (var i = 0, length = items.length; i < length; i++) {