From c1abf0db10adecf9ede102be534cc948c8cef569 Mon Sep 17 00:00:00 2001 From: MymsMan Date: Mon, 2 Mar 2020 17:10:28 +0000 Subject: [PATCH] Don't create -crop.thm when ot cropping! --- webif/plugin/detectads/detectads.jim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webif/plugin/detectads/detectads.jim b/webif/plugin/detectads/detectads.jim index 7f4d25a..3bfb7e6 100755 --- a/webif/plugin/detectads/detectads.jim +++ b/webif/plugin/detectads/detectads.jim @@ -107,6 +107,7 @@ proc ::detectads::delete_orphans {} { set bname [file rootname $file] file delete -force $bname.hmt file delete -force $bname.nts + file delete -force $bname.thm file delete -force $file log "Deleted orphan file $file" } @@ -1010,7 +1011,9 @@ proc ::detectads::chaserun {ts {Qid 0} {retrynumb 0}} { } else { log "Thumbnail created at offset $offset in $(($thmend-$thmstart)/1000) seconds" 0 file copy "$tpath/$tname.thm" "$bpath/$bname.thm" - file copy "$tpath/$tname.thm" "$cpath/$cname.thm" + if {$crop} { + file copy "$tpath/$tname.thm" "$cpath/$cname.thm" + } } } }