Compare commits

..

No commits in common. '2ab2d06efb217ac1f8e9bc2cfea23f705bb783be' and 'df5e7f22fe2e5945bc3ad796db27223be047c48a' have entirely different histories.

  1. 11
      Animelibk.ps1

11
Animelibk.ps1

@ -12,7 +12,6 @@
#$Include = ".rmvb", ".mp4", ".mkv", ".avi" #$Include = ".rmvb", ".mp4", ".mkv", ".avi"
$SubExt = if ($Sub) { ".ssa", ".ass", ".srt" } $SubExt = if ($Sub) { ".ssa", ".ass", ".srt" }
$Include = $Include + $SubExt
Import-Module -Name ($PSScriptRoot + "\PathChar.psd1") Import-Module -Name ($PSScriptRoot + "\PathChar.psd1")
Import-Module -Name ($PSScriptRoot + "\NameRegex.psd1") Import-Module -Name ($PSScriptRoot + "\NameRegex.psd1")
@ -22,7 +21,7 @@ $TargetName = ""
#$DestinName = "真の仲間" #$DestinName = "真の仲間"
Write-Output $Path Write-Output $Path
#$Index = "L:\AnimeLib" #$Index = "L:\AnimeLib"
d
# scriptblock 減少重複 # scriptblock 減少重複
$RegexpSet = { $RegexpSet = {
# 全域化 # 全域化
@ -166,14 +165,14 @@ if ($Single) {
$List = @(Get-Item -Path $(Edit-PathChar $Path)) $List = @(Get-Item -Path $(Edit-PathChar $Path))
$BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.NewName.Episode -notin $WorkData.Episode} $BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.NewName.Episode -notin $WorkData.Episode}
#$BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} | Format-List #$BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} | Format-List
# } elseif ($Sub) { <# } elseif ($Sub) {
# $List = @(Get-Item -Path $(Edit-PathChar $Path)) $List = @(Get-Item -Path $(Edit-PathChar $Path))
# $BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.File.Extension -in @(".ass", ".ssa")} $BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.File.Extension -in @(".ass", ".ssa")} #>
} elseif ($testrun) { } elseif ($testrun) {
$List = @(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "FileInfo" }) + $List = @(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "FileInfo" }) +
@(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "DirectoryInfo" } | % { $_.GetFiles() }) @(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "DirectoryInfo" } | % { $_.GetFiles() })
$BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj $BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj
if ($Include -ne "") { $BuildList = $BuildList | ? {$_.File.Extension -in $Include} } if ($Include -ne "") { $BuildList = $BuildList | ? {$_.File.Extension -in $Include, $SubExt} }
if (-not($Force)) { $BuildList = $BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} } if (-not($Force)) { $BuildList = $BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} }
} else { } else {
exit 0; exit 0;

Loading…
Cancel
Save