Skip to content

Youtube music stop working #4339

@Idaho947

Description

@Idaho947

What version of Music Assistant has the issue?

2.6.0

How is the MA server installed?

Home Assistant OS Addon

Carefully read the Troubleshooting FAQ and confirm that

  • I have examined the logs and tried to resolve this issue
  • I have fixed any errors in the logs that relate to tags
  • I am not running MA across a VPN, VLAN, subnet, behind a firewall, or using local SSL or have any other complex network setup
  • I have disabled tool such as AdGuard, Pi-hole or pfSense and retested
  • I have checked my network setup to ensure mDNS/multicast is not being blocked
  • If using HA, I have confirmed the internal URL is set correctly
  • I have tried a wired connection for issues related to interrupted or poor playback quality
  • If the problem relates to a device then I have checked the device settings
  • If it is a frontend issue, I have tried a different widely used browser
  • I have reviewed the applicable player or music provider documentation
  • For voice problems, I have sought help elsewhere before returning here
  • For playback problems, I have recycled power to the physical device
  • I have tried restarting MA and rebooting the host

Have you reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

Since this morning, I no longer have any YouTube Music items displayed in my music assistant. I tried restarting the server, recreating a cookie... When I try to validate, I get this message:
ERROR: [youtube] xxxxxxxxxxxxxx: Requested format is not available. Use --list-formats for a list of available formats.

[youtube] Extracting URL: https://music.youtube.com/watch?v=dQw4w9WgXcQ
[youtube] dQw4w9WgXcQ: Downloading initial data API JSON
[youtube] dQw4w9WgXcQ: Downloading web music client config
[youtube] dQw4w9WgXcQ: Downloading web music player API JSON
[youtube] dQw4w9WgXcQ: Downloading player 27422632-main
WARNING: [youtube] dQw4w9WgXcQ: Signature extraction failed: Some formats may be missing
         player = https://www.youtube.com/s/player/27422632/player_ias.vflset/en_US/base.js
         Please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
2025-10-23 13:31:05.830 WARNING (MainThread) [asyncio] Executing <Handle HomeAssistantClient.subscribe_entities.<locals>.handle_message({'event': {'c': {'automation.awtrix_weather': {'+': {'a': {'current': 0}, 'lu': 1761219065.189438}}}}, 'id': 12, 'type': 'event'}) at /app/venv/lib/python3.13/site-packages/hass_client/client.py:152 created at /app/venv/lib/python3.13/site-packages/hass_client/client.py:389> took 0.281 seconds
2025-10-23 13:31:06.111 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-57' coro=<PlayerController._poll_players() running at /app/venv/lib/python3.13/site-packages/music_assistant/controllers/players.py:1649> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.13/asyncio/base_events.py:459> cb=[MusicAssistant.create_task.<locals>.task_done_callback() at /app/venv/lib/python3.13/site-packages/music_assistant/mass.py:385] created at /app/venv/lib/python3.13/site-packages/music_assistant/mass.py:376> took 0.107 seconds
WARNING: Only images are available for download. use --list-formats to see them
ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
2025-10-23 13:31:06.189 ERROR (MainThread) [music_assistant.webserver] Error handling message: CommandMessage(message_id=14, command='config/providers/save', args={'provider_domain': 'ytmusic', 'values': {'username': '[email protected]', 'po_token_server_url': 'http://127.0.0.1:4416', 'log_level': 'GLOBAL', 'enabled': True, 'name': None}, 'instance_id': 'ytmusic--Pg6YAfmX'})
Traceback (most recent call last):
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1645, in wrapper
    return func(self, *args, **kwargs)
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1801, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1860, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 3000, in process_video_result
    raise ExtractorError(
        'Requested format is not available. Use --list-formats for a list of available formats',
        expected=True, video_id=info_dict['id'], ie=info_dict['extractor'])
yt_dlp.utils.ExtractorError: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/venv/lib/python3.13/site-packages/music_assistant/providers/ytmusic/__init__.py", line 950, in _extract_best_stream_url_format
    info = ydl.extract_info(url, download=False)
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1634, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1663, in wrapper
    self.report_error(str(e), e.format_traceback())
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1103, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/yt_dlp/YoutubeDL.py", line 1042, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/webserver.py", line 394, in _run_handler
    result = await result
             ^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/config.py", line 300, in save_provider_config
    config = await self._update_provider_config(instance_id, values)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/config.py", line 995, in _update_provider_config
    await self.mass.load_provider_config(config)
  File "/app/venv/lib/python3.13/site-packages/music_assistant/mass.py", line 495, in load_provider_config
    await self._load_provider(prov_conf)
  File "/app/venv/lib/python3.13/site-packages/music_assistant/mass.py", line 680, in _load_provider
    await provider.handle_async_init()
  File "/app/venv/lib/python3.13/site-packages/music_assistant/providers/ytmusic/__init__.py", line 226, in handle_async_init
    if not await self._user_has_ytm_premium():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.13/site-packages/music_assistant/providers/ytmusic/__init__.py", line 987, in _user_has_ytm_premium
    stream_format = await self._get_stream_format(YTM_PREMIUM_CHECK_TRACK_ID)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

How to reproduce

Juste try to sync youtube music

Music Providers

Youtube music only one provideur is set

Player Providers

Google cast

Full log output

d5369777_music_assistant_2025-10-23T11-34-12.161Z.log

Additional information

I'm not the only one as I see.
The cookie format seems to have change too

What version of Home Assistant Core (if used) are your running

2025.10.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot

  • Yes

Metadata

Metadata

Labels

bugSomething isn't workingupstream issueIssue depends on an issue outside MA

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions