Skip to content

Commit

Permalink
Allow settingspath param in Info set
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 7, 2020
1 parent 03bc562 commit 5ddfb98
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Javinizer/Public/Javinizer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ function Javinizer {
-----------
Updates existing sorted nfo files from a path with updated aliases, thumburls, names, ignored genres, and genre replacements according to the settings.
.EXAMPLE
Javinizer -UpdateThumbs -Pages 1,10
Description
-----------
Updates the actress csv file using a range of pages to scrape from.
.EXAMPLE
Javinizer -OpenSettings
Expand Down Expand Up @@ -242,6 +249,7 @@ function Javinizer {
[Array]$Url,

[Parameter(ParameterSetName = 'Path')]
[Parameter(ParameterSetName = 'Info')]
[System.IO.FileInfo]$SettingsPath,

[Parameter(ParameterSetName = 'Path')]
Expand Down Expand Up @@ -416,8 +424,6 @@ function Javinizer {
if ($Set) {
try {
foreach ($item in $Set.GetEnumerator()) {
$settingName = $item.Key
$settingValue = $item.Value
$Settings."$($item.Key)" = $item.Value
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Debug -Message "[$($MyInvocation.MyCommand.Name)] [Setting - $($item.Key)] replaced as [$($item.Value)]"
}
Expand Down

0 comments on commit 5ddfb98

Please sign in to comment.