diff --git a/Animelibk.ps1 b/Animelibk.ps1 index 1dd3911..bf1166d 100644 --- a/Animelibk.ps1 +++ b/Animelibk.ps1 @@ -153,8 +153,8 @@ if ($Single) { $List = @(Get-Item -Path $(Edit-PathChar $Path)) $BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.File.Extension -in @(".ass", ".ssa")} } elseif ($testrun) { - $List = (Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "FileInfo" }) + - (Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "DirectoryInfo" } | % { $_.GetFiles() }) + $List = @(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "FileInfo" }) + + @(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "DirectoryInfo" } | % { $_.GetFiles() }) $BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj if ($Include -ne "") { $BuildList = $BuildList | ? {$_.File.Extension -in $Include} } if (-not($Force)) { $BuildList = $BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} }