SubsTUI
Encontre a legenda certa sem sair do terminal.
O SubsTUI é um navegador de arquivos com interface TUI que pesquisa, compara e baixa legendas ao lado dos seus vídeos. Ele usa o Subliminal para consultar múltiplos provedores e acrescenta um ranking próprio para separar o release correto de resultados com título parecido, ano errado ou outra fonte de vídeo.
O projeto está em fase alfa. A busca depende da disponibilidade e dos limites dos provedores.
Comece com um comando
Com o uv instalado, execute o SubsTUI sem clonar nem instalar o
projeto:
uvx --from git+https://github.com/codyzzd/substui.git substui
Depois da primeira publicação no PyPI, o comando fica ainda menor:
uvx substui
O uvx baixa o pacote e suas dependências em um ambiente isolado e abre a TUI. Ele funciona no
Windows, Linux e macOS. Assim como o npx requer Node, este método requer apenas o uv.
Instalar o uv
Windows, com Winget:
winget install --id=astral-sh.uv -e
macOS, com Homebrew:
brew install uv
Linux e macOS, com o instalador oficial:
curl -LsSf https://astral.sh/uv/install.sh | sh
No Windows também é possível usar o instalador oficial:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Instalação permanente
Para deixar o comando substui disponível de qualquer pasta:
uv tool install git+https://github.com/codyzzd/substui.git
substui
Após a publicação no PyPI:
uv tool install substui
substui
O pipx continua disponível como alternativa para quem já usa Python:
pipx install substui
substui
Se o comando não aparecer imediatamente após uma instalação permanente, execute
uv tool update-shell e abra um terminal novo.
O que ele faz
- Navega pelas pastas exibindo somente diretórios e arquivos de vídeo.
- Pesquisa em vários provedores, incluindo OpenSubtitles e OpenSubtitles.com.
- Ranqueia legendas por título, ano, hash, fonte, resolução, codecs e grupo de release.
- Classifica cada resultado como
EXATO,ÓTIMO,BOM,POSSÍVELouBAIXO. - Oculta resultados claramente incompatíveis, mas permite revisá-los com
F. - Baixa uma opção escolhida ou seleciona automaticamente o melhor match confiável.
- Salva idioma e última pasta entre execuções.
- Grava a legenda ao lado do vídeo, normalmente como
video.pt-BR.srt.
Como funciona o ranking
O score técnico do Subliminal é combinado com uma análise do nome real do release:
- Um hash igual recebe prioridade máxima.
- Título, ano, temporada e episódio definem a identidade do conteúdo.
BluRay,WEB-DL,TELESYNC, resolução, codecs e grupo ajudam a identificar o corte correto.- Ano, temporada ou episódio divergentes invalidam o resultado.
- Uma fonte diferente reduz a confiança porque pode indicar tempos e cortes diferentes.
Assim, uma legenda para The.Odyssey.2026.1080p.BluRay aparece acima de um making-of, de uma
versão de 2016 ou de outro filme que apenas contém “Odyssey” no nome.
Atalhos
| Tecla | Ação |
|---|---|
↑ / ↓ / Enter |
Navegar e selecionar |
R |
Buscar legendas novamente |
D |
Baixar a legenda selecionada |
B |
Baixar o melhor match confiável |
F |
Mostrar ou ocultar resultados fracos |
U |
Subir uma pasta |
Ctrl+L |
Digitar outro caminho |
Ctrl+Q |
Sair |
O idioma é escolhido no topo da interface. Português do Brasil (pt-BR) é o padrão.
Provedores
Alguns provedores funcionam sem conta; outros podem exigir credenciais, limitar requisições ou ficar temporariamente indisponíveis. O SubsTUI não hospeda legendas: ele consulta os provedores configurados pelo Subliminal e salva somente o resultado escolhido pelo usuário.
Desenvolvimento
git clone https://github.com/codyzzd/substui.git
cd substui
python -m venv .venv
python -m pip install -e ".[dev]"
python -m pytest
python -m ruff check .
python -m build
O CI testa o projeto no Windows e Linux com Python 3.10 e 3.13. Consulte RELEASING.md para publicar uma nova versão no PyPI.
Roadmap
- Tela para configurar provedores e credenciais.
- Pré-visualização de trechos antes do download.
- Download em lote para uma temporada ou pasta.
- Binários independentes para Windows, Linux e macOS.
- Instalação por gerenciadores como Winget e Homebrew.
Contribuindo
Issues e pull requests são bem-vindos. Veja CONTRIBUTING.md antes de enviar uma mudança maior.
Licença
Distribuído sob a licença MIT.
Metadata
Release files for substui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| substui-0.1.0.tar.gz | 14.1 kB | With provenance | Details for substui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| substui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for substui-0.1.0-py3-none-any.whl |
Total release size: 27.1 kB
Release files / substui-0.1.0.tar.gz
| Download URL | substui-0.1.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fbee4c985decc484a0cbec3aad3ce5f068bbb62d0a53b1a47fb2d2e7f680df8
|
|
BLAKE2b-256 checksum How to use checksums |
f812e185cb95232364f065715cc9745673c66cd6297daaf3927db720be1648f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / substui-0.1.0-py3-none-any.whl
| Download URL | substui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74b1ffe15e4e5de08ddba03e1bdc0f433b24e192d4a13c452c8a31014fc11f72
|
|
BLAKE2b-256 checksum How to use checksums |
6def7ee544dd684aed07ac53e54c6f55ee4a1ce7dcd015e811cb6fa8a2a15a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for substui 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for substui-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.