More robust RSS feed

pull/6206/head
Chocobozzz 2024-02-15 09:15:55 +01:00
parent bfdd4d10f3
commit acd9eaeb1d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 8 additions and 0 deletions

View File

@ -1729,6 +1729,12 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
this.Thumbnails.push(savedThumbnail) this.Thumbnails.push(savedThumbnail)
} }
// ---------------------------------------------------------------------------
hasMiniature () {
return !!this.getMiniature()
}
getMiniature () { getMiniature () {
if (Array.isArray(this.Thumbnails) === false) return undefined if (Array.isArray(this.Thumbnails) === false) return undefined
@ -1745,6 +1751,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
return this.Thumbnails.find(t => t.type === ThumbnailType.PREVIEW) return this.Thumbnails.find(t => t.type === ThumbnailType.PREVIEW)
} }
// ---------------------------------------------------------------------------
isOwned () { isOwned () {
return this.remote === false return this.remote === false
} }