Skip to content

SubGen 0.5.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 13 Nov 18:05
· 16 commits to main since this release
a55cfb9

Highlights

  • Clean URLs. The web UI uses real paths (/queue, /editor/12, /settings?tab=security) instead of #/…. Reloads and bookmarks work, signed-out visitors return to the page they asked for after signing in, and old #/ bookmarks are upgraded automatically.
  • Two-factor sign-in from Settings. Turn it on in Settings → Security with a setup key and a confirmation code. Sign-in asks for the six-digit code on a second step, only when it is on. SUBGEN_TOTP_SECRET still works as an override.
  • Default models install themselves. Whisper Small and NLLB-200 600M are built in and install automatically when missing; the queue waits while they download. When you switch models, SubGen offers to delete the previous one or keep it. Any model not in use can be deleted.
  • Arabic and other right-to-left subtitles. Each line starts with a right-to-left marker (U+202B), so players that lay lines out left to right keep ., ! and dialogue dashes on the correct side.
  • Simpler login page. The decorative timecode block is gone.

Upgrade notes

  • The first start downloads about 3 GB of models if /models doesn't already have them. On servers without internet, set SUBGEN_AUTO_INSTALL_MODELS=false and copy models in manually.
  • SUBGEN_WHISPER_MODEL and SUBGEN_TRANSLATION_MODEL are no longer read. Choose models on the Models page.
  • Right-to-left subtitles written by earlier versions keep the old layout until you regenerate them or re-save them in the editor.
  • API: POST /api/login answers {ok: false, totp_required: true} when a code is needed; send it to POST /api/login/totp, or include totp_code in the first request. New endpoints: /api/totp, /api/totp/setup, /api/totp/enable, /api/totp/disable. GET /api/models adds selected; POST /api/models/select returns previous. See docs/API.md.

Container

docker pull ghcr.io/fahed-alhammadi/subgen:0.5.0

Back up /config before upgrading, then run docker compose pull && docker compose up -d.

Full changes: v0.4.0...v0.5.0