- private intoArray (value: any) {
- if (!value) return undefined
- if (Array.isArray(value)) return value
-
- if (typeof value === 'string') return value.split(',')
-
- return [ value ]
+ private hasVideoFilter () {
+ return this.startDate !== undefined ||
+ this.endDate !== undefined ||
+ this.originallyPublishedStartDate !== undefined ||
+ this.originallyPublishedEndDate !== undefined ||
+ this.nsfw !== undefined ||
+ this.categoryOneOf !== undefined ||
+ this.licenceOneOf !== undefined ||
+ this.languageOneOf !== undefined ||
+ this.tagsOneOf !== undefined ||
+ this.tagsAllOf !== undefined ||
+ this.durationMin !== undefined ||
+ this.durationMax !== undefined ||
+ this.isLive !== undefined