1
0
Fork 0

Remove previous thumbnail if needed

This commit is contained in:
Chocobozzz 2021-02-16 08:50:40 +01:00 committed by Chocobozzz
parent 6302d599cd
commit a35a22797c
15 changed files with 274 additions and 119 deletions

View file

@ -95,7 +95,7 @@ function doesVideoExist (keepOnlyOwned: boolean) {
function doesThumbnailExist (keepOnlyOwned: boolean, type: ThumbnailType) {
return async (file: string) => {
const thumbnail = await ThumbnailModel.loadWithVideoByName(file, type)
const thumbnail = await ThumbnailModel.loadByFilename(file, type)
if (!thumbnail) return false
if (keepOnlyOwned) {