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

fix sync container statuses

This commit is contained in:
Luke Pulverenti 2016-08-26 13:24:04 -04:00
parent f4473116d1
commit c32aa0dab1
23 changed files with 139 additions and 110 deletions

View file

@ -679,7 +679,8 @@ var Dashboard = {
if (setQuality) {
var quality = 90;
if ((options.type || '').toLowerCase() == 'backdrop') {
var isBackdrop = (options.type || '').toLowerCase() == 'backdrop';
if (isBackdrop) {
quality -= 10;
}
@ -687,15 +688,9 @@ var Dashboard = {
quality -= 40;
}
if (AppInfo.hasLowImageBandwidth) {
if (AppInfo.hasLowImageBandwidth && !isBackdrop) {
// The native app can handle a little bit more than safari
if (AppInfo.isNativeApp) {
quality -= 10;
} else {
quality -= 20;
}
quality -= 10;
}
options.quality = quality;
}
@ -2806,7 +2801,9 @@ var AppInfo = {};
}).then(function (reg) {
// https://github.com/WICG/BackgroundSync/blob/master/explainer.md
return reg.sync.register('emby-sync');
return reg.sync.register('emby-sync').then(function() {
window.SyncRegistered = Dashboard.isConnectMode();
});
});
} catch (err) {