mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 07:50:29 -07:00
Move variable outside of string
This commit is contained in:
parent
9af181680d
commit
1e67bd74c1
1 changed files with 2 additions and 2 deletions
|
|
@ -142,8 +142,8 @@ function create_crop_values(file) {
|
|||
//create crop value
|
||||
if (!fs.existsSync(`${cropfile}`)) {
|
||||
returns.log += `Creating crop values...\n`;
|
||||
execSync(`otherArguments.ffmpegPath -ss 300 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 > \"${cropfile}\"`);
|
||||
execSync(`otherArguments.ffmpegPath -ss 1200 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 >> \"${cropfile}\"`);
|
||||
execSync(otherArguments.ffmpegPath + ` -ss 300 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 > \"${cropfile}\"`);
|
||||
execSync(otherArguments.ffmpegPath + ` -ss 1200 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 >> \"${cropfile}\"`);
|
||||
} else {
|
||||
returns.log += `Crop values already exist\n`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue