Closed DWSuryo closed 1 month ago
Not currently possible. See #622
Okay. I've mentioned the same issue number too. Perhaps the workaround is to scrape directly using web scraping programs? Of course, this would be something outside yt-dlp so it could be off-topic.
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Please make sure the question is worded well enough to be understood
Hello again. I have a project to extract (not download) music data in YouTube website and music, particularly title, alternate title, translated title, channel, duration, and views. I've done some parts, but there's something I want to ask, that is how to extract translated title in YT especially YT Music. As for the context, some songs in YT Music have localized/translated titles. Here's the example
YT Music link: https://music.youtube.com/playlist?list=OLAK5uy_lSbsoiec9atxAdI3oRuwqRD7aueQospLQ:
and then if we use remove the "music." part, here's the YT link https://www.youtube.com/playlist?list=OLAK5uy_lSbsoiec9atxAdI3oRuwqRD7aueQospLQ and the screenshot
Both screenshots have different titles, but what I see in the YT Music, it has localized title (or at least translated). As far as I know as today, YT Music support in yt-dlp is still in enhancement (as in https://github.com/orgs/yt-dlp/projects/3/views/1 especially #622) so I suppose it's partially working with some data not being extracted properly. What I aware so far is that using music.youtube.com redirects to youtube.com as I tried. And another info, YT Music can be a bit messy which is indicated by number of views of a song (we can see at both images, but this one will be a different topic). I use my previous code based on #10782 and devscripts/cli_to_api.py. here's the code I've been developing so far:
and here's the csv output sample
As we can see, the title follows the YT desktop, which is expected that the music link is redirected. So, back to the topic, how do I extract the localized titles from YT music?
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output