fix(tools): 애니 파이프라인 버그 4건 수정 — Unicode SyntaxError, 카타카나 변환, Nyaa 검색 전략 + Python 환경 설정

This commit is contained in:
2026-03-08 17:43:54 +09:00
parent a3a083f6da
commit 1dab257401
12 changed files with 109 additions and 30 deletions

View File

@@ -0,0 +1,19 @@
# 애니 파이프라인 검증 & 버그 수정
- **시간**: 2026-03-08 17:07~17:42
- **Commit**: `pending`
## 결정 사항
- **`_kata_to_hira` 범위 수정**: `0x30A0~0x30FF` 전체 → `0x30A1~0x30F6`(ア~ヶ만)으로 변경. ー(U+30FC)가 기호임에도 카타카나 범위에 포함되어 잘못 변환되는 문제. Unicode 블록을 범위로 사용할 때 기호 문자 포함 여부를 항상 확인해야 함.
- **Nyaa 6단계 검색 전략**: romaji 변환은 한자 통과 특성상 순수 romaji만으로 검색 불가. suffix(ASW HEVC) 유무 조합으로 6가지 전략을 순차 시도. NyaaClient에 이미 `use_default_suffix` 파라미터가 있었으나 활용되지 않았음.
- **Python 환경 고정**: 시스템 `python`이 작동하지 않아 `C:\ProgramData\miniforge3\envs\gravity_web\python.exe`를 AGENT.md + 6개 워크플로우에 명시.
## 수정 파일
- `tools/nas_scanner.py` — docstring `r"""` 변경
- `tools/title_matcher.py``_kata_to_hira` 범위 + `japanese_to_romaji` 장음 처리
- `tools/anime_pipeline.py` — Nyaa 6단계 검색 전략
- `.agents/AGENT.md` — Python 경로 추가
- `.agents/workflows/*.md` — Python 경로 일괄 변경 (6개 파일)
- `.agents/references/known-issues.md` — 프로젝트 이슈 3건 추가