diff options
Diffstat (limited to 'server/lib/files-cache/videos-torrent-cache.ts')
-rw-r--r-- | server/lib/files-cache/videos-torrent-cache.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/files-cache/videos-torrent-cache.ts b/server/lib/files-cache/videos-torrent-cache.ts index 23217f140..c8188b79f 100644 --- a/server/lib/files-cache/videos-torrent-cache.ts +++ b/server/lib/files-cache/videos-torrent-cache.ts | |||
@@ -40,7 +40,7 @@ class VideosTorrentCache extends AbstractVideoStaticFileCache <string> { | |||
40 | if (file.getVideo().isOwned()) throw new Error('Cannot load remote file of owned video.') | 40 | if (file.getVideo().isOwned()) throw new Error('Cannot load remote file of owned video.') |
41 | 41 | ||
42 | // Used to fetch the path | 42 | // Used to fetch the path |
43 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(file.getVideo().id) | 43 | const video = await VideoModel.loadFull(file.getVideo().id) |
44 | if (!video) return undefined | 44 | if (!video) return undefined |
45 | 45 | ||
46 | const remoteUrl = file.getRemoteTorrentUrl(video) | 46 | const remoteUrl = file.getRemoteTorrentUrl(video) |