Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "...from English" autogenerated subtitles #642

Closed
fsobolev opened this issue Nov 7, 2023 · 1 comment · Fixed by #645
Closed

Support "...from English" autogenerated subtitles #642

fsobolev opened this issue Nov 7, 2023 · 1 comment · Fixed by #645
Labels
feature New feature or request in-beta This issue is fixed in a beta version
Milestone

Comments

@fsobolev
Copy link
Member

fsobolev commented Nov 7, 2023

Example video: https://www.youtube.com/watch?v=Jr8EGJwDCk8

Subtitle codes here are LANG-en where LANG is 2 or 3 characters language code.

$ yt-dlp --list-subs https://www.youtube.com/watch?v=Jr8EGJwDCk8
[youtube] Extracting URL: https://www.youtube.com/watch?v=Jr8EGJwDCk8
[youtube] Jr8EGJwDCk8: Downloading webpage
[youtube] Jr8EGJwDCk8: Downloading ios player API JSON
[youtube] Jr8EGJwDCk8: Downloading android player API JSON
[youtube] Jr8EGJwDCk8: Downloading m3u8 information
[info] Available automatic captions for Jr8EGJwDCk8:
Language   Name                               Formats
en                                            vtt
af-en      Afrikaans from English             vtt, ttml, srv3, srv2, srv1, json3
ak-en      Akan from English                  vtt, ttml, srv3, srv2, srv1, json3
sq-en      Albanian from English              vtt, ttml, srv3, srv2, srv1, json3
am-en      Amharic from English               vtt, ttml, srv3, srv2, srv1, json3
ar-en      Arabic from English                vtt, ttml, srv3, srv2, srv1, json3
hy-en      Armenian from English              vtt, ttml, srv3, srv2, srv1, json3
as-en      Assamese from English              vtt, ttml, srv3, srv2, srv1, json3
ay-en      Aymara from English                vtt, ttml, srv3, srv2, srv1, json3
az-en      Azerbaijani from English           vtt, ttml, srv3, srv2, srv1, json3
bn-en      Bangla from English                vtt, ttml, srv3, srv2, srv1, json3
eu-en      Basque from English                vtt, ttml, srv3, srv2, srv1, json3
be-en      Belarusian from English            vtt, ttml, srv3, srv2, srv1, json3
bho-en     Bhojpuri from English              vtt, ttml, srv3, srv2, srv1, json3
...

Instead of asking users to also type such codes in preferences they can be autogenerated. For example, if there's it, fr in settings then Parabolic could pass it, it-en, fr, fr-en to yt-dlp.

@fsobolev fsobolev added the feature New feature or request label Nov 7, 2023
@fsobolev fsobolev added this to the V2023.11.0 milestone Nov 7, 2023
@nlogozzo nlogozzo added the in-beta This issue is fixed in a beta version label Nov 11, 2023
@nlogozzo
Copy link
Member

https://github.com/NickvisionApps/Parabolic/releases/tag/2023.11.0-beta2

Will be available via flathub-beta within the hour!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request in-beta This issue is fixed in a beta version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants