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 - MoojMidge - 2024-12-14

@izprtxqkft - that is a good example as any of why LoC is not a good metric for assessing quality :p

(2024-12-08, 12:09)testxp28 Wrote: 1) The configuration page doesn't work http://192.168.100.7:50152/ I have the configuration options selected in the YouTube add-on

What problem are you having with the configuration page? A description of "doesn't work" is not sufficient to understand what the issue is, in order to resolve it.

As @izprtxqkft and @doko-desuka have mentioned there are various other ways to provide text input or transfer files to Kodi in order to provide the API details used by this addon, but if the configuration page is not currently working then perhaps the easiest is to utilise one of the remote apps on your phone: https://kodi.wiki/view/Official_Kodi_Remote


(2024-12-09, 01:50)Oversized Wrote: Is this good enough?

Yes and no. Yes because now there is some information on what the problem is - you are using a public IP (one that I am not sure you should be using...) for the local http server, and no because the tiny snippet of the log contains no useful information to try and figure out why, on your system, a broadcast is being responded to by what is presumably a physical network interface, prior to the loopback interface.

Rather than continuing to play guessing games, you can either provide a full debug log as has been request multiple times now and I will look into it further, or you can try figuring it out on your own. If you want, try your luck with changing the Listen on IP address to 127.0.0.1 in the addon advanced settings.


(2024-12-11, 20:53)frankovics.andras Wrote: Could you help what causes my error?

You appear to have the same issue as @Oversized. The additional information in your log provides some clues, but the missing details from the start of your log precludes being able to investigate further. It looks like you are both using non-residential network connections though. You can try the same suggestion for changing the Listen on IP address to 127.0.0.1 in the addon advanced settings.


RE: YouTube - MoojMidge - 2024-12-14

@Oversized, @frankovics.andras - can you try this installing this test version https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip

Run the Setup Wizard and make sure you complete Step 1 by selecting Yes when asked if you want to Configure settings to recommended values?. If you don't see any kind of notification saying that the addon was unable to connect to the HTTP Server then the Setup Wizard should have worked and video playback should now work.


RE: YouTube - Oversized - 2024-12-14

Yes...finally, thank you


RE: YouTube - Oversized - 2024-12-14

Not sure how to edit post on this forum...anyway, I wanted to ask what is "non-residential network"? I'm on A1 cable internet (https://en.wikipedia.org/wiki/A1_Telekom_Austria)


RE: YouTube - jim_p - 2024-12-14

(2024-12-08, 03:06)MoojMidge Wrote:
(2024-12-06, 10:25)jim_p Wrote: Can someone please move 7.1.1.4 or 7.1.1.5 (released today) to the testing repo which still has 7.1.1.3?
I am really fed up with dowloading zips and updating the addon manually. Thank you.

One of the main reasons that these later versions have had to be be released is because of issues with Kodi 18, which you use and are having issues with. The best way to to see releases pushed to the repository is to contribute by providing debug logs of issues that arise. Complaining about how fast this can be done, without providing information about the issues that are delaying this, is counterproductive.
About this. I was referring to the python3 version of the addon, since the testing repo no longer hosts any python2 versions. And I have to use the testing repo because I want a recent/working version of the addon and and not 7.0.x which is available on the main repo.

Having said all that, I would like to add that I got 7.2.0-beta1 from there today and it works fine. However, for some strange reason, I got arabic audio on a mrbeast video! It has various audio tracks available and I think it just picked the first one based on alphabetical order. Is there a new setting for audio tracks? Please do not make me run the setup wizard again Sad

One of the videos this issue happens on, in case anyone else wants to have a look.
Code:
https://www.youtube.com/watch?v=nopEs-K4ExM



RE: YouTube - MoojMidge - 2024-12-15

(2024-12-14, 15:12)Oversized Wrote: I wanted to ask what is "non-residential network"? I'm on A1 cable internet (https://en.wikipedia.org/wiki/A1_Telekom_Austria)

Your log snippet indicates that you were using a public IP address of an interesting origin: https://www.iplocation.net/?query=26.24.37.45

I assumed that this was because of some network configuration of your provider, but apparently not. Rather, it seems like a network misconfiguration on your local network or system.

Like I said before, guessing games are just a waste of time that could have been avoided if a debug log was provided. Regardless I am not interested in looking into it further, the changes to the Setup Wizard should now account for misconfigurations like this, and whatever is happening with your network/system is up to you.
 
(2024-12-14, 21:19)jim_p Wrote: About this. I was referring to the python3 version of the addon, since the testing repo no longer hosts any python2 versions. And I have to use the testing repo because I want a recent/working version of the addon and and not 7.0.x which is available on the main repo.

For various technical/logistical/historical reasons development of this addon is done on a git branch that targets a specific version of Kodi, with other versions utilising the same common code base with some minor patching. There is no Python 2 or Python 3 version of the addon, it is all the same. Changes to fix issues in Kodi 18 therefore have a direct impact on the versions of the addon that get uploaded to the testing repository. It is a hassle that won't be resolved until support for Kodi 18 is dropped completely, and can only be mitigated in the meantime by users of Kodi 18 testing and reporting issues, as I won't be testing functionality in such an old version of Kodi myself.
(2024-12-14, 21:19)jim_p Wrote: However, for some strange reason, I got arabic audio on a mrbeast video! It has various audio tracks available and I think it just picked the first one based on alphabetical order. Is there a new setting for audio tracks?

