mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Don't crash if there is no thumbnail
This commit is contained in:
@@ -270,7 +270,7 @@ export class VideoDownload {
|
||||
|
||||
if (this.video.isLocal()) return { coverPath: thumbnail?.getFSPath() }
|
||||
|
||||
if (thumbnail.fileUrl) {
|
||||
if (thumbnail?.fileUrl) {
|
||||
const destination = VideoPathManager.Instance.buildTMPDestination(thumbnail.filename)
|
||||
|
||||
await doRequestAndSaveToFile(thumbnail.fileUrl, destination)
|
||||
|
||||
Reference in New Issue
Block a user