-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
youtube language selection for video title/description #27738
Comments
10 tasks
mjsir911
added a commit
to mjsir911/youtube-dl
that referenced
this issue
Mar 25, 2021
- Fixes ytdl-org#28421 - Fixes ytdl-org#27738 - Fixes ytdl-org#27499 - Fixes ytdl-org#10758 - Fixes mpv-player/mpv#8676
mjsir911
added a commit
to mjsir911/youtube-dl
that referenced
this issue
Mar 26, 2021
- Fixes ytdl-org#28421 - Fixes ytdl-org#27738 - Fixes ytdl-org#27499 - Fixes ytdl-org#10758 - Fixes mpv-player/mpv#8676
mjsir911
added a commit
to mjsir911/youtube-dl
that referenced
this issue
Mar 27, 2021
- Fixes ytdl-org#28421 - Fixes ytdl-org#27738 - Fixes ytdl-org#27499 - Fixes ytdl-org#10758 - Fixes mpv-player/mpv#8676
mjsir911
added a commit
to mjsir911/yt-dlp
that referenced
this issue
Jan 29, 2022
Pulled from mjsir911/youtube-dl@378a5335 - Fixes yt-dlp#387 - Fixes ytdl-org/youtube-dl#28421 - Fixes ytdl-org/youtube-dl#27738 - Fixes ytdl-org/youtube-dl#27499 - Fixes ytdl-org/youtube-dl#10758 - Fixes mpv-player/mpv#8676
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Description
Youtube allows adding translated video titles, descriptions and subtitles using Creator Studio -> Subtitles. These go on top of the video's default title and description in the language specified in the video details. Youtube will then display the video metadata in the appropriate language depending on the viewer's preferences. The translated titles and descriptions also get included into youtube search.
Youtube-dl currently does not seem to provide any means of accessing these translated versions. I have reviewed the listing of commandline options and tried a bunch of things.
--sub-lang
has no effect,--add-header Accept-Language:en
and variants are ignored,--cookies
from my current browser session don't influence it. I conclude that the language selection is probably javascript-driven. I have searched for prior discussions and tickets on this issue. I only found question #17131 which was asking the same thing, but was closed as 'incomplete' without giving attention to the issue itself.I have prepared a testing video at https://www.youtube.com/watch?v=mO13t8aNzQI . Its default video title and description indicate japanese language, and it has english and czech translations. I can toggle between them freely on the youtube website, but youtube-dl only ever sees the default jp one.
My suggestion is to implement commandline knobs for title/description language selection, like the ones for subtitle language selection. In fact, maybe it would be cleaner to elevate the settings for subtitle language selection to a general language selection system. Multiple description files would be disambiguated the same way subtitles are now. There can only be one title for the download filename though. The info.json file would need to be written once for every language as well, or have its structure changed to accomodate translations.
The text was updated successfully, but these errors were encountered: