@@ -12,7 +12,7 @@ param (
12
12
[switch]$SyncEmby
13
13
)
14
14
15
- $CurrentScriptVersion = "1.9.3 "
15
+ $CurrentScriptVersion = "1.9.4 "
16
16
$global:HeaderWritten = $false
17
17
$ProgressPreference = 'SilentlyContinue'
18
18
@@ -11103,10 +11103,17 @@ Elseif ($Tautulli) {
11103
11103
Else {
11104
11104
$Arturl = $plexurl + $global:PlexTitleCardUrl
11105
11105
}
11106
- if (!$Episodepostersearchtext) {
11106
+ foreach ($ext in $allowedExtensions) {
11107
+ $filePath = "$ManualTestPath$ext"
11108
+ if (Test-Path -LiteralPath $filePath) {
11109
+ Write-Entry -Message "Local file exists: $filePath" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Cyan -log Debug
11110
+ $posterext = $ext
11111
+ break
11112
+ }
11113
+ }
11114
+ if (Test-Path -LiteralPath "$($Manualtestpath)$posterext"){
11107
11115
Write-Entry -Message "Found Manual Title Card for: $global:show_name - $global:SeasonEPNumber" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color White -log Info
11108
11116
$TakeLocal = $true
11109
- $Episodepostersearchtext = $true
11110
11117
}
11111
11118
Else {
11112
11119
if (!$Episodepostersearchtext) {
@@ -19221,7 +19228,15 @@ else {
19221
19228
Else {
19222
19229
$checkedItems += $hashtestpath
19223
19230
if (-not $directoryHashtable.ContainsKey("$hashtestpath")) {
19224
- if (!$Episodepostersearchtext) {
19231
+ foreach ($ext in $allowedExtensions) {
19232
+ $filePath = "$ManualTestPath$ext"
19233
+ if (Test-Path -LiteralPath $filePath) {
19234
+ Write-Entry -Message "Local file exists: $filePath" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Cyan -log Debug
19235
+ $posterext = $ext
19236
+ break
19237
+ }
19238
+ }
19239
+ if (Test-Path -LiteralPath "$($Manualtestpath)$posterext"){
19225
19240
Write-Entry -Message "Found Manual Title Card for: $global:show_name - $global:SeasonEPNumber" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color White -log Info
19226
19241
$TakeLocal = $true
19227
19242
$Episodepostersearchtext = $true
0 commit comments