|
|
@ -35,8 +35,8 @@ $RegexpSet = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($VarConfig) { |
|
|
|
if ($VarConfig) { |
|
|
|
if (Test-Path $VarConfig) { |
|
|
|
if (Test-Path $PSScriptRoot\$VarConfig) { |
|
|
|
$T = Get-Content -Encoding UTF8 $VarConfig | % { $H = @{} ; $S = $null} { |
|
|
|
$T = Get-Content -Encoding UTF8 $PSScriptRoot\$VarConfig | % { $H = @{} ; $S = $null} { |
|
|
|
if ($_ -match "^\[(?<T>\w*)\]" ) { |
|
|
|
if ($_ -match "^\[(?<T>\w*)\]" ) { |
|
|
|
$S = $Matches["T"] |
|
|
|
$S = $Matches["T"] |
|
|
|
$H.add($S, @()) |
|
|
|
$H.add($S, @()) |
|
|
@ -47,8 +47,8 @@ if ($VarConfig) { |
|
|
|
$T.GetEnumerator() | % { Set-Variable -Name $_.name -Value $_.value} |
|
|
|
$T.GetEnumerator() | % { Set-Variable -Name $_.name -Value $_.value} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
&$RegexpSet |
|
|
|
&$RegexpSet |
|
|
|
$EpisodeRegex | % {"[EpisodeRegex]"}{ """$_""" }{""} | Out-File -Encoding UTF8 $VarConfig |
|
|
|
$EpisodeRegex | % {"[EpisodeRegex]"}{ """$_""" }{""} | Out-File -Encoding UTF8 $PSScriptRoot\$VarConfig |
|
|
|
$NameRegex | % {"[NameRegex]"}{ """$_""" } | Out-File -Encoding UTF8 -Append $VarConfig |
|
|
|
$NameRegex | % {"[NameRegex]"}{ """$_""" } | Out-File -Encoding UTF8 -Append $PSScriptRoot\$VarConfig |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|