yt-dlp: [ytmusic] Some music only available on YouTube Music fail to download

Checklist

  • I’m reporting that yt-dlp is broken on a supported site
  • I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
  • I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read about sharing account credentials and I’m willing to share it if required

Region

United States

Provide a description that is worded well enough to be understood

Youtube Music to Youtube redirection no longer works for some songs. For example: https://music.youtube.com/watch?v=gm-MPlXzt_8 works but https://www.youtube.com/watch?v=gm-MPlXzt_8 does not.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vUF', 'https://music.youtube.com/watch?v=nugmZqIP0uk']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.05.22 from yt-dlp/yt-dlp [7977b329e] (pip)
[debug] Python 3.13.3 (CPython arm64 64bit) - macOS-15.5-arm64-arm-64bit-Mach-O (OpenSSL 3.5.0 8 Apr 2025)
[debug] exe versions: ffmpeg 7.1.1 (setts), ffprobe 7.1.1
[debug] Optional libraries: Cryptodome-3.23.0, brotli-1.1.0, certifi-2025.04.26, mutagen-1.47.0, requests-2.32.3, sqlite3-3.50.0, urllib3-2.4.0, websockets-15.0.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Plugin directories: none
[debug] Loaded 1859 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2025.05.22 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.05.22 from yt-dlp/yt-dlp)
[debug] [youtube] [pot] PO Token Providers: none
[debug] [youtube] [pot] PO Token Cache Providers: memory
[debug] [youtube] [pot] PO Token Cache Spec Providers: webpo
[youtube] Extracting URL: https://music.youtube.com/watch?v=nugmZqIP0uk
[youtube] nugmZqIP0uk: Downloading webpage
[youtube] nugmZqIP0uk: Downloading tv client config
[debug] Loading youtube-sts.3b4b7883-main from cache
[youtube] nugmZqIP0uk: Downloading tv player API JSON
[youtube] nugmZqIP0uk: Downloading ios player API JSON
ERROR: [youtube] nugmZqIP0uk: Video unavailable. This video is not available
  File "/opt/homebrew/Cellar/yt-dlp/2025.5.22/libexec/lib/python3.13/site-packages/yt_dlp/extractor/common.py", line 748, in extract
    ie_result = self._real_extract(url)
  File "/opt/homebrew/Cellar/yt-dlp/2025.5.22/libexec/lib/python3.13/site-packages/yt_dlp/extractor/youtube/_video.py", line 3821, in _real_extract
    self.raise_no_formats(reason, expected=True)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2025.5.22/libexec/lib/python3.13/site-packages/yt_dlp/extractor/common.py", line 1269, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

No, afaik yt-dlp cannot access the autogenerated liked music playlist (the generic https://music.youtube.com/playlist?list=LM). I am using ytmusicapi for it.

Here is the implementation if you wanna take a look at mine: ytmlm

Relevant section: https://github.com/adyanth/ytmlm/blob/28e205b0bc72031e3c3060cee33e25b02e200c93/ytmlm.py#L168-L191

That’s very strange, because https://www.youtube.com/watch?v=gm-MPlXzt_8 loads fine for me in a browser. Can you please send the output of yt-dlp -vF --extractor-args "youtube:player_client=all;formats=duplicate,missing_pot" https://www.youtube.com/watch?v=gm-MPlXzt_8