From ebc972ba16fc81d00d129946d22447e7bf9bf811 Mon Sep 17 00:00:00 2001 From: pcnick Date: Tue, 10 Oct 2023 22:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=A6=8F=E5=89=87=E6=AA=94?= =?UTF-8?q?=E8=B7=AF=E5=BE=91=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Animelibk.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)) {