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

@ -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
};