Thomas' Tech Tips

How to fix "yt-dlp" error "download_content() got an unexpected keyword argument"

31 January 2023 - Thomas Damgaard

I sometimes use the youtube-dl fork yt-dlp to download and archive videos in Linux.

Recently, yt-dlp started throwing this error:

ERROR: download_content() got an unexpected keyword argument

I could not figure out what caused the error and I had updated to the most recent from pypi via pip.

It appears to be a bug in the DR TV handler that has been fixed but not yet released.

In order to solve the issue, you can install yt-dlp from Git master using the following command:

python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz

This solved the issue for me at least.

Filed under: fix, howto, tip, tips, youtube-dl, yt-dlp

Back to article list