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

Youtube ERROR: 'content_html' #25675

Closed
McFlat opened this issue Jun 15, 2020 · 12 comments
Closed

Youtube ERROR: 'content_html' #25675

McFlat opened this issue Jun 15, 2020 · 12 comments

Comments

@McFlat
Copy link

@McFlat McFlat commented Jun 15, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.06.06
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl -v https://www.youtube.com/user/PreciousTestimonies
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/user/PreciousTestimonies']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.06.06
[debug] Python version 3.7.3 (CPython) - Linux-4.19.0-8-amd64-x86_64-with-debian-10.4
[debug] exe versions: ffmpeg 4.1.4-1, ffprobe 4.1.4-1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:user] PreciousTestimonies: Downloading channel page
[youtube:playlist] UUUFfRr75RtMmT3ArGNZeZgg: Downloading webpage
[download] Downloading playlist: Uploads from Precious Testimonies
[youtube:playlist] UUUFfRr75RtMmT3ArGNZeZgg: Downloading page #1
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/YoutubeDL.py", line 2019, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/YoutubeDL.py", line 870, in process_ie_result
    extra_info=extra_info)
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/YoutubeDL.py", line 969, in process_ie_result
    ie_entries, playliststart, playlistend))
  File "/usr/local/lib/python3.7/dist-packages/youtube_dl/extractor/youtube.py", line 313, in _entries
    content_html = more['content_html']
KeyError: 'content_html'

Description

Unable to download any videos at all from youtube at this time

@razor91111
Copy link

@razor91111 razor91111 commented Jun 15, 2020

I got a similar error today when I tried to download a news channel with a video, although yesterday everything worked like a clock

@ragymorkos
Copy link

@ragymorkos ragymorkos commented Jun 15, 2020

Confirming that I am getting the same error when downloading any channels. Also using most recent version (2020.06.06).

@TheFrenchGhosty
Copy link

@TheFrenchGhosty TheFrenchGhosty commented Jun 15, 2020

YouTube changed something. Invidious is broken See: iv-org/invidious#1241

YouTube-DL still works for individual videos but %(upload_date)s doesn't return the date anymore.

@tuxayo
Copy link

@tuxayo tuxayo commented Jun 15, 2020

Unable to download any videos at all from youtube at this time

I tried downloading the first video in the playlist and started downloading. Do you have an example without a playlist?

@tuxayo
Copy link

@tuxayo tuxayo commented Jun 15, 2020

YouTube-DL still works for individual videos but %(upload_date)s doesn't return the date anymore.

Sorry, I missing this.

It has issues with nickname and thumbnail. Did they worked before?

WARNING: unable to extract uploader nickname
WARNING: unable to extract video thumbnail

@McFlat
Copy link
Author

@McFlat McFlat commented Jun 16, 2020

what if youtube changes the client-version number in the header? it will break again? seems unreliable but its all we have to work with for now, we have to keep on eye on this to change in the future

@johnr14
Copy link

@johnr14 johnr14 commented Jun 19, 2020

I am having similar problem on a channel/user with more than 100 videos.
There seems to be a fix available that never was merged and is a recurrent issue #14074 and #14083 if this is the same as reported by others.

[debug] youtube-dl version 2020.06.06
[debug] Python version 3.8.3 (CPython) - Linux-5.6.14-300.fc32.x86_64-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.3, ffprobe 4.2.3

@mohammadmasoumi
Copy link

@mohammadmasoumi mohammadmasoumi commented Jun 25, 2020

I had the same issue with python3.8.

So how I fixed that was using a python3.7 virtual env

@Xatenev
Copy link

@Xatenev Xatenev commented Jul 2, 2020

Can we get a new windows release with this fix?

@Uraharadono
Copy link

@Uraharadono Uraharadono commented Jul 19, 2020

Edit: In my case (Windows 10) I was using portable version, when I had app installed.

So I :

  1. Deleted portable version
  2. Run the installed version as administrator and updated
  3. Re-opened installed version (close -> run as administrator)
  4. Works as charm

(original) Having same issue here as well:

[07/20/20 01:35:54] ERROR: 'content_html'
[07/20/20 01:35:54] Traceback (most recent call last):
[07/20/20 01:35:54]   File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 807, in extract_info
[07/20/20 01:35:54]   File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 968, in process_ie_result
[07/20/20 01:35:54]   File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\extractor\youtube.py", line 314, in _entries
[07/20/20 01:35:54] KeyError: 'content_html'
[07/20/20 01:35:54] 
@jrdutra
Copy link

@jrdutra jrdutra commented Sep 18, 2020

Its just execute the youtube-dl as sudo in linux, like this:

sudo youtube-dl https://www.youtube.com/playlist?list=PLAYLIST-CODE-HERE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.