Skip to content

Commit

Permalink
fix: var error if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
fscorrupt committed Apr 29, 2024
1 parent 343953f commit 6e5dfcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Posterizarr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ param (
[string]$mediatype
)

$CurrentScriptVersion = "1.2.14"
$CurrentScriptVersion = "1.2.15"
$global:HeaderWritten = $false
$ProgressPreference = 'SilentlyContinue'

Expand Down Expand Up @@ -5752,8 +5752,9 @@ Elseif ($Tautulli) {
$global:SeasonNumber = $global:seasonNumbers[$i]
$global:SeasonRatingKey = $global:SeasonRatingKeys[$i]
$global:PlexSeasonUrl = $global:PlexSeasonUrls[$i]
$global:season = "Season" + $global:SeasonNumber.PadLeft(2, '0')

if ($global:SeasonNumber){
$global:season = "Season" + $global:SeasonNumber.PadLeft(2, '0')
}
if ($LibraryFolders -eq 'true') {
$SeasonImageoriginal = "$EntryDir\$global:season.jpg"
$TestPath = $EntryDir
Expand Down Expand Up @@ -8931,8 +8932,9 @@ else {
}
$global:SeasonNumber = $global:seasonNumbers[$i]
$global:PlexSeasonUrl = $global:PlexSeasonUrls[$i]
$global:season = "Season" + $global:SeasonNumber.PadLeft(2, '0')

if ($global:SeasonNumber){
$global:season = "Season" + $global:SeasonNumber.PadLeft(2, '0')
}
if ($LibraryFolders -eq 'true') {
$SeasonImageoriginal = "$EntryDir\$global:season.jpg"
$TestPath = $EntryDir
Expand Down
2 changes: 1 addition & 1 deletion Release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.14
1.2.15

0 comments on commit 6e5dfcb

Please sign in to comment.