From 343953f0c5d0007ba28130872bf4f40fbdf9df9e Mon Sep 17 00:00:00 2001 From: FSCorrupt <45659314+fscorrupt@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:48:44 +0200 Subject: [PATCH] add more info to logging on skip --- Posterizarr.ps1 | 18 +++++++++--------- Release.txt | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Posterizarr.ps1 b/Posterizarr.ps1 index fddb3a8..3ebb1d5 100644 --- a/Posterizarr.ps1 +++ b/Posterizarr.ps1 @@ -8,7 +8,7 @@ param ( [string]$mediatype ) -$CurrentScriptVersion = "1.2.13" +$CurrentScriptVersion = "1.2.14" $global:HeaderWritten = $false $ProgressPreference = 'SilentlyContinue' @@ -6430,11 +6430,11 @@ Elseif ($Tautulli) { $EpisodeTempImage = Join-Path -Path $global:ScriptRoot -ChildPath "temp\temp.jpg" $cjkTitlePattern = '[\p{IsHiragana}\p{IsKatakana}\p{IsCJKUnifiedIdeographs}\p{IsThai}]' if ($SkipTBA -eq 'True' -and $global:EPTitle -eq 'TBA') { - Write-Entry -Subtext "Skipping episode because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipTBACount++ } Elseif ($SkipJapTitle -eq 'True' -and $global:EPTitle -match $cjkTitlePattern){ - Write-Entry -Subtext "Skipping episode because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipJapTitleCount++ } Else { @@ -6828,11 +6828,11 @@ Elseif ($Tautulli) { $EpisodeImage = $EpisodeImage.Replace('[', '_').Replace(']', '_').Replace('{', '_').Replace('}', '_') $cjkTitlePattern = '[\p{IsHiragana}\p{IsKatakana}\p{IsCJKUnifiedIdeographs}\p{IsThai}]' if ($SkipTBA -eq 'True' -and $global:EPTitle -eq 'TBA') { - Write-Entry -Subtext "Skipping episode because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipTBACount++ } Elseif ($SkipJapTitle -eq 'True' -and $global:EPTitle -match $cjkTitlePattern){ - Write-Entry -Subtext "Skipping episode because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipJapTitleCount++ } Else { @@ -9381,11 +9381,11 @@ else { $EpisodeTempImage = Join-Path -Path $global:ScriptRoot -ChildPath "temp\temp.jpg" $cjkTitlePattern = '[\p{IsHiragana}\p{IsKatakana}\p{IsCJKUnifiedIdeographs}\p{IsThai}]' if ($SkipTBA -eq 'True' -and $global:EPTitle -eq 'TBA') { - Write-Entry -Subtext "Skipping episode because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipTBACount++ } Elseif ($SkipJapTitle -eq 'True' -and $global:EPTitle -match $cjkTitlePattern){ - Write-Entry -Subtext "Skipping episode because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipJapTitleCount++ } Else { @@ -9762,11 +9762,11 @@ else { $EpisodeImage = $EpisodeImage.Replace('[', '_').Replace(']', '_').Replace('{', '_').Replace('}', '_') $cjkTitlePattern = '[\p{IsHiragana}\p{IsKatakana}\p{IsCJKUnifiedIdeographs}\p{IsThai}]' if ($SkipTBA -eq 'True' -and $global:EPTitle -eq 'TBA') { - Write-Entry -Subtext "Skipping episode because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title is 'TBA'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipTBACount++ } Elseif ($SkipJapTitle -eq 'True' -and $global:EPTitle -match $cjkTitlePattern){ - Write-Entry -Subtext "Skipping episode because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning + Write-Entry -Subtext "Skipping $global:FileNaming of $global:show_name because Title contains Jap/Chinese Chars" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Yellow -log Warning $SkipJapTitleCount++ } Else { diff --git a/Release.txt b/Release.txt index 9579e1f..d79a5f8 100644 --- a/Release.txt +++ b/Release.txt @@ -1 +1 @@ -1.2.13 \ No newline at end of file +1.2.14 \ No newline at end of file