Videos: Skip related images when downloading #1436

This commit is contained in:
Michael Mayer 2021-07-16 17:06:47 +02:00
parent 4af98f61f4
commit 10650f6d28

View file

@ -488,6 +488,13 @@ export class Photo extends RestModel {
return; return;
} }
// Skip related images if video.
// see https://github.com/photoprism/photoprism/issues/1436
if (this.Type === TypeVideo && !file.Video) {
if (config.debug) console.log("download: skipped image", file);
return;
}
download(`${config.apiUri}/dl/${file.Hash}?t=${token}`, this.fileBase(file.Name)); download(`${config.apiUri}/dl/${file.Hash}?t=${token}`, this.fileBase(file.Name));
}); });
} }