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.
[CBS] Extraction failes #15737
[CBS] Extraction failes #15737
Comments
|
My Python skills are basically non-existant (the code I wrote today is the most I have done reading/writing python), but I have made changes to a copy on my machine that seems to work. I just wrapped the code snippet below in a try-except block and it seems to be working.
This also seems to be a duplicate of the issue: #13490. |
|
I've been having the same problem trying to download the March 5 and March 6 episodes of The Price Is Right from https://www.cbs.com/shows/the_price_is_right/video/GTpqMvkceyNvH20lm69bMQrCOj3HvtL8/the-price-is-right-3-5-2018/ and https://www.cbs.com/shows/the_price_is_right/video/2INTSJGKeWOhuYsANboSttUetNxmTvhY/the-price-is-right-3-6-2018/ . As others have stated, it seems to be limited to these episodes of this program. A Verbose printout of the former yields the following: C:\Users\TPIRFan\Program Files\NewYoutube-dl3>youtube-dl -v "https://www.cbs.com/shows/the_price_is_right/video/GTpqMvkceyNvH20lm69bMQrCOj3HvtL8/the-price-is-right-3-5-2018/" I'm not well-versed in this sort of thing, so it's entirely possible that I just don't have the fix implemented correctly. Is there a particular place on the drive where it needs to go? |
|
Find the file extractor/cbs.py (in my case, it was located in /usr/lib/python3.6/site-packages/youtube_dl/extractor/cbs.py) Search for the code (as mentioned above)
In my case, the tp_formats line has 12 spaces beforehand. So, insert a line before the tp_formats line, with 12 spaces, followed by "try:" (without the quotes). Next, indent the 5 lines above by 4 spaces. Follow the subtitles line with a line that starts with 12 spaces, then "except:" (without the quotes) It should look like this now:
(All lines indented to the original level that the tp_formats line was.) Save that, and try again. It worked perfectly for me. |
|
I'm afraid I'm still fouling something up. Is there an easy way to find where this file is located on my machine? I've only been able to locate it in the same directories that YouTube-dl itself is installed in, and editing it there doesn't seem to be affecting anything. (Incidentally, YouTube-dl is downloading today's Price Is Right without any problems, but Monday and Tuesday's shows still won't cooperate.) |
|
I can verify that this fix worked. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.02.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
When downloading the latest episode of CBS's Bull (2x15), I get the following error:
This issue seems to be confined to this particular video as the download of other videos from cbs.com, released before and after the one in question, works perfectly fine.