Skip to content

Commit

Permalink
Fic Path issue in Start-MKV-Subtitle-Strip
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouzax committed Dec 18, 2023
1 parent 12cebe6 commit 17419dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TorrentScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $LogFileDateFormat = Get-Date -Format $Config.DateFormat
# Temporary location of the files that are being processed, will be appended by the label and torrent name
$ProcessPath = $Config.ProcessPath

# Archive location of the log files of handeled donwloads
# Archive location of the log files of handled downloads
$LogArchivePath = $Config.LogArchivePath

# Default download root path
Expand Down
4 changes: 2 additions & 2 deletions functions/Start-MKV-Subtitle-Strip.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function Start-MKV-Subtitle-Strip {
Write-HTMLLog -Column1 'Result:' -Column2 'Warning' -ColorBg 'Error'
} elseif ($Process.ExitCode -eq 0) {
# Overwrite original mkv after successful remux
Move-Item -Path $TmpMkvPath -Destination $($episode.FilePath) -Force
Move-Item -LiteralPath $TmpMkvPath -Destination $($episode.FilePath) -Force
# Write-HTMLLog -Column1 "Removed:" -Column2 "$($SubIDsToRemove.Count) unwanted subtitle languages"
} else {
Write-HTMLLog -Column1 'Exit Code:' -Column2 $($Process.ExitCode) -ColorBg 'Error'
Expand All @@ -243,7 +243,7 @@ function Start-MKV-Subtitle-Strip {
$ReplacementWasMade = $FileName -cne $FileNameNew
if ($ReplacementWasMade) {
$Destination = Join-Path -Path $FileDirectory -ChildPath $FileNameNew
Move-Item -Path $FilePath -Destination $Destination -Force
Move-Item -LiteralPath $FilePath -Destination $Destination -Force
break
}
}
Expand Down

0 comments on commit 17419dd

Please sign in to comment.