The way audio languages are selected has been changed a little, and is now based on Kodi audio language settings Kodi > Settings > Player > Language > Audio > Preferred audio language:
  1. Media default will use the language configured in the addon
  2. Original will use the original language in the video
  3. User interface will use the Kodi interface language if available
  4. Any other language selected will be used if selected and available

All options and all versions of Kodi that the addon can run in should not result in the selection of the first language in alphabetical order, because of the stream metadata that identifies which language is original or default.

However, there may be an issue where selecting a specific language in the Kodi settings, that is not available in the video, may result in an incorrect fallback language being selected. What is your Kodi player audio language set to?


RE: YouTube - frankovics.andras - 2024-12-15

Little update:

After I reset or reinstall OSMC and install YT addon from the official repository, if I add my API keys I was able to play every video on the client. But if I log in, I start to get the same error.


RE: YouTube - frankovics.andras - 2024-12-15

Update again Smile :

Thank you MoojMidge, your test version solved my problem also. Now I can see any YT videos.
For the "non-residential network" part: I use easy to remember IP addresses in my local network. Big Grin

Big thanks from me, Peppa pig and Bing bunny for your help! Big Grin


RE: YouTube - SrTaronja - 2024-12-15

After updating the add-on to 7.1.1.6 in two computers, it worked flawlessly in one computer but not in the other (I still got the inputstream adaptative http error 403).
The one where it did not work was because it was using a weird IP address that I found it belonged to a virtual network adapter from VirtualBox.
I simply switched the listening IP to 127.0.0.1 instead of 0.0.0.0 and voilà, now it works in both computers.
BTW, this is probably caused by kodi and not by the add-on, but some settings (like the listening IP, or the region) trigger a pop-up window which closes the configuration screen; furthermore, this pop-up window does not always save the picked options (e.g. I had to manually enter the "127.0.0.1" IP because it was not saved if selected from available IPs list, and I can't change the region because there's no manual way to do so, and selecting it from the pop-up window does not seem to save it).


RE: YouTube - jim_p - 2024-12-16

@MoojMidge
I can not doubt what you say, but the testing repo is kofi 19+ only because of these lines. The first one means that the repo itself has as minimum xbmc.python version the one of kodi 19, so it can not be installed on kodi 18, and the other one means that its contents are only visible on kodi 19 or newer. 
 
Code:
        <import addon="xbmc.python" version="3.0.0"/>
...
        <dir minversion="19.0.0">

About the dubbed audio. Under settings > player > language > audio, I had the "prefered audio language" option set to "media default" and the "prefer default audio streams" to enabled. This makes 7.2.0 (beta2 now) use the arabic (or whatever it is) audio on the video. Setting that to "original language" did make the addon use the english one.
Last but not least, setting it to "user interface language" made the addon use the arabic one, because my interface language is greek and there is no greek dub for the video, so it just autoselected it somehow. That is the real issue here.
Changing my interface language to english made the addon select english audio for it. I am on kodi for 10+ years, and this was the first time I had to change those options for audio.

All that happens kodi 19 and le 10. Do not ask why I still have an le 10 installation. It is a... libreelec (11 and later) story that involves iwd, connman, their inability to work properly together 90% of the times and the le devs decision to stick to iwd despite that issue. I do try every new release though, the moment it reaches beta, to see if something changed on that aspect.


RE: YouTube - MoojMidge - 2024-12-16

(2024-12-15, 14:32)SrTaronja Wrote: The one where it did not work was because it was using a weird IP address that I found it belonged to a virtual network adapter from VirtualBox.
I simply switched the listening IP to 127.0.0.1 instead of 0.0.0.0 and voilà, now it works in both computers.

Not sure why some systems respond in this manner, but in the current beta release the Setup Wizard will work around issues like this, by trying all available local network interfaces first and checking for a response, before falling back to 0.0.0.0

(2024-12-15, 14:32)SrTaronja Wrote: BTW, this is probably caused by kodi and not by the add-on, but some settings (like the listening IP, or the region) trigger a pop-up window which closes the configuration screen;

The settings screen closing is by design, if it doesn't close then the popup windows won't be able to save the settings that they change.

(2024-12-15, 14:32)SrTaronja Wrote: furthermore, this pop-up window does not always save the picked options (e.g. I had to manually enter the "127.0.0.1" IP because it was not saved if selected from available IPs list, and I can't change the region because there's no manual way to do so, and selecting it from the pop-up window does not seem to save it).

This shouldn't happen. What version of the addon are you using? There were some issues related to this in v7.0.9.2 and older versions, with fixes in place for later versions. Can you get a debug log of the addon settings being opened, the popup opening and closing the settings dialog, and then an option being selected in the popup but not being saved/used when the addon is accessed again?


