Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube description info truncates at 160 chars, started today #25937
Comments
|
|
|
Strangely, descriptions still download correctly using JDownloader. With Youtube settings to download descriptions, the result the the same complete text file as before. |
|
Some things like |
|
I was able to fix this issue at least for my purposes in these two commits: https://github.com/randombyte-developer/youtube-dl/commits?author=randombyte-developer I am using the description to extract details about music videos like title and artist. Since it uses the video description it should also have fixed this issue. Here is a build for linux: https://github.com/randombyte-developer/youtube-dl/releases/tag/yt-fixed-description-1 |
|
Any idea when the main program will be updated with that fix? I'm in a hurry to download a channel before YouTube deletes it. Also even after the fix is applied, if in the future the description is truncated again, is there any way to get the program to display a warning letting me know that only a truncated description was downloaded? |
What you're asking for is if ytdl can implement sanity checks and possibly even probe the issue tracker for new bugs that may have a certain tag assigned like "data integrity" (just a suggestion), right? I'd fancy that, not sure how much of a sanity check process is already integrated. (if any) |
|
@randombyte-developer: |
|
I figured out what's causing the problem with downloading descriptions . For Use Chrome Inspect and look for instances of "description." Three of them contain the truncated description, including this line: However. one line begins like this: This line contains the complete correct description. The others only contain the truncated version. I'm speculating the YTDL uses the Meta Name line above for extracting the description. Youtube probably changed th way the meta name works. This looks like it'd be a small and easy change for YTDL to implement. How does one suggest this to their programmers? (Thanks to all who've answered!) |
I'm sure there's a few other regressions, these are the ones I found. |
|
I don't think so, no, but I may be wrong and have missed an important change like the addition of an arg. If anything, I would love to store both the original description as well as any set of possible translations that may be available. (same for title, tags, whatever...) If anyone knows whether there's any progress on that front that I missed, please kindly inform me, because it's quite a concern of mine. |
|
I don't understand why this issue has been closed. The issue remains exactly as it was when I first reported it. This command including write-description: youtube-dl --restrict-filenames --write-description -o "%%(title)s.%%(ext)s" -f 140 https://www.youtube.com/watch?v=-dac_2af0Ww ...still truncates descriptions at 160 characters. This problem has not been fixed. See my original report: Will this issue be re-opened, or should I start a new thread? Thanks! |
Forgive me if I'm mistaken, but it's closed because code has been merged that corrects the issue. This doesn't "fix" it for your Windows compiled executable until the next version is published/released. You still have to wait for the next version to be released, and update to it. |
|
Kind of a strange definition of closed. Most people assume that "closed" means the same thing as "solved" and it is not "solved" until the solution is in people's hands. That's not (yet) the case here. |
|
@joeschmoe40 That's not how it works. The issue tracker is for tracking issues in current development code, not for tracking problems in user's production code. But I compiled from source and run subirax's example, the description is still truncated. @michealespinola @remitamine Can you confirm this? If so, we should reopen this. |
|
I'm running from the |
|
You are correct. It's fixed. Turns out it's path issue and I was still running old version. Sorry for that. |
|
Thanks to michealespinola, johan456789 and libjared for clarifying this! Much appreciated! |
|
I can confirm that master with the above commits merged fixes the description truncation issue reported here is fixed, but it does NOT fix age gated videos. Please reopen and unlock #25945 (I'm not a fan of locking out issues entirely like the above until it is 100% confirmed that they are the same issue, because now I either have to write about it here and hope it gets noticed, or open a new one which would probably get locked again for being a duplicate) |
While age-gating occurred at the same time, it is not the same issue. (are you certain #25945 is the report you meant to reference - and not #25954?) Like on other websites, using cookies in association with your Google user account and settings will allow you to access the video. |
I agree it is not the same issue. I linked #25945 because I believe it was first confirmed by the bottom comment in that issue, then later posted in it's own issue in #25954. Of course, both are locked for discussion now because they were assumed to be this issue. youtube-dl has successfully bypassed age-gating sans cookies before, but if it can no longer do so, the resolution to #25954 is a documentation update. |
|
Note: The last (and, therefore, "current") version is 2020.06.16.1, which is over a month old. Is there any indication when a new version will be out, incorporating this fix (the problem of the description being truncated)? Given that we used to get new versions like every few days or so, this seems long overdue. |
|
@joeschmoe40 Actually it's really not hard to build the project yourself. But yes, I agree that an official build would be best. |
|
I originally wrote this as a reply to #26053, but it may be useful to readers here as well: Sergey - who has been handling releases since as long as I have been using youtube-dl - has been inactive for 10+ days now. I don't otherwise know what the dev/mod hierarchy is for this project. But given the current pandemic, I can only hope that he and his loved ones are well and in good health. |
|
@ebrawer I think it's just a |
|
After a successful If you want to make it obvious that you're running a different version, edit |
|
Just to be clear, I don't need this immediately, so I'm willing to wait. I just need to know that a solution will come out eventually. Not interested in creating more confusion by doing my own "make"s. To be clear, I need both of the following:
That's all. |
|
I was able to build the project using |
I simply change the package's python source code.
|
This is necessary to workaround the extraction bug currently present in youtube-dl (ytdl-org/youtube-dl#25937)
Downgrading to 2020.6.6 solves the issue. Other issues may popup (the ones fixed after 2020.6.6). |
Checklist
Verbose log
Description