-2

I'm trying to download a YouTube playlist to my local computer, but youtube-dl constantly returns the below error after trying to download the first video from the playlist:

ExtractorError: Could not find JS function u'xm'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

youtube-dl reports its version as 2016.02.22, if relevant.

How can I solve this issue and download my videos?

Kaz Wolfe
  • 34,680

1 Answers1

0

This error is caused by you having a (relatively) old version of youtube-dl installed on your computer. YouTube's software changed, causing some various parts of the site, specifically the xm script, to be removed. The traceback essentially states this:

ExtractorError: Could not find JS function u'xm'

In order to remedy this issue, you should update your version of youtube-dl to the latest present in the software repositories.

Simply run these two commands to (first) update your package cache, and (second) update youtube-dl:

sudo apt update
sudo apt install youtube-dl
Kaz Wolfe
  • 34,680