@xiboplayer/settings 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/settings.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiboplayer/settings",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "CMS settings management and application for Xibo Player",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -10,7 +10,7 @@
10
10
  "./manager": "./src/settings.js"
11
11
  },
12
12
  "dependencies": {
13
- "@xiboplayer/utils": "0.6.5"
13
+ "@xiboplayer/utils": "0.6.6"
14
14
  },
15
15
  "devDependencies": {
16
16
  "jsdom": "^25.0.1",
package/src/settings.js CHANGED
@@ -256,7 +256,9 @@ export class DisplaySettings extends EventEmitter {
256
256
  */
257
257
  isInDownloadWindow() {
258
258
  // If no download window configured, always allow
259
- if (!this.settings.downloadStartWindow || !this.settings.downloadEndWindow) {
259
+ // CMS sends ":" when unconfigured, treat as empty
260
+ if (!this.settings.downloadStartWindow || !this.settings.downloadEndWindow ||
261
+ this.settings.downloadStartWindow === ':' || this.settings.downloadEndWindow === ':') {
260
262
  return true;
261
263
  }
262
264
 
@@ -311,7 +313,8 @@ export class DisplaySettings extends EventEmitter {
311
313
  * @returns {Date|null} Next window start, or null if always allowed
312
314
  */
313
315
  getNextDownloadWindow() {
314
- if (!this.settings.downloadStartWindow || !this.settings.downloadEndWindow) {
316
+ if (!this.settings.downloadStartWindow || !this.settings.downloadEndWindow ||
317
+ this.settings.downloadStartWindow === ':' || this.settings.downloadEndWindow === ':') {
315
318
  return null;
316
319
  }
317
320