Harden auth, add AI smart-search and post-download organization #11
Reference in New Issue
Block a user
Delete Branch "llm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security & correctness hardening:
caller (was fully unauthenticated — account-takeover hole).
getTorrentData noUpdate flag, Buffer.alloc, __dirname-relative reads,
res.statusCode in the error handler, const-scope pubsub.
Login-gated proxy + anti-indexing:
end mirrors from its token; serve a local login page instead of hitting TPB.
Torrent category:
from the TPB category id; captured at add time (migration).
Smart Search (movies/TV):
Ollama ranks releases against quality prefs (x265/1080p/~1.5GB/subs,
prefer uncut) returning a recommended pick, optional warned 4K, and other
editions. Front-end Smart Search box + dialog feeding the existing add flow.
Post-download organization -> Emby (public Movie/TV only):
TMDB canonicalizes title/year, files main video (+subs) into the library
with edition/quality-aware names (movies + TV SxxExx), stops seeding, and
triggers an Emby library scan. Low-confidence matches are flagged, not
mis-filed; correctable via "Fix match". Adds organizedAt/metadata columns.
Shared helpers: controller/tmdb.js, controller/ollama.js. Config blocks for
tmdb/ollama/search/emby/library/organize (secrets stay in gitignored secrets.js).
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com