Youtube ERROR: 'content_html' #20803

Closed
opened 2026-02-21 11:22:52 -05:00 by deekerman · 12 comments
Owner

Originally created by @McFlat on GitHub (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

Originally created by @McFlat on GitHub (Jun 15, 2020). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser. - Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape. - Search the bugtracker for similar issues: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a broken site support - [x] I've verified that I'm running youtube-dl version **2020.06.06** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped - [x] I've searched the bugtracker for similar issues including closed ones ## Verbose log <!-- Provide the complete verbose output of youtube-dl that clearly demonstrates the problem. Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this: [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj'] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2020.06.06 [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 [debug] Proxy map: {} <more lines> --> ``` 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 <!-- Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them. --> Unable to download any videos at all from youtube at this time
Author
Owner

@on1razor commented on GitHub (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

@on1razor commented on GitHub (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
Author
Owner

@ragymorkos commented on GitHub (Jun 15, 2020):

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

@ragymorkos commented on GitHub (Jun 15, 2020): Confirming that I am getting the same error when downloading any channels. Also using most recent version (2020.06.06).
Author
Owner

@TheFrenchGhosty commented on GitHub (Jun 15, 2020):

YouTube changed something. Invidious is broken See: https://github.com/omarroth/invidious/issues/1241

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

@TheFrenchGhosty commented on GitHub (Jun 15, 2020): YouTube changed something. Invidious is broken See: https://github.com/omarroth/invidious/issues/1241 YouTube-DL still works for individual videos but ```%(upload_date)s``` doesn't return the date anymore.
Author
Owner

@tuxayo commented on GitHub (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 commented on GitHub (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?
Author
Owner

@tuxayo commented on GitHub (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

@tuxayo commented on GitHub (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 ```
Author
Owner

@McFlat commented on GitHub (Jun 15, 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

@McFlat commented on GitHub (Jun 15, 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
Author
Owner

@Kochise commented on GitHub (Jun 18, 2020):

Works : https://www.youtube.com/channel/xxx/videos
Breaks : https://www.youtube.com/user/xxx/videos

@Kochise commented on GitHub (Jun 18, 2020): Works : https://www.youtube.com/channel/xxx/videos Breaks : https://www.youtube.com/user/xxx/videos
Author
Owner

@johnr14 commented on GitHub (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

@johnr14 commented on GitHub (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
Author
Owner

@mohammadmasoumi commented on GitHub (Jun 25, 2020):

I had the same issue with python3.8.

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

@mohammadmasoumi commented on GitHub (Jun 25, 2020): I had the same issue with `python3.8`. So how I fixed that was using a `python3.7` virtual env
Author
Owner

@Xatenev commented on GitHub (Jul 2, 2020):

Can we get a new windows release with this fix?

@Xatenev commented on GitHub (Jul 2, 2020): Can we get a new windows release with this fix?
Author
Owner

@Uraharadono commented on GitHub (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] 
@Uraharadono commented on GitHub (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] ```
Author
Owner

@jrdutra commented on GitHub (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

@jrdutra commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#20803
No description provided.