Skip to content

Commit

Permalink
Add MoveToFolder and RenameFile parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 1, 2020
1 parent 53d30ba commit 4dec1ad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Javinizer/Public/Javinizer.ps1
Expand Up @@ -180,6 +180,22 @@ function Javinizer {
$genreCsvPath = $Settings.'sort.metadata.genrecsv.path'
}

if ($PSBoundParameters.ContainsKey('MoveToFolder')) {
if ($MoveToFolder -eq $true) {
$Settings.'sort.movetofolder' = 1
} elseif ($MoveToFolder -eq $false) {
$Settings.'sort.movetofolder' = 0
}
}

if ($PSBoundParameters.ContainsKey('RenameFile')) {
if ($RenameFile -eq $true) {
$Settings.'sort.renamefile' = 1
} elseif ($RenameFile -eq $false) {
$Settings.'sort.renamefile' = 0
}
}

switch ($PsCmdlet.ParameterSetName) {
'Info' {
if ($Find -match 'https?:\/\/') {
Expand Down

0 comments on commit 4dec1ad

Please sign in to comment.