YouTube Music links return ContentNotAvailableException” #13076
Replies: 1 comment
-
|
Links are recognized properly, either you are affected by a Captcha challenge (see #12146) or YouTube Music redirects to different a video with a different ID, the original one being not available in the country associated with your IP address. Sadly YouTube does not allow for autogenerated music content to check whether it is not available due to georestriction or not in its error message, see https://polsy.org.uk/stuff/ytrestrict.cgi to check if the video is blocked in your IP address country or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
What is/are your question(s)?
❗ ContentNotAvailableException when opening YouTube Music link
Affected URL
https://music.youtube.com/watch?v=oYRWfkw7xCo
Description
When attempting to stream the above YouTube Music URL, the application shows “Content not available” and throws a ContentNotAvailableException, even though the content is accessible when opened directly in a web browser.
Steps to reproduce
Open the app
Request a stream for:
https://music.youtube.com/watch?v=oYRWfkw7xCo
Observe the error message and exception
Expected behavior
The stream should load and play normally, identical to opening the same link in a browser.
Actual behavior
The stream fails to load and the following exception is thrown:
Code kopiëren
ContentNotAvailableException: Video unavailable
Environment
App: NewPipe
Version: 0.28.0
Package: org.schabi.newpipe
Service: YouTube / YouTube Music
Content Country: NL
App Language: nl_NL
Content Language: en
OS: Android 16
Device: Samsung Galaxy Z Fold (F966B)
Crash log (excerpt)
Code kopiëren
org.schabi.newpipe.extractor.exceptions.ContentNotAvailableException: Video unavailable
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.checkPlayabilityStatus(YoutubeStreamExtractor.java:894)
...
Additional notes
The same link works correctly in a browser
Issue seems specific to YouTube Music URLs
Possibly related to playability status or client selection (html5 client)
Exception
Crash log
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions