mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-13 01:10:27 -07:00
Added some logs for compare file size
This commit is contained in:
parent
713923cc1e
commit
b62e38bfde
2 changed files with 6 additions and 0 deletions
|
|
@ -45,10 +45,13 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
let outputNumber = 1;
|
||||
|
||||
if (args.inputFileObj.file_size < args.originalLibraryFile.file_size) {
|
||||
args.jobLog('Working file is smaller than original file.');
|
||||
outputNumber = 1;
|
||||
} else if (args.inputFileObj.file_size === args.originalLibraryFile.file_size) {
|
||||
args.jobLog('Working file is same size as original file.');
|
||||
outputNumber = 2;
|
||||
} else if (args.inputFileObj.file_size > args.originalLibraryFile.file_size) {
|
||||
args.jobLog('Working file is larger than original file.');
|
||||
outputNumber = 3;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue