Skip to content

Commit cdc7d0e

Browse files
authored
fix: tautulli always searched for local assets (#159)
2 parents f84f593 + 6c9697a commit cdc7d0e

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

Posterizarr.ps1

+19-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param (
1212
[switch]$SyncEmby
1313
)
1414

15-
$CurrentScriptVersion = "1.9.3"
15+
$CurrentScriptVersion = "1.9.4"
1616
$global:HeaderWritten = $false
1717
$ProgressPreference = 'SilentlyContinue'
1818

@@ -11103,10 +11103,17 @@ Elseif ($Tautulli) {
1110311103
Else {
1110411104
$Arturl = $plexurl + $global:PlexTitleCardUrl
1110511105
}
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"){
1110711115
Write-Entry -Message "Found Manual Title Card for: $global:show_name - $global:SeasonEPNumber" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color White -log Info
1110811116
$TakeLocal = $true
11109-
$Episodepostersearchtext = $true
1111011117
}
1111111118
Else {
1111211119
if (!$Episodepostersearchtext) {
@@ -19221,7 +19228,15 @@ else {
1922119228
Else {
1922219229
$checkedItems += $hashtestpath
1922319230
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"){
1922519240
Write-Entry -Message "Found Manual Title Card for: $global:show_name - $global:SeasonEPNumber" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color White -log Info
1922619241
$TakeLocal = $true
1922719242
$Episodepostersearchtext = $true

Release.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3
1+
1.9.4

0 commit comments

Comments
 (0)