Don't crash if there is no thumbnail

This commit is contained in:
Chocobozzz
2026-07-13 14:01:17 +02:00
parent 9130be9fdd
commit 3ab630ef38
+1 -1
View File
@@ -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)