Kodi Community Forum
Release YouTube - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release YouTube (/showthread.php?tid=356934)



RE: YouTube - pauls156 - 2022-12-07

I am continuing to have trouble playing trailers for movies. I have made the API key, ID, and Secret multiple times and still unable to play trailers.

Here is the log from my most recent attempt to play trailers: https://paste.kodi.tv/ulokogewup

Could someone kindly point me in the right direction? Thank you!


RE: YouTube - DjDiabolik - 2022-12-08

(2022-12-07, 23:12)pauls156 Wrote: I am continuing to have trouble playing trailers for movies. I have made the API key, ID, and Secret multiple times and still unable to play trailers.

Here is the log from my most recent attempt to play trailers: https://paste.kodi.tv/ulokogewup

Could someone kindly point me in the right direction? Thank you!

I don't have watch your log but if it's a problems related video restricted by age video or topics covered in the video it's a know issue and we have infinite feedback about that.


RE: YouTube - pauls156 - 2022-12-08

Nothing like that. All trailers.


RE: YouTube - DjDiabolik - 2022-12-08

(2022-12-08, 15:44)pauls156 Wrote: Nothing like that. All trailers.

yeah i have tryed to view your log...
can you watch other video??

all video you tryed it's part of same YouTube channel?

your problems it's not related to YouTube addons....

in your log it's present some "sony tv rc 001" or something similar.... 

where are you using kodi? from a phone and try to cast on a tv?


https://m.youtube.com/watch?v=NLOp_6uPccQ
it's this video you tryed to openHuh it's part of warner bros channel... it's possibly this video have blocked from third part ?

remember... kodi addons it's not an official addon endorsement by Google.


RE: YouTube - pauls156 - 2022-12-08

Kodi on a tv.


RE: YouTube - DjDiabolik - 2022-12-08

(2022-12-08, 17:32)pauls156 Wrote: Kodi on a tv.

it's a sony android tv?

post some info... answer some of the hypotheses made above.... Or do you have to pull them out with pliers?


RE: YouTube - pauls156 - 2022-12-08

Sorry, was typing quick. Sony Android TV. I’m able to login, and I was able to play videos from different channels. So if I wanted to play a trailer through the YouTube addon, I could but if try to play it through the Information panel for a movie, I’m unable to.


RE: YouTube - DjDiabolik - 2022-12-08

(2022-12-08, 21:35)pauls156 Wrote: Sorry, was typing quick. Sony Android TV. I’m able to login, and I was able to play videos from different channels. So if I wanted to play a trailer through the YouTube addon, I could but if try to play it through the Information panel for a movie, I’m unable to.

as i already ask.... the trailer on log it's a part of warner bros channel.

try to open other video from same channel using YouTube addons... if all video from this channel it's unplayable it's probably the solution:
the creator or youtube itself as set all video it's unplayable on embedded or from third parts components.

otherwise it's strange because on log it's not apparent message when it's fail to reproduce... on notification on tv what error you obtain ?

another things.. are you try to play same video whit mpeg dash enabled and whit disabled it?


RE: YouTube - neas15us - 2022-12-09

2022-12-09 06:35:53.912 T:1830205    INFO <general>: [plugin.video.youtube] Running: YouTube (6.8.22+matrix.1) on Matrix (Kodi-19.4) with Python 3.10.6
                                                       Path: /
                                                       Params: {}
2022-12-09 06:35:53.917 T:1830205   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'sqlite3.OperationalError'>
                                                   Error Contents: cannot start a transaction within a transaction
                                                   Traceback (most recent call last):
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 15, in <module>
                                                       runner.run(__provider__)
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 60, in run
                                                       __RUNNER__.run(provider, context)
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 33, in run
                                                       results = provider.navigate(context)
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 105, in navigate
                                                       result = method(context, re_match)
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 138, in _internal_root
                                                       return self.on_root(context, re_match)
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 1697, in on_root
                                                       if settings.get_bool('youtube.folder.tags.show', True) and (len(tags.get_channels('')) > 0):
                                                     File "/home/sean/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/tags.py", line 66, in get_channels
                                                       cur.execute("begin")
                                                   sqlite3.OperationalError: cannot start a transaction within a transaction
                                                   -->End of Python script error report<--
                                                   
