Skip to content

Commit 88a5f35

Browse files
authored
Merge pull request #42 from bullmoose20/patch-27
Update PlexPosterMaker.ps1
2 parents 2018992 + 5adc9f0 commit 88a5f35

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PlexPosterMaker.ps1

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param (
33
[switch]$Testing
44
)
55

6-
$CurrentScriptVersion = "1.0.5"
6+
$CurrentScriptVersion = "1.0.6"
77
$global:HeaderWritten = $false
88

99
#################
@@ -59,13 +59,14 @@ function Write-Log {
5959
$global:HeaderWritten = $true
6060
}
6161
$Timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
62-
$PaddedType = $Type.PadRight(8)
62+
# $Type = "[" + $Type + "]"
63+
$PaddedType = "[" + $Type + "]"
64+
$PaddedType = $PaddedType.PadRight(10)
6365
$Linenumber = "L" + "." + "$($MyInvocation.ScriptLineNumber)"
6466
if ($Linenumber.Length -eq '5') {
6567
$Linenumber = $Linenumber + " "
6668
}
6769
$TypeFormatted = "[{0}] {1}|{2}" -f $Timestamp, $PaddedType.ToUpper(), $Linenumber
68-
6970
if ($Message) {
7071
$FormattedLine1 = "{0}| {1}" -f ($TypeFormatted, $Message)
7172
$FormattedLineWritehost = "{0}| " -f ($TypeFormatted)
@@ -2055,7 +2056,7 @@ Elseif ($Testing) {
20552056
$MediumText = "The Hobbit is a great movie"
20562057
$LongText = "The Hobbit is a great movie that we all loved and enjoyed watching"
20572058
$bullet = [char]0x2022
2058-
$Episodetext = "Season 1 $bullet Episode 1"
2059+
$Episodetext = "Season 9999 $bullet Episode 9999"
20592060

20602061
$ShortTextCAPS = $ShortText.ToUpper()
20612062
$MediumTextCAPS = $MediumText.ToUpper()

0 commit comments

Comments
 (0)