@ -1,14 +1,15 @@
param (
$Path ,
$Index = " H:\AnimeLib " ,
[switch] $Single
)
#$TargetName = "俺だけ入れる隠しダンジョン〜こっそり鍛えて世界最強〜";
$TargetName = " "
#$DestinName = "真の仲間"
# $Path = ""
Write-Output $Path
#$Path = "H:\Anime\201901 盾の勇者の成り上がり\[LKSUB][Tate no Yuusha no Nariagari][01-25][GB][720P][MP4]\[LKSUB][Tate no Yuusha no Nariagari][01][GB][720P].mp4"
#$Path = "H:\Data\Downloads\因為不是真正的夥伴而被逐出勇者隊伍\[Shin no Nakama][01][BIG5][1080P].mp4"
$JsonPath = $ ( " .. \Anime\* $ TargetName " , $ ( $Path -replace '(.*\\[^\[\\\]]*)\\\[.*' , '$1' ) | ? { Test-Path $_ } )
$JsonPath = $ ( " $ Index \Anime\* $ TargetName " , $ ( $Path -replace '(.*\\[^\[\\\]]*)\\\[.*' , '$1' ) | ? { Test-Path $_ } )
$WorkData = $ ( if ( Test-Path " $ JsonPath\animelibk.json " ) {
Get-Content " $ JsonPath\animelibk.json " | ConvertFrom-Json
} else {
@ -38,9 +39,8 @@ $Year = @($($JsonPath -replace '.*\\((?<Y>\d{4})?(?<M>\d{2})?).*$', '${Y}'), $(g
#$($JsonPath -replace '.*\\((?<Y>\d{4})?(?<M>\d{2})?).*$', '${Y}');
# 取得目標資料夾是否存在,不存在建立資料夾,並取得資料夾物件
$LinkPath = " . \{0}\{1}" -f $WorkData . DestinName , $Seasons_TC [ $WorkData . Season ]
$LinkPath = " {2} \{0}\{1}" -f $WorkData . DestinName , $Seasons_TC [ $WorkData . Season ] , $Index
$LinkDir = $ ( if ( -not ( Test-Path -Path " $ LinkPath* " ) ) {
New-Item -Path " $ LinkPath ( $ Year) " -ItemType Directory -Force
} else {
@ -147,8 +147,8 @@ exit 0;
# SIG # Begin signature block
# MIIFxwYJKoZIhvcNAQcCoIIFuDCCBbQCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjc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