question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

My error code is below. I am having trouble playing Youtube videos as it says This video is unavailable. However if I go into my browser on my PC it is not region restricted or anything. Youtube-Dl is the latest version.

May 04 10:37:20 raspberrypi mopidy[18681]: INFO     [YouTubeBackend-3] mopidy_youtube Searching YouTube for query "mkbhd"
May 04 10:37:20 raspberrypi mopidy[18681]: INFO     [YouTubeBackend-3] mopidy_youtube session.get triggered: search
May 04 10:37:22 raspberrypi mopidy[18681]: INFO     [YouTubeBackend-3] mopidy_youtube youtube LibraryProvider.search "{'album': ['mkbhd']}"
May 04 10:37:22 raspberrypi mopidy[18681]: INFO     [YouTubeBackend-3] mopidy_youtube youtube LibraryProvider.search "{'artist': ['mkbhd']}"
May 04 10:37:30 raspberrypi mopidy[18681]: INFO     [YouTubeBackend-3] mopidy_youtube youtube LibraryProvider.lookup "youtube:video/iPhone 11 Pro Review 6 Months Later.nxf41fMX_Y4"
May 04 10:37:30 raspberrypi mopidy[18681]: [youtube] nxf41fMX_Y4: Downloading webpage
May 04 10:37:30 raspberrypi mopidy[18681]: INFO     [YouTubeBackend-3] mopidy_youtube youtube PlaybackProvider.translate_uri "youtube:video/iPhone 11 Pro Review 6 Months Later.nxf41fMX_Y4"
May 04 10:37:31 raspberrypi mopidy[18681]: [youtube] nxf41fMX_Y4: Downloading video info webpage
May 04 10:37:34 raspberrypi mopidy[18681]: ERROR: nxf41fMX_Y4: YouTube said: This video is unavailable.
May 04 10:37:34 raspberrypi mopidy[18681]: ERROR    [Thread-12] mopidy_youtube audio_url error "ERROR: nxf41fMX_Y4: YouTube said: This video is unavailable."
May 04 10:37:34 raspberrypi mopidy[18681]: WARNING  [Core-7] mopidy.core.tracklist Track is not playable: youtube:video/iPhone 11 Pro Review 6 Months Later.nxf41fMX_Y4

Edit: I have tried different backends but still the same problem. I have tried both with api enabled and disabled and still nothing. My configuration is below:

enabled = true
youtube_api_key = xxxxxxxxxxxxxxx
threads_max = 16
search_results = 15
playlist_max_videos = 20
api_enabled = false

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
trygveaacommented, May 5, 2020

But in this case, Mopidy-Youtube always comes from pip, so it can specify a requirement which, if not met by APT etc, will always be downloaded.

That’s not necessarily true. Mopidy-Youtube is packaged in AUR for instance. Or one could create a deb package for it oneself.

I guess the bit I’m not 100% sure about is that if there’s an old version from APT and a new version from pip both installed and the program specifies a dependency on the new version, will the newer version always be actually used?

I’m not sure, it probably depends on where the package manager installs the packages etc. Given that OP had an issue with this, the newer version is probably not always used though.

Yeah, I’m not sure how that conflict sorts itself out. The issue is that the older the youtube-dl version, the more likely that it will cause a difficult-to-track-down problem playing particular clips.

Then maybe you should add a runtime requirement on the required version. I don’t think this should be naively set to the latest version though, as that might be impractical for the users.

1reaction
natumbricommented, May 4, 2020

@artamudo I think you mean ‘same symptoms’ - once we can work out the problem that is causing them, absolutely I’m gonna fix it.

Can you tell me a bit more about your experience? Does the extension ever work? Can you give examples of tracks that do play and ones that don’t play? Does it happen immediately after you start mopidy or does it take some time before it starts happening? Do tracks that fail always fail or only sometimes?

The extension works for me - to fix the problem, I need to reproduce the symptoms you are experiencing, which means I need to understand when the occur. That can only happen with your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mopidy-YouTube
A backend for playing music from the YouTube service. ... Install the Mopidy-YouTube package from PyPI: sudo python3 -m pip install Mopidy-YouTube
Read more >
Mopidy extension for playing music from YouTube - GitHub
Mopidy extension that plays sound from YouTube. Installation. These installation 'instructions' are for unixy systems. It may be possible to install it on...
Read more >
How to use mopidy-youtube? - arch linux - Unix Stack Exchange
I installed mpd , ncmpcpp and mopidy (with mopidy-yt extension) and enabled the required stuff for mopidy-youtube. How do I use it?
Read more >
AUR (en) - mopidy-youtube - Arch Linux
Package Base: mopidy-youtube. Description: Mopidy extension for playing music from Youtube. Upstream URL: https://github.com/natumbri/mopidy-youtube.
Read more >
How to Install mopidy-youtube software package in Ubuntu ...
mopidy -youtube software package provides Mopidy extension for playing music from YouTube, you can install in your Ubuntu 17.04 (Zesty Zapus) by running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found