Rename, move, upload NFO, and cleanup — the main operation
The single operation that does everything: move files to correct dirs, rename to standard format, upload NFO/poster, clean up old dirs, and verify.
$ARGUMENTS — category: 电影, AV, or 剧目.
/scrape must have been run (creates scrape cache with correct names)./sync if you haven't yet today).media115 organize $CATEGORY
Expected output:
Organize plan for '电影': 5 to rename, 120 unchanged
...plan table...
Show the plan table to the user. Check for:
media115 scrape --forcemedia115 organize $CATEGORY --execute
This does 6 phases automatically:
At the end you will see:
✓ N 个文件验证通过
If it says "0 files verified" but you expected more, something went wrong — report to user.
media115 scan $CATEGORY
Expected: 0 anomalies, all files show skip (has NFO).
If anomalies remain after organize, check:
media115 scrape --force run if there were non-standard names?--execute automatically cleans up old source directories that no longer contain video files after the move. No separate --cleanup flag is needed.
Organize's verify phase refreshes the tree cache automatically. You only need to re-run /sync if you are starting work on a different category or the user made manual changes on 115.