Shot list conversion / 分镜表转换

shots.csv is a synthetic three-row UTF-8 shot list. client-shots.json is the actual file downloaded in the local DROP test. Both are safe example data. Keep your own project files separate.
shots.csv 是三行合成分镜数据。client-shots.json 是本地 DROP 实测下载的结果。请用样本练习。

With Python 3, run the following inside the extracted directory.
在解压后的目录里使用 Python 3 运行下列命令。

python3 convert_shots.py shots.csv > my-shots.json
python3 -c "import pathlib; assert pathlib.Path('my-shots.json').read_bytes() == pathlib.Path('client-shots.json').read_bytes()"

On Windows use a terminal that preserves stdout bytes for redirection, or run this Python command instead.
在 Windows 上也可直接用 Python 写入字节，避免终端重定向改变编码。

python -c "from pathlib import Path; from convert_shots import convert_shots; Path('my-shots.json').write_bytes(convert_shots('shots.csv'))"
python -c "from pathlib import Path; assert Path('my-shots.json').read_bytes() == Path('client-shots.json').read_bytes()"

Only shot and caption are selected. Identifiers remain strings, including 001. The source includes an internal_note column. The returned JSON contains exactly the two selected fields.
只选 shot 和 caption 两列。编号按文本处理，001 会保留前导零。原表中的内部备注列 internal_note 留在原表。

English walkthrough  https://drop.space/en/agent-file-transfer/#convert-client-csv
中文步骤  https://drop.space/zh/agent-file-transfer/#convert-client-csv
