I was using an old yt-dlp from 2024, and Mopidy-YouTube playback would start and then often quickly stop. So, I upgraded to the latest yt-dlp 2025.11.12. Then YouTube playback never worked and always totally hung Mopidy. SoundCloud had worked before, but now it also hung Mopidy in the same way. Here is failing Mopidy output:
[youtube] HuFYqnbVbzY: Downloading webpage
WARNING: [youtube] No supported JavaScript runtime could be found. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. See
for details on installing one. To silence this warning, you can use --extractor-args “youtube:player_client=default”
[youtube] HuFYqnbVbzY: Downloading android sdkless player API JSON
[youtube] HuFYqnbVbzY: Downloading web safari player API JSON
[youtube] HuFYqnbVbzY: Downloading m3u8 information
[youtube] HuFYqnbVbzY: Downloading m3u8 information
[youtube] HuFYqnbVbzY: Downloading m3u8 information
OverflowError: Python int too large to convert to C long
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/mopidy/audio/actor.py”, line 212, in on_message
elif msg.type == Gst.MessageType.BUFFERING:
^^^^^^^^
SystemError: <built-in method get_value of gi.FieldInfo object at 0x74c29530> returned a result with an exception set
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
That same yt-dlp 2025.11.12 seemed to work fine from the command line.
Then I downgraded yt-dlp to 2025.2.19 because Can someone confirm me that has working youtube plugin? - #2 by sapristi confirmed it as working. Now both YouTube and SoundCloud work fine. This is output from successful playback of the same YouTube “live” stream:
[youtube] HuFYqnbVbzY: Downloading webpage
[youtube] HuFYqnbVbzY: Downloading tv client config
[youtube] HuFYqnbVbzY: Downloading player 89e685a2
[youtube] HuFYqnbVbzY: Downloading tv player API JSON
[youtube] HuFYqnbVbzY: Downloading ios player API JSON
[youtube] HuFYqnbVbzY: Downloading m3u8 information
[youtube] HuFYqnbVbzY: Downloading m3u8 information
I’m using Mopidy 3.4.2-2 from apt dot mopidy dot com, on a Raspberry Pi 2 B running Raspbian Bookworm. Python is 3.11.2-1.