aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-20 11:05:10 +0100
committerChocobozzz <me@florianbigard.com>2017-12-20 11:05:10 +0100
commit8fa5653ad8bebed9a1b2a649e8ea160184d52408 (patch)
treeeb71b80545a89d73e9b0ef09c695b509360da85c /server/models/video/video.ts
parent15ca2e871aa069e596baf9da22b3d2a1ab1a0b1a (diff)
downloadPeerTube-8fa5653ad8bebed9a1b2a649e8ea160184d52408.tar.gz
PeerTube-8fa5653ad8bebed9a1b2a649e8ea160184d52408.tar.zst
PeerTube-8fa5653ad8bebed9a1b2a649e8ea160184d52408.zip
Add transition on play/loading player
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 97fdbc8ef..8c49bc3af 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -528,6 +528,18 @@ export class VideoModel extends Model<VideoModel> {
528 .findById(id, options) 528 .findById(id, options)
529 } 529 }
530 530
531 static loadByUUID (uuid: string) {
532 const options = {
533 where: {
534 uuid
535 }
536 }
537
538 return VideoModel
539 .scope([ ScopeNames.WITH_FILES ])
540 .findOne(options)
541 }
542
531 static loadByUUIDAndPopulateAccountAndServerAndTags (uuid: string) { 543 static loadByUUIDAndPopulateAccountAndServerAndTags (uuid: string) {
532 const options = { 544 const options = {
533 order: [ [ 'Tags', 'name', 'ASC' ] ], 545 order: [ [ 'Tags', 'name', 'ASC' ] ],