From c65ebb56f9728dac4e14c9b720e337a9dcda5fe5 Mon Sep 17 00:00:00 2001 From: TheTaylorLee <53202926+TheTaylorLee@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:23:10 -0600 Subject: [PATCH] 4.4.0 fix missing condition --- build/functions/Move-FileToMediaFolder.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/functions/Move-FileToMediaFolder.ps1 b/build/functions/Move-FileToMediaFolder.ps1 index 55531dd..ba5fde1 100644 --- a/build/functions/Move-FileToMediaFolder.ps1 +++ b/build/functions/Move-FileToMediaFolder.ps1 @@ -68,7 +68,7 @@ function Move-FileToMEDIAFolder { } #Move processed show files - $destination = $showsdb | Where-Object { $_.filename -eq $destinationfilename } + $destination = $showsdb | Where-Object { $_.comment -eq $comment } if ($null -ne $destination) { $oldsizemb = (Get-ChildItem -LiteralPath $destination.fullname | Select-Object @{ Name = "oldsizeMB"; Expression = { [math]::round(($_.length / 1mb), 2) } }).oldsizeMB if (Test-Path -LiteralPath $destination.fullname -ErrorAction SilentlyContinue) {