Skip to content

Commit

Permalink
Update verbouse completed output
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 1, 2020
1 parent cd217cf commit c5c21fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Javinizer/Public/Set-JVMovie.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function Set-JVMovie {
$filePath = Join-Path -Path $folderPath -ChildPath "$fileName$((Get-Item -LiteralPath $Path).Extension)"
if ((Get-Item -LiteralPath $DestinationPath).Directory -ne (Get-Item -LiteralPath $Path).Directory) {
Move-Item -LiteralPath $Path -Destination $filePath -Force:$Force
Write-JVLog -Level Info "[$($Data.Id)] Completed [$Path] -> [$filePath]"
Write-JVLog -Level Info "[$($Data.Id)] Completed [$Path] => [$filePath]"
}
} catch {
Write-JVLog -Level Error -Message "[$($Data.Id)] [$($MyInvocation.MyCommand.Name)] Error occurred when renaming and moving file [$Path] to [$filePath]: $PSItem"
Expand All @@ -334,7 +334,7 @@ function Set-JVMovie {
$filePath = Join-Path -Path $folderPath -ChildPath (Get-Item -LiteralPath $Path).Name
if ((Get-Item -LiteralPath $DestinationPath).Directory -ne (Get-Item -LiteralPath $Path).Directory) {
Move-Item -LiteralPath $Path -Destination $filePath -Force:$Force
Write-JVLog -Level Info "[$($Data.Id)] Completed [$Path] -> [$filePath]"
Write-JVLog -Level Info "[$($Data.Id)] Completed [$Path] => [$filePath]"

}
} catch {
Expand Down

0 comments on commit c5c21fd

Please sign in to comment.