feat(aothashcheck): Add SP/CD hash verification with missing-file detection#1
Draft
feat(aothashcheck): Add SP/CD hash verification with missing-file detection#1
Conversation
Agent-Logs-Url: https://github.com/Dr1mH4X/Scripts/sessions/90ab0901-3b5f-413b-8ea8-60e3ebe96b7e Co-authored-by: Dr1mH4X <102709153+Dr1mH4X@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update aothashcheck.ps1 to include SPs and CDs checking
feat(aothashcheck): Add SP/CD hash verification with missing-file detection
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
aothashcheck.ps1only checked main episode.mkvfiles. This extends it to also verify Special Features and CDs stored underM:\Anime-BDSPs\, matching against the existing Z-drive paths, with explicit detection of files missing on Z-drive.Changes
New "what to check" prompt
After selecting season and hash algorithm, the user now picks:
1— Main Episodes only (original behavior)2— SPs / CDs only3— BothSP/CD path config (
$SpConfig)Parallel to
$Config, maps each season to its BDSPs M-drive root and the same Z-drive base path used by main episodes:SP/CD check block
.asssubtitles and*Fonts*.7zarchives(flac)vs(flac+webp)path drift)Missing(distinct from main-episodeSkipped)ForEach-Object -Parallel/ThrottleLimit 2hash logic and output formattingPer-section summaries
Main episodes print "Main Episodes Summary"; SPs/CDs print "SPs/CDs Summary" with
Compared/Missingfields. Both run sequentially when mode3is selected.Original prompt
Update
pwsh/aothashcheck.ps1to support checking Special Features (SPs) and CDs in addition to the main episodes.Requirements:
M:\Anime-BDSPs\Attack on Titan.进击的巨人\Season 1,Season 2,Season 3,Season 4). The Z-drive paths remain the same as the main episodes, but for SPs we'll recursively search for matching files in the Z-drive path..assfiles and files matching*Fonts*.7z(e.g.[BeanSub&VCB-Studio] Shingeki no Kyojin The Final Season [Fonts].7z) from the check.$_.Name -eq $fM.Name). Since folder paths might slightly differ between M and Z (e.g.,(flac+webp)vs(flac)), match primarily by filename. If multiple files with the same name are found, you can either pick the first or match the parent folder name heuristically. If a file is missing on the Z-drive, explicitly log it as missing.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: 现在除了1 2 3 4季 我还希望检查特典(SP),特典不止要检查里面的每一个文件,还要查看缺失的文件 特典的结构如下所示
❯ Get-ChildItem -Directory -Recurse -LiteralPath "Z:\Downloads\Anime[VCB-Studio] Shingeki no Kyojin[BeanSub&VCB-Studio] Shingeki no Kyojin The Final Season [Ma10p_1080p]"
Directory: Z:\Downloads\Anime[VCB-Studio] Shingeki no Kyojin[BeanSub&VCB-Studio] Shingeki no Kyojin The Final
Season [Ma10p_1080p]
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/9/2026 6:26 PM CDs
d---- 4/10/2026 6:43 AM SPs
Directory: Z:\Downloads\Anime[VCB-Studio] Shingeki no Kyojin[BeanSub&VCB-Studio] Shingeki no Kyojin The Final
Season [Ma10p_1080p]\CDs
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/10/2026 4:31 AM [210203] 「衝撃」/安藤裕子 (flac+webp)
d---- 4/9/2026 6:24 PM [210203] 「衝撃」/安藤裕子 [24bit_96kHz] (flac)
d---- 4/9/2026 5:42 PM [210222] 「僕の戦争」/神聖かまってちゃん [24bit_96kHz] (flac)
d---- 4/10/2026 6:02 AM [210707] SPCD 01 Drama 「雨宿りの情景 特別編〜雨の古城にて〜」 (flac)
d---- 4/10/2026 6:02 AM [210804] SPCD 02 Drama 「雨宿りの情景 特別編〜雨の古城にて〜」 (flac)
d---- 4/9/2026 6:24 PM [220110] 「悪魔の子」/ヒグチアイ [24bit_96kHz] (flac)
d---- 4/10/2026 5:08 AM [220124] 「悪魔の子」/ヒグチアイ (flac)
d---- 4/9/2026 6:18 PM [220525] 「The Rumbling (Instrumental)」/SiM [24bit_96kHz] (flac)
d---- 4/9/2026 7:26 PM [220629] 「Rearrangement Reaction」/KOHTA YAMAMOTO [24bit_96kHz]
(flac)
d---- 4/10/2026 2:17 AM [231105] 「いってらっしゃい」/ヒグチアイ [24bit_48kHz] (flac)
d---- 4/9/2026 3:04 PM [240717] Original Sound Track Complete Album/KOHTA
YAMAMOTO、澤野弘之 (flac+webp)
d---- 4/10/2026 2:37 AM [240717] Original Sound Track Complete Album/KOHTA
YAMAMOTO、澤野弘之 [24bit_96kHz] (flac)
d---- 4/10/2026 3:03 AM [240807] 「進撃の記憶」/Linked Horizon (flac)
d---- 4/9/2026 3:39 PM [241002] 「悪魔の子 - from CrosSing」/石川由依 [24bit_96kHz] (flac)
d---- 4/10/2026 3:22 AM [241225] 「PLAYDEAD -DELUXE EDiTiON-」/SiM [24bit_96kHz] (flac)
Directory: Z:\Downloads\Anime[VCB-Studio] Shingeki no Kyojin[BeanSub&VCB-Studio] Shingeki no Kyojin The Final
Season [Ma10p_1080p]\CDs[210203] 「衝撃」/安藤裕子 (flac+webp)
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/10/2026 6:31 AM Scans
Directory: Z:\Downloads\Anime[VCB-Studio] Shingeki no Kyojin[BeanSub&VCB-Studio] Shingeki no Kyojin The Final
Season [Ma10p_1080p]\CDs[240717] Original Sound Track Complete Album/KOHTA YAMAMOTO、澤野弘之 (flac+webp)
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/10/2026 2:46 AM PCCG-02364-1
d---- 4/10/2026 5:39 AM PCCG-02364-2
d---- 4/10/2026 2:23 AM PCCG-02364-3
d---- 4/9/2026 9:22 PM Scans
以及整理后的: 他们的文件名都一样 只是可能缺失文件 和路径不同而已
❯ Get-ChildItem -Directory -Recurse -LiteralPath "Z:\Downloads\Anime[VCB-Studio] Shingeki no Kyojin[BeanSub&VCB-S...
This pull request was created from Copilot chat.