]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-streaming-playlist.ts
Add ability to run transcoding jobs
[github/Chocobozzz/PeerTube.git] / server / models / video / video-streaming-playlist.ts
index 18d96c7507728f7f881ff07398fe66a728df7370..4643c545265510c33605e752ee67b98b2e379c0d 100644 (file)
@@ -239,6 +239,10 @@ export class VideoStreamingPlaylistModel extends Model<Partial<AttributesOnly<Vi
       this.videoId === other.videoId
   }
 
+  withVideo (video: MVideo) {
+    return Object.assign(this, { Video: video })
+  }
+
   private getMasterPlaylistStaticPath (videoUUID: string) {
     return join(STATIC_PATHS.STREAMING_PLAYLISTS.HLS, videoUUID, this.playlistFilename)
   }