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

unify appSettings

This commit is contained in:
Luke Pulverenti 2016-03-01 01:02:03 -05:00
parent 5466e3660a
commit 87e23915c8
21 changed files with 208 additions and 408 deletions

View file

@ -15,12 +15,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.11",
"_release": "1.1.11",
"version": "1.1.12",
"_release": "1.1.12",
"_resolution": {
"type": "version",
"tag": "1.1.11",
"commit": "6ce06fe70a6ae8cdc7c54db290fe192d4cf9656d"
"tag": "1.1.12",
"commit": "780eab96948c0418dd4e0e158569c4b8873708d6"
},
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.1.5",

View file

@ -35,6 +35,47 @@ define(['appStorage'], function (appStorage) {
return parseInt(get('preferredVideoBitrate') || '') || 1500000;
},
maxChromecastBitrate: function (val) {
if (val != null) {
set('chromecastBitrate1', val);
}
val = get('chromecastBitrate1');
return val ? parseInt(val) : null;
},
syncOnlyOnWifi: function (val) {
if (val != null) {
set('syncOnlyOnWifi', val.toString());
}
return get('syncOnlyOnWifi') != 'false';
},
syncPath: function (val) {
if (val != null) {
set('syncPath', val);
}
return get('syncPath');
},
cameraUploadServers: function (val) {
if (val != null) {
set('cameraUploadServers', val.join(','));
}
val = get('cameraUploadServers');
if (val) {
return val.split(',');
}
return [];
},
set: set,
get: get
};