2022-12-09 06:35:53.942 T:1830205    INFO <general>: Python interpreter stopped
2022-12-09 06:35:53.951 T:1835046    INFO <general>: Skipped 1 duplicate messages..
2022-12-09 06:35:53.951 T:1835046   ERROR <general>: GetDirectory - Error getting plugin://plugin.video.youtube/
2022-12-09 06:35:53.952 T:1828191   ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed


Any help on this error would be appreciated


RE: YouTube - Dangelus - 2022-12-09

@neas15us 

Please see the large red letters just above the "post reply" button that say:

"Do not post logs in the forum. Use https://paste.kodi.tv/ instead."  Loads of text in threads make them untidy and hard to read.

Please follow those instructions, more details can be found in: Debug Log - also no snippets, a full log please.


RE: YouTube - DjDiabolik - 2022-12-09

@pauls156 
anyway... i have right now the possibility and i have test to open your same video from my kodi setup.

it's the batman dc trailer exactHuh i can play from my kodi without any issue/trouble.

my on my case i have tryed from a raspberry pi2 running current build of osmc...


RE: YouTube - neas15us - 2022-12-10

https://pastebin.com/MWn9FehC

Any help on this error would be appreciated


RE: YouTube - arsMOBILIS - 2022-12-10

Are there still repositories for the "unofficial" and "test" versions?

Quite a while back I installed repos in my Kodi setup to give me quick access to test versions of the YouTube addon, and to ensure that I stayed up to date using my preferred "Unofficial" version of the addon. I noticed some time ago that these repos were no longer being updated. Have they moved? Are they gone?

If anyone knows where these are located now links would be much appreciated. Thanks.


RE: YouTube - DjDiabolik - 2022-12-10

(2022-12-10, 05:41)arsMOBILIS Wrote: Are there still repositories for the "unofficial" and "test" versions?

Quite a while back I installed repos in my Kodi setup to give me quick access to test versions of the YouTube addon, and to ensure that I stayed up to date using my preferred "Unofficial" version of the addon. I noticed some time ago that these repos were no longer being updated. Have they moved? Are they gone?

If anyone knows where these are located now links would be much appreciated. Thanks.
yes....... simply follow the link:
https://github.com/anxdpanic/plugin.video.youtube/wiki/Installation


RE: YouTube - IAmNotAUser - 2022-12-12

Well, this has been a fun one to debug!

At some point over Thursday night -> Saturday morning, Watch Status logging back to YouTube broke for me! I was running 6.8.20+matrix.1 before that, with watched videos appearing in my YouTube History (https://www.youtube.com/feed/history) - but after a whole day of watching on Saturday (with "auto-remove from watch later" selected in the addon settings), I realised none of them had been marked as watched!

Long story short - after extensive digging for the last day or so, it appears that the "version bump" commit for 6.8.21 commented out the line to submit watched history back to YouTube - https://github.com/anxdpanic/plugin.video.youtube/commit/6a470e5675259d22a0d44dc199af2002d2509ac4

Was this deliberate? It feels not, considering the commit message doesn't mention anything about disabling the feature, but I'm also aware that the YouTube History API and this plugin have had their own issues recently - and I can see how it might be related to that.

If it was deliberate, it feels like it should have been called out especially as its own commit/mentioned in the changelog for x.x.21? Is there a reason why it's been disabled, and whether we can expect to see it back? It was working for me on 6.8.20 up until the update, and I don't see any changes in the other surrounding commits that give a reason why it's been removed.

Quick Edit: I reverted those two edited lines (on current version, 6.8.23+matrix.1) in update_watch_history() back to how it was originally in x.x.20 and my watched status has started feeding back again correctly. Happy to create a PR if it wasn't a deliberate change, but will wait for an answer first Smile