Videos: Skip related images when downloading #1436
This commit is contained in:
parent
4af98f61f4
commit
10650f6d28
|
@ -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));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue