Don't rename what isn't broken
An unrecognised video isn't necessarily misnamed. Theater Rescue finds out why UGREEN Theater failed to recognise each video, changes only what it can justify, and then checks that Theater recognises the same file afterwards.
Diagnosis before action. Evidence before modification. Approval before writing. Same-file verification after the rescan.
Inspiration
When Theater can't recognise a film or episode, it lands in Others: no poster, no title, episodes that won't group into seasons. On the UGREEN Community, one owner described around 2,000 files stuck there and asked Theater to explain what was wrong with them (community.ugreen.com/nas/pagesD/circle/post?id=600).
The obvious fix is a bulk renamer. But that is where things go wrong:
- Rename a film that was already named correctly, and nothing changes.
- "Fix" a phone recording, and it gets a stranger's movie title.
- Rename a file whose NFO says something else, and the library gets more confused.
- Do nothing, and thousands of videos stay invisible.
So the real question is: can an AI agent tell when it should not act?
What it does
Theater Rescue is a Uliya Skill for UGREEN AI NAS. For every video in Others it:
- Finds it in Theater's own list of unrecognised items.
- Investigates the real file: name, folder, media information, subtitles and NFO files, checked against UGREEN's official naming guidance.
- Decides one of four outcomes:
- Rename: the name really is the problem.
- Manual identification in Theater: the name is fine, so renaming won't help.
- Leave unchanged: a personal recording or an extra, not a film.
- Ask you: the evidence conflicts, for example the NFO names a different film.
- Repairs safely: nothing changes until you approve it, and conflicts are checked first. Same-name subtitles move with the video; an NFO moves only if it is readable and consistent with the file name. Shared NFO files and artwork stay in place. Nothing is overwritten or deleted, and changes are logged with your permission. If a move half-fails, it says exactly where each file is and offers to put it back.
- Proves it: after your rescan, a fix counts only if Theater recognises the same file, not just another copy with the same title.
Try the Evidence Lab
Click through five cases and see why the Skill renames one file and refuses to touch another:
- A misnamed movie: the case where a rename is justified.
- A well-named file Theater still fails on: no rename; Theater's manual identification instead.
- An NFO that names a different film: it stops and asks you.
- A camera recording: left alone.
- A move that half-fails: stopped, every file located, a move-back offered.
Only 1 of the 4 diagnostic cases ends in a rename. All inputs are synthetic and the agent outputs are simulated; real NAS runs are the finalist step.
How we built it
- A Markdown-only Uliya Skill, written with UGREEN's official Skill Creation Tool. Its checker reports zero errors and zero warnings.
- Three UGREEN experts work in sequence: the media expert finds what Theater couldn't recognise, the file expert inspects and (after approval) repairs, and the knowledge expert supplies UGREEN's official naming guidance.
- Every step uses only real results from the step before, and its exact UGREEN capability, approval rule and expected results are written down in the package.
- Rescans and manual identification have no capability in UGREEN's catalog, so the Skill asks you to do them in Theater and then checks the result.
Challenges
The hard part was not renaming files. It was deciding when not to. A file can be named correctly and still fail. An NFO can contradict the file name. A TV show's metadata can sit one folder above the episode. A move can succeed for the video and fail for its subtitle. Each of these became an explicit rule.
What we learned
- The most useful thing an agent can do with a library is often nothing: in most of our cases, the right answer was manual identification, a question, or no change.
- "Theater shows the right title" is not proof. Another copy of the same film can match, so success has to be checked against the same file.
- Writing against UGREEN's capability catalog forced precision: anything the catalog doesn't offer stays with the user.
How we tested it
- 47 synthetic cases are traced against the final rules, with no unsafe action and no false success claim in any traced case.
- These are paper traces by the author, not NAS runs. We say so plainly.
What's next
On a real UGREEN AI NAS: confirm what Theater returns for unrecognised items, then run a 20-file benchmark of public-domain films. The pass criteria are zero false renames, zero overwrites, zero unapproved changes, and only same-file recognitions counted as fixed.
Built With
- markdown
- skill-md
- ug-filemgr
- ug-filesystem
- ug-knowledge
- ug-video
- ugos-skill-creation-tool
- ugreen-ai-nas
- uliya
