anxdpanic / plugin.video.youtube

Watch your favorite YouTube content on Kodi
https://ytaddon.panicked.xyz/forum
675 stars 111 forks source link

Video's don't play with "content not available on this app" error #442

Closed Fludizz closed 11 months ago

Fludizz commented 1 year ago

Context

Please provide any relevant information about your setup


Expected Behavior

Video's play as normal.


Current Behavior

Since this morning (Europe timezone), the Youtube plugin is unable to play any video's wth the error stating "Content not available on this app". Everything was working fine yesterday evening and into the night.

Disabling/enabling InputStream Adaptive for video playback makes no difference.


Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Try to play any video (e.g. from your subscription feed).
  2. Get the error.

Log

https://pastebin.com/4sn6gRgJ


EDIT

Fixed version: Alpha release appears to have resolved the majority of the issues so far: https://github.com/anxdpanic/plugin.video.youtube/releases/tag/7.x.x-dev Not in Stable branch (yet), so leaving the issue open until pushed to Stable branch.

Potential (manual) Workaround(s): @RNavega provided a fix that seems to work for now: https://github.com/anxdpanic/plugin.video.youtube/issues/442#issuecomment-1516245701 Specifically, the "payload" section seems to be the fix.

Another version of the fix to video_info.py which seems to be more reliable: https://github.com/anxdpanic/plugin.video.youtube/issues/442#issuecomment-1526189381

JohnMostlyR commented 1 year ago

Experiencing the same problem. It started yesterday, April 12, with some channels but as of now it wont play anything anymore.

Add-on version: 6.8.25+matrix.1 Kodi: 19.5.0 Kodi GUI language: English Kodi skin: Estuary OS: Windows 10

taleteller commented 1 year ago

I have exactly the same issue since today:

Add-on Version: 7.0.1 Kodi Version: 20.1 Kodi GUI Language: German Operating System: LibreELEC 11.01 Operating System Language: German

ThubLives commented 1 year ago

I experienced the same issue yesterday evening, but repeatedly retrying the same video would often result in a successfully played video. By the end of the night, no amount of retries would result in playing any videos. All videos played fine in a browser.

joaquinito2070 commented 1 year ago

I think that YouTube changed something.

El jue, 13 abr 2023 a las 16:06, ThubLives @.***>) escribió:

I experienced the same issue yesterday evening, but repeatedly retrying the same video would often result in a successfully played video. By the end of the night, no amount of retries would result in playing any videos. All videos played fine in a browser.

— Reply to this email directly, view it on GitHub https://github.com/anxdpanic/plugin.video.youtube/issues/442#issuecomment-1507033312, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4KDOK3ZFMDMGVFNWRSFXDTXBAB5FANCNFSM6AAAAAAW4VEH2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

scindiver commented 1 year ago

North America, broken @ 0730 EDT across 4 devices, all using same account. Attempting to reauthorize API, at 2nd OAuth token input, receive this from google.com/device: "Access blocked: Project xxxx has not completed the Google verification process"

bmh67wa commented 1 year ago

Kodi 20.1 (LibreELEC 11.01) App version 7.0.1 Language: English Skin: Confluence

Same issue. I still appear to be logged in as it loads my subscriptions but when I go to play them it says that the content isn't available on the app.

scindiver commented 1 year ago

On 1 of 4 devices that failed I did the following: uninstalled, reinstalled, set API keys using a 2nd google account configured the addon attempted to OAuth (received above "Access blocked" on 2nd token as reported earlier)

I then went back into the project on console.cloud.google.com and added this 2nd account as a test user and re-did the OAuth tokens.

I was then able to successfully view.

Update: Adding a test user to an existing accounts projects OAuth and logging out / logging back in to renew the OAuth tokens does NOT seem to resolve the issue but I need to do more testing. The newly created account however was able to view on a device that was not working this morning.

Update2: This 2nd account setup workaround now fails with the same error message.

RowCZ commented 1 year ago

Same here

Spec: Kodi (18.9 (18.9.0) Git:leia_pi4_18.9-Leia). Platform: Linux ARM 32-bit Kodi compiled 2021-07-06 by GCC 8.3.0 for Linux ARM 32-bit version 4.19.127 (267135) Running on LibreELEC (official): 9.2.8, kernel: Linux ARM 32-bit version 4.19.127 plugin.video.youtube version="6.8.25"

part of log: 2023-04-13 02:51:43.772 T:2045301568 ERROR: Traceback (most recent call last): 2023-04-13 02:51:43.772 T:2045301568 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 50, in play_video 2023-04-13 02:51:43.772 T:2045301568 ERROR: video_streams = client.get_video_streams(context, video_id) 2023-04-13 02:51:43.772 T:2045301568 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 102, in get_video_streams 2023-04-13 02:51:43.772 T:2045301568 ERROR: video_streams = video_info.load_stream_infos(video_id) 2023-04-13 02:51:43.772 T:2045301568 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 547, in load_stream_infos 2023-04-13 02:51:43.773 T:2045301568 ERROR: return self._method_get_video_info(video_id) 2023-04-13 02:51:43.773 T:2045301568 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 882, in _method_get_video_info 2023-04-13 02:51:43.773 T:2045301568 ERROR: raise YouTubeException(reason) 2023-04-13 02:51:43.773 T:2045301568 ERROR: YouTubeException: The following content is not available on this app. 2023-04-13 02:51:43.773 T:2045301568 ERROR: [plugin.video.youtube] None

probonopd commented 1 year ago

Same issue.

JohnQuincyAddingMachine commented 1 year ago

I believe this was intentional on Google's part, though perhaps not specifically targeting this plugin: This same error message has effectively killed off the last version of the Vanced YouTube client for Android.

bartosz-antosik commented 1 year ago

Just to give some update from other place (CE). I had exactly the same symptoms yesterday, but today I was able to flawlessly play two Videos from YT. So it seems that it was kind of a transient problem on the YT part.

Fludizz commented 1 year ago

@bartosz-antosik based on your comment, I have tested here again this morning: We are still seeing the same issue.

I have tried the following:

So it does not matter whether you use HD or SD settings, nor which prefered codec you've selected (in InputStream).

Interesting observation: We have another mediacenter running LibreELEC 9.2.8 (Kodi 18.9) and the latest Python2 version of the Youtube Plugin. This old version currently is still able to play video's normally.

taleteller commented 1 year ago

Has anyone tried to replace the user agent string in this plugin with a more recent version? Its possible youtube deprecated ancient devices and browsers for playback and takes the http requests for coming from one of those.

bartosz-antosik commented 1 year ago

@Fludizz I understand. Cannot really tell why is this. I got here yesterday, following "content not available on this app" prompt which described precisely my situation which started in the evening the day before yesterday. So I am only describing my situation, the generalization I have made might have been premature. On the other hand, it may be some rolling update to the servers' functionality, etc.

So generally it seems to have reverted to working for me.

taleteller commented 1 year ago

Well it does not seem to be that simple just to change the user agent, but I dont understand the code well. Considering the exception raises in _method_get_video_info() of video_info.py I would assume its some magic version string or an API deprecation responsible. Clearly requires dev attention.

RManPT commented 1 year ago

Same here. Seems to me that Youtube is systematically blocking access to apps that don't show ads. Hopefully there is a workaround or compromise.

https://support.google.com/youtube/answer/12318250?hl=en-GB

Rferreira2k commented 1 year ago

Solved (for me):

I still don't know what the consequences of unchecking this option are, but now all videos work fine!

Kodi 20.1 Language Portuguese (BR) Youtube Plugin 7.0.1

taleteller commented 1 year ago

@Rferreira2k Cant confirm that, still fails at the same location with the same error.


2023-04-14 20:27:37.796 T:7125    error <general>:   File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 860, in _method_get_video_info
                                                       raise YouTubeException(reason)
2023-04-14 20:27:37.796 T:7125    error <general>: youtube_plugin.youtube.youtube_exceptions.YouTubeException: Die folgenden Inhalte sind in dieser App nicht verfügbar.                                                
scindiver commented 1 year ago

Still failing with and without Force SSL Certificate Verification setting.

Reconfiguring using a Google account that has not watched videos within the last 6-9 months, I was able to get them to play on RPi3b+ and Vero4k+. At least, for the moment... (Force SSL cert verification setting does not appear to have an effect with the new user account.) This requires resetting a new API key, client ID, secret as well as the 2 OAuth keys. And it may not work for very long. -- You'll also need to re-add any channel subscriptions as well so it can be a bit of a pain. And again, I'm not certain how long this workaround (if it works for you) will continue to work. (Vaguely reminiscent of DTV's Black Sunday??)

YouTube Addon: 6.8.25+matrix.1 OSMC: 2023.01-1 Kodi: 19.5 RbPi 3B+ & Vero4K+

Update: Still working after 24 hrs. Update2: Still working > 48 hrs. Update 4/18 @ 1224 GMT: Still working with zero issues. Update 4/20 @ 1705 EDT: Still working on RPi3b+ and Vero4k+, no code modifications. Wife reported it "broken" this morning @ 0730 EDT but unable to confirm. Update 4/24 @ 1002 EDT: Still working.

larryxxl2 commented 1 year ago

Video's don't play with "content not available on this app" error Same issue.

kuene commented 1 year ago

Same Issue here.

probonopd commented 1 year ago

Possibly this might work as a quick and dirty workaround (while waiting for a proper fix)? https://github.com/anxdpanic/plugin.video.youtube/issues/211#issuecomment-939445166

Possibly a proper fix could be made using https://github.com/lekma/script.module.yt-dlp/?

MatthiasCoppens commented 1 year ago

It was fixed for me 14 & 15 April, but today it stopped again. This is on LibreELEC 10.0.4 (RPi4.arm).

probonopd commented 1 year ago

For me it was not working the last two days but today it is working again. Kinda random.

WestDvina commented 1 year ago

Doesn't work with the same error.

KODI 19.5 Windows 11 x64 and RPi 3B+ LibreELEC KODI 18

Forlorn-Hope commented 1 year ago

Video's don't play with the "content not available on this app" error

Add-on Version: 7.0.1
Kodi Version: 20.1
Kodi GUI Language: English
Operating System: LibreELEC 11.01
Operating System Language: English
nickrbogdanov commented 1 year ago

I've been seeing this error intermittently for the past few weeks. Does it still happen if you're subscribed to YouTube Red?

JohnMostlyR commented 1 year ago

Experiencing the same problem. It started yesterday, April 12, with some channels but as of now it wont play anything anymore.

Add-on version: 6.8.25+matrix.1 Kodi: 19.5.0 Kodi GUI language: English Kodi skin: Estuary OS: Windows 10

Tried again yesterday evening, April 16, and I was able to play a video again! However, today its not.

I guess its clearly not a bug but rather Google who implemented an allowe/dissallow switch for third party apps.

Fludizz commented 1 year ago

I can confirm it is somewhat intermittent. Sometimes it works for a while and then a few hours later it will stop playing anything with the same error message.

neo-neo1 commented 1 year ago

Been completely dead all day now with the same error. Not good... Why must YouTube torture us

JustinHowes01 commented 1 year ago

I just started getting the error. Was able to watch certain videos only, then all videos gave me the error.

OS Windows 11 Kodi 20.1 Language English Youtube Plugin 7.0.1

Eontech commented 1 year ago

First encounter with the exact same issue as of 7 am this morning 18-apr (Europe/Paris timezone).

neo-neo1 commented 1 year ago

Call me a pessimist but it seems our days are numbered.

Hint: closest alternative is Rumble. This is the best Rumble Addon for Kodi with the most features and bug fixes:

https://github.com/azzy9/plugin.video.rumble

Djhg2000 commented 1 year ago

For me this problem started to appear yesterday evening (GMT+2). Some videos played fine, some videos played if I picked 720p (my default is set to 1080p) in the "Play (Ask for quality)" dialog, and some videos would not play at all.

At first I thought it had something to do with monetization but as I tried to verify that I discovered it wasn't a likely theory, instead it seems like newer videos were more likely to play. My guess is there's some form of automated roll-out per video of whatever change is happening and they started with old videos.

This morning when I tried again it seems like nothing will play anymore, not even the videos that worked yesterday.

MatthiasCoppens commented 1 year ago

For me it's now the third nonconsecutive day the addon doesn't work (also GMT+2). I don't now how this addon and the Google authorisation works, but as it's only the video playback that doesn't works, wouldn't it be fixed by using https://github.com/yt-dlp/yt-dlp/ for video playback?

Damnster commented 1 year ago

With my Youtube account logged in, EVERY video and stream has the error message. I even created new API credentials. No luck.

Without being logged into my Youtube account, videos and streams work immediately or after 2 or 3 attempts.

I don't think this is an intentional move by Google. If it were, it wouldn't work at all any more.

MatthiasCoppens commented 1 year ago

I think it is intentional by Google. It's always a full days on or off, and I'm on GMT+2. As I'm never online after 2, I can't say this for certain, but I think it always switches at midnight UTC

funkyfunked commented 1 year ago

Exact same error for me on every video as of today. Europe.

taleteller commented 1 year ago

Since this problem breaks functionality for a lot, if not all people, and the last commit being about a month old. Does this issue even have the devs attention? Is anyone able to contact him?

anxdpanic commented 1 year ago

I'm aware of the issue, not a lot I can do at the moment. I have an idea, but it's going to be quite a while before I can try anything. I have a 700km move coming up June 1st, so I don't have near enough free time at the moment to tackle the idea.

kedarz commented 1 year ago

I have the same issue with youtube addon but some videos are working in tubed addon. Unortunatly only without loging

taleteller commented 1 year ago

I gained a hint digging around the problem. In the older Issue #393 i found a comment from @agrund mentioning a bug in NewPipe and a change in video_info.py: https://github.com/agrund/plugin.video.youtube/commit/5027605fcf1b1d56d8209b5179fcb8f4cb830703

Using this change I managed to get my Plugin into "sometimes mode". Sometimes it plays the first time, sometimes i have to try a few times. Please try if this change softens the issue for you as well.

I also tried changes like bypass the other occurrences of the Authorization header or bumping the clientVersion to a more recent one, but these do not seem to change the chance of succeeding. Remember to restart kodi when editing the scripts the direct way.

MaxmaxOk commented 1 year ago

Same here! :(

DJMix-I-Can commented 1 year ago

I gained a hint digging around the problem. In the older Issue #393 i found a comment from @agrund mentioning a bug in NewPipe and a change in video_info.py: agrund@5027605

Using this change I managed to get my Plugin into "sometimes mode". Sometimes it plays the first time, sometimes i have to try a few times. Please try if this change softens the issue for you as well.

I also tried changes like bypass the other occurrences of the Authorization header or bumping the clientVersion to a more recent one, but these do not seem to change the chance of succeeding. Remember to restart kodi when editing the scripts the direct way.

Thanks... This helped. You might get a couple of error notification but if you try again, it will play.

netfiller commented 1 year ago

The changes not working for me.

probonopd commented 1 year ago

My workaround from https://github.com/anxdpanic/plugin.video.youtube/issues/442#issuecomment-1509725135 works reliably for me every day so far.

ElektroDancer commented 1 year ago

I gained a hint digging around the problem. In the older Issue #393 i found a comment from @agrund mentioning a bug in NewPipe and a change in video_info.py: agrund@5027605

Using this change I managed to get my Plugin into "sometimes mode". Sometimes it plays the first time, sometimes i have to try a few times. Please try if this change softens the issue for you as well.

I also tried changes like bypass the other occurrences of the Authorization header or bumping the clientVersion to a more recent one, but these do not seem to change the chance of succeeding. Remember to restart kodi when editing the scripts the direct way.

I have set the client version to 18.05.40 and now it currently works for me.

This is the latest app version of YouTube ReVanced and I haven't had any problem with the app in the last few days.

netfiller commented 1 year ago

where do you have set the clientversion? Let us know your fix ;)

Forlorn-Hope commented 1 year ago

I second that comment…..

From: netfiller @.> Reply-To: "anxdpanic/plugin.video.youtube" @.> Date: Tuesday, April 18, 2023 at 4:17 PM To: "anxdpanic/plugin.video.youtube" @.> Cc: Forlorn-Hope @.>, Comment @.***> Subject: Re: [anxdpanic/plugin.video.youtube] Video's don't play with "content not available on this app" error (Issue #442)

where do you have set the clientversion? Let us know your fix ;)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

anxdpanic commented 1 year ago

https://github.com/anxdpanic/plugin.video.youtube/blob/master/resources/lib/youtube_plugin/youtube/helper/video_info.py#L738