(2024-12-16, 09:09)jim_p Wrote: I can not doubt what you say, but the testing repo is kofi 19+ only because of these lines. The first one means that the repo itself has as minimum xbmc.python version the one of kodi 19, so it can not be installed on kodi 18, and the other one means that its contents are only visible on kodi 19 or newer. 

Only Kodi 19 is officially supported, and that is why the repositories are setup that way. Regardless, the fact that manual installation is offered for Kodi 18 is because the code is exactly the same, only the addon.xml changes. So if there are issues with Kodi 18, the single common codebase needs to change, which then affects the files that are included in the repositories, irrespective of whether the repositories can be used in Kodi 18.

If multiple codebases need to be managed, then Kodi 18 releases will simply be stopped. However, as long as the codebase is the same then there is not a lot of work to create the Kodi 18 specific releases, as long as people test them and report issues. They are otherwise offered as-is, without testing.

(2024-12-16, 09:09)jim_p Wrote: About the dubbed audio. ... this was the first time I had to change those options for audio.

This is necessary because YouTube is now offering "AI" dubbed audio streams and identifying them as the default audio. Understandably people don't like this, but it requires extended audio language selection settings to properly override default audio selections, and rather than try to implement custom audio selection settings in the addon, the global Kodi settings will be used instead because the global Kodi settings will override some of what the addon can do anyway.

(2024-12-16, 09:09)jim_p Wrote: the addon use the arabic one, because my interface language is greek and there is no greek dub for the video, so it just autoselected it somehow. That is the real issue here.

The fallback language selection should now be fixed in https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip regardless of what audio language settings are selected in Kodi.


RE: YouTube - SrTaronja - 2024-12-16

(2024-12-16, 21:24)MoojMidge Wrote:
(2024-12-15, 14:32)SrTaronja Wrote: furthermore, this pop-up window does not always save the picked options (e.g. I had to manually enter the "127.0.0.1" IP because it was not saved if selected from available IPs list, and I can't change the region because there's no manual way to do so, and selecting it from the pop-up window does not seem to save it).

This shouldn't happen. What version of the addon are you using? There were some issues related to this in v7.0.9.2 and older versions, with fixes in place for later versions. Can you get a debug log of the addon settings being opened, the popup opening and closing the settings dialog, and then an option being selected in the popup but not being saved/used when the addon is accessed again?
I found out that the settings are indeed saved, the problem seems to be related to cached/refreshed information.
Let's say I have "Spanish + Spain" as language/region, so I pick "English + US". At this point, the add-on settings window has been closed (I didn't know this was by design), and if I enter immediately back into it to make sure it was properly changed; well, I still see "Spanish + Spain", but if I leave the youtube add-on window, back to Kodi's main screen and then I navigate again to the add-on settings (or if I totally restart Kodi), then I see "English + US". As it's not something I keep touching in a regular basis, I can totally live with this, so from my side consider this mini-topic closed. Thank you very much for your support.
btw, all this happened with version 7.1.1.6 + Kodi 21.1


RE: YouTube - scott967 - 2024-12-17

7.2.0+beta.1 unusual window handling --

Installed 7.2.0+beta.1 into Kodi Piers built locally as debug exe.  Ran the setup wiz with default settings.  Then manually edited my settings.xml to add my keys.  Running YT I did a search, then from search results selected a playlist, then opened context menu and selected "play all" which opened a select dialog and I chose "default".  Play of first item began, but Kodi kept opening the videos window and closing fullscreenvideo.  In the log playback begins at line 2701 and fullscreenvideo window opens at 2720, but YT plugin keeps getting called and opening the videos window over and over.  Something seems not right.

muxejoyubo.kodi (paste)

Looking a little more closely, I see at line 2772 after the video is playing the script stops, but then immediately is started again by
Code:
 CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/kodion/route/kodion/route/home/', '-1', '?window_fallback=True&window_replace=True&window_return=False')
then again at 2837
Code:
CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/kodion/route/home', '2', '')
and again 2854
Code:
CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/kodion/route/home', '3', '')

To check I installed the 20241214 nightly and get the same results.

scott s.
.


RE: YouTube - phyrros1 - 2024-12-18

(2024-08-30, 12:01)phyrros1 Wrote: Since the last update, every time I delete an entry in one of my playlists, the page automatically refreshes and the first entry on that page is highlighted. This behavior is a little annoying.In the previous version, after deleting an entry, the next one was highlighted.
Could this be changed to either not auto-refresh or have the next entry be highlighted?

Sorry, can I bring up above "issue" again? Thx..


RE: YouTube - Kentsoon1 - 2024-12-18

I have updated to 7.1.1.6 and then to 7.2.0 but on both versions I get the message:
"Sign in to confirm you’re not a bot"
and videos won't play.

I have Kodi Omega installed on an Android TV Box with Youtube API and I am signed in.

BTW, I get the same message: "Sign in to confirm you’re not a bot" when trying to download youtube videos on my PC with Jdownloader, so this seems to be a new thing with youtube these days.

Both, Kodi youtube and jdownloader have worked until a couple of weeks ago.
What should I do to get rid of the message and watch videos again?