Repository navigation
Idioma y subtítulos para los audios y videos - #14
Merged
Merged
Conversation
Agrega Idioma (codigo BCP 47, nulo = espanol) a Medio, MedioDto, CrearMedioRequest, ActualizarMedioRequest y SubirMedioRequest. El panel valida y normaliza el codigo (Services/Idiomas.cs). La migracion se genera aparte con dotnet ef migrations add AgregarIdiomaMedio. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EB4pRoGeNrZBwz45Y4jvo5
SubirMedioRequest acepta un archivo opcional Subtitulos (.vtt). Se valida (solo audio o video, hasta 1 MB, empieza con WEBVTT), se guarda en la carpeta subtitulos con Content-Type text/vtt y su ruta va a SubtitulosUrl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EB4pRoGeNrZBwz45Y4jvo5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
La app nueva trae narraciones en varios idiomas y con subtítulos, pero la API no tenía cómo guardar ninguna de las dos cosas. Este PR lo agrega.
Idioma de cada medio:
Subtítulos .vtt:
Un mismo lugar ya podía tener varios audios, así que eso no cambió.
Qué no incluye: cambiar el subtítulo de un medio que ya existe, cargar los 88 audios ni regenerar schema.d.ts, que ya estaba desactualizado y conviene regenerarlo completo.
Compila sin errores.
Relacionado con #10