diff --git a/Animelibk.ps1 b/Animelibk.ps1 index bf1166d..40b27be 100644 --- a/Animelibk.ps1 +++ b/Animelibk.ps1 @@ -57,13 +57,14 @@ if ($VarConfig) { #$Path = "L:\Anime\202001 ネコぱら\[Nekomoe kissaten][Nekopara][01-12][BDRip][1080p][CHT]\[Nekomoe kissaten][Nekopara][12][1080p][CHT].mp4" #$Path = "L:\Anime\202004 ストライク・ザ・ブラッド OVA IV\[Suzu-Kaze][Strike_the_Blood_IV_OVA][01-12FIN][BDRip_1080P][HEVC_YUV420P10]\[Suzu-Kaze] Strike the Blood IV 12FIN [BDRip 1920x1080 HEVC YUV420P10 FLAC].mkv" #$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" -$JsonPath = $("$Index\Anime\* $TargetName", $($Path -replace '(.*\\[^\[\\\]]*)\\\[.*', '$1') | ? {Test-Path $_}) +$JsonPath = "$Index\Anime\* $TargetName", $($Path -replace '(.*\\[^\[\\\]]*)\\\[.*', '$1') | ? {Test-Path $_} +if ($RecorDB -notmatch ":") { $RecorDB = "$JsonPath\$RecorDB" } $WorkData = $(if (Test-Path $RecorDB) { Get-Content $RecorDB | ConvertFrom-Json } else { "" | Select-Object ID, WorkName, TargetName, DestinName, Season, Episode }) -if ($RecorDB -notmatch ":") { $RecorDB = "$JsonPath\$RecorDB" } +$RecorDB # 確認資料狀態,缺少則進行物件資料建立 if (-not($WorkData.WorkName)) {