Skip to content

Commit

Permalink
small adjustments to variable clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
fscorrupt committed Mar 20, 2024
1 parent 1689083 commit 9b01ce0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions PlexPosterMaker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param (
[switch]$Testing
)

$CurrentScriptVersion = "1.0.14"
$CurrentScriptVersion = "1.0.15"
$global:HeaderWritten = $false

#################
Expand Down Expand Up @@ -1346,12 +1346,9 @@ function GetPlexArtwork {
$magickcommand = "& `"$magick`" identify -verbose `"$TempImage`""
$magickcommand | Out-File $global:ScriptRoot\Logs\ImageMagickCommands.log -Append

# Get the EXIF data
$ExifFound = $null
# Execute command and get exif data
$value = (Invoke-Expression $magickcommand | Select-String -Pattern 'overlay|titlecard|created with ppm')

$global:PlexartworkDownloaded = $null
if ($value) {
$ExifFound = $True
Write-Log -Subtext "Artwork has exif data from ppm/pmm/tcm, cant take it..." -Path $global:ScriptRoot\Logs\Scriptlog.log -Type Warning
Expand Down Expand Up @@ -4190,7 +4187,12 @@ else {
for ($i = 0; $i -lt $global:episode_numbers.Count; $i++) {
$global:Fallback = $null
$global:posterurl = $null

$Episodepostersearchtext = $null
$ExifFound = $null
$global:PlexartworkDownloaded = $null
$value = $null
$magickcommand = $null
$Arturl = $null
$global:PlexTitleCardUrl = $($global:PlexTitleCardUrls[$i].Trim())
$global:EPTitle = $($global:titles[$i].Trim())
$global:episodenumber = $($global:episode_numbers[$i].Trim())
Expand Down
2 changes: 1 addition & 1 deletion Release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.14
1.0.15

0 comments on commit 9b01ce0

Please sign in to comment.