Repository navigation
v0.47.3-beta
·
2030 commits
to master
since this release
What's new since v0.37.1-beta
Added
- Movie Subtitle Management — Movie detail page now displays existing subtitle sidecar files with a full actions menu (HI removal, common fixes, timing offset).
- Timing Offset Tool — New "Shift Timing" option in the subtitle actions menu for applying millisecond offsets to sidecar files directly from the UI.
- Full UI Localization (i18n) — All pages and components use react-i18next; language can be switched between German and English in settings. Library, Wanted, History, Logs, Plugins, Cleanup — everything translated.
- Extended Language Profiles — 74 language options (up from 20), HI preference (prefer/avoid/only), forced scoring, cutoff language, and audio exclusion are now fully exposed in the profile editor.
- LanguagePillSelector — Multi-language selection in profiles uses interactive pills with a dropdown, replacing free-text comma-separated input.
- Redesigned Cleanup Page — 5 fixed operations (Language Filter, Format Upgrade, Orphan Files, Orphan DB Entries, Old Backups) as expandable cards with toggle, inline config, schedule picker, and dry-run preview showing concrete file examples. No "Create Rule" workflow needed anymore.
- Subtitle Presence Pills — The Wanted table now shows status-colored pills (e.g. "DE missing", "DE ASS ↑") instead of cryptic symbols, with tooltips.
- Unified History Tab — Activity log and download history merged into one tab with sub-filters (Downloads / Extractions / Scans / Deletions).
- Update Indicator — Pulsing amber dot on the Settings icon and a version chip when a newer GitHub Release is available.
- Logs Page — Dedicated
/logsroute with sidebar icon for direct backend log access. - Persistent Settings Navigation — Permanent sidebar on all settings sub-pages; 5 new dedicated sub-pages (Post-Processing, Hooks, Metadata/AniDB, Stream Management, Transcription).
- Advanced Fields System — FormGroup
advancedprop with an amber badge collapses power-user options behind a toggle to reduce visual clutter. - Post-Processing UI — Toggle and command textarea for
post_download_commandwith 7 substitution variables. - AniDB Title Dump Resolver — Offline
anime-titles.xml.gz(91k+ entries, 36h cache) as Tier-4 fallback for AnimeTosho searches with no external ID. - Ollama Chat API (V9) —
use_chat_apiflag enables/api/chatwithseries_contextas a system message for improved translation coherence. - Circuit Breaker Persistence — Breaker state and failure counters survive restarts via new
circuit_breaker_stateDB table. - Rate Limiting on Critical Routes — Config import/export, auth setup, provider search.
- DB Performance Indexes — Composite index
(status, retry_after)onwanted_items;languageindex onsubtitle_downloads. - +205 new tests — 147 backend route tests, 58 backend unit tests, 72 security tests, 6 frontend tests.
Fixed
- AnimeTosho Provider — Completely rewritten with correct 2-step API flow (
?show=torrent&id=); now reliably returns subtitle attachments. - Wanted: items removed after download — Wanted entries are now deleted from the database immediately after a successful subtitle download instead of accumulating with
status = "found". - Dashboard metrics —
TOTAL SUBTITLES,AVG SCORE, andLOW SCOREalways showed—;/statsnow returnstotal_subtitles,average_score, andlow_score_count. - Toggle revert bug — Settings toggles were reverting to OFF immediately after click due to
=== 'true'string comparison against boolean values; all affected tabs corrected. - German locale encoding — 90 broken UTF-8 sequences (ä, Ü, ß) in de/common.json replaced with correct umlauts.
- Provider search thread hang —
ThreadPoolExecutornow shut down withcancel_futures=True; prevents blocking Flask responses when a provider thread exceeds its timeout. - Alembic on PostgreSQL —
engine.begin()wraps all DDL in explicit transactions;ALTER COLUMNemitsUSINGcast clause forDateTimecolumns. - Batch-extract data loss — An empty sidecar file no longer triggers removal of the embedded subtitle stream from the MKV.
- Various: Cleanup rules API contract fixes (5 mismatches), Activity tab i18n, Wanted page double scroll, Settings nav spacing, PillTabs in light mode, and more.
Security
- P1 — Provider Domain Allowlist —
validate_download_url()validates all 6 provider download methods against a per-provider domain allowlist; blocks SSRF via compromised provider responses. - P2 — Filename Sanitization —
werkzeug.secure_filename()applied to all provider-supplied filenames before disk writes. - P3 — Prompt Injection Guard — Subtitle lines and glossary entries are sanitized before LLM prompt construction.
- P4 — Magic-Byte Validation — Downloaded subtitle content validated against expected format signatures (SRT/ASS/VTT); binary payloads rejected.
- P5 — Streaming Size Cap — All provider downloads capped at 50 MB via streaming download helper.
- Additional: command injection fix (shlex.split), IP allowlist enforcement, SSRF on plugin URLs, webhook auth hardening, path traversal fixes.
Deployed: ghcr.io/abrechen2/sublarr:0.47.3-beta
Docs: https://wiki.sublarr.de