From 9b01ce0e4ca4b780cdb307a0fa432a18c5f38745 Mon Sep 17 00:00:00 2001 From: FSCorrupt <45659314+fscorrupt@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:42:56 +0100 Subject: [PATCH] small adjustments to variable clearing --- PlexPosterMaker.ps1 | 12 +++++++----- Release.txt | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PlexPosterMaker.ps1 b/PlexPosterMaker.ps1 index 296f543..0c316c3 100644 --- a/PlexPosterMaker.ps1 +++ b/PlexPosterMaker.ps1 @@ -3,7 +3,7 @@ param ( [switch]$Testing ) -$CurrentScriptVersion = "1.0.14" +$CurrentScriptVersion = "1.0.15" $global:HeaderWritten = $false ################# @@ -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 @@ -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()) diff --git a/Release.txt b/Release.txt index 97bceaa..758a46e 100644 --- a/Release.txt +++ b/Release.txt @@ -1 +1 @@ -1.0.14 \ No newline at end of file +1.0.15 \ No newline at end of file