youtube-dl: Can't download youtube playlists or channels
Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
- Put an
x
into all the boxes [ ] relevant to your issue (like this:[x]
) - Use the Preview tab to see what your issue will actually look like
Make sure you are using the latest version: run youtube-dl --version
and ensure your version is 2017.08.27.1. If it’s not, read this FAQ entry and update. Issues with outdated version will be rejected.
- [ x] I’ve verified and I assure that I’m running youtube-dl 2017.08.27.1
Before submitting an issue make sure you have:
- [ x] At least skimmed through the README, most notably the FAQ and BUGS sections
- [ x] Searched the bugtracker for similar issues including closed ones
What is the purpose of your issue?
- [ x] Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- Question
- Other
The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
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 here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/playlist?list=UUXDTqHPpvXuBewj_zFhAyxg', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.27.1
[debug] Python version 3.5.2 - Linux-4.4.0-87-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:playlist] UUXDTqHPpvXuBewj_zFhAyxg: Downloading webpage
[download] Downloading playlist: Uploads from شبكة أخبار باباعمرو
[youtube:playlist] UUXDTqHPpvXuBewj_zFhAyxg: Downloading page #1
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/__init__.py", line 465, in main
_real_main(argv)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/__init__.py", line 455, in _real_main
retcode = ydl.download(all_urls)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1958, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 787, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 939, in process_ie_result
ie_entries, playliststart, playlistend))
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/youtube.py", line 272, in _entries
content_html = more['content_html']
KeyError: 'content_html'
<end of log>
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Can’t download (some) playlists or channels
youtube-dl 'https://www.youtube.com/playlist?list=UUXDTqHPpvXuBewj_zFhAyxg' -v
gives the error above
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 7
- Comments: 24 (1 by maintainers)
This should have a new update to fix this ; youtu.be download is the main feature for this script. Hope this happens soon
The YouTube revised today, you can modify this files: youtube_dl\extractor\youtube.py
OK
Patch tested on a user and a channel, don’t blame if it breaks something else…
I would consider @ivan patch a temporary backward compatibility from YouTube & they may disable this option at any time.
@awei78 Why don’t you create a pr for your patch?
if i try download some channels - i see this [youtube:channel] playlist UC_some_channekl_ID: Downloading 0 videos
Here is a patch using @awei78 's fix until official fix:
https://github.com/GTechAlpha/youtube-dl/commit/0ae0db13d1cecefde301bf5ba6770f409b3bb6bf.patch
Full credit and thanks to @awei78 .
I experienced this issue as well, awei78 's suggested changes to extractor/youtube.py fixed the error for me; thanks!