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 - Alyyy - 2024-11-30

(2024-11-22, 10:03)Alyyy Wrote: Hi,

I did the last update 7.1.1.1 and this appears in my channel list, what wasn't there before

Image

and I can't seem to hide them

Hi,
​​​
No one can enlighten me ?


RE: YouTube - izprtxqkft - 2024-11-30

(2024-11-30, 22:14)Shredder_guitar Wrote: Sounds like Kodi needs to evaluate their approval criteria for this plugin (at the very least)...

won't help, if kodi relaxes their procedure then users will just be here talking about their broken addons instead of lack of addon updates, doesn't resolve anything


RE: YouTube - izprtxqkft - 2024-11-30

(2024-11-29, 19:35)phyrros1 Wrote: I have  subscribed to a German YouTube channel and recently they  added an AI-generated English audio track to their videos. On YouTube's web interface, the English audio track always appears as track 1, while the original German audio track is track 2. However, the add-on  ( 7.1.1.1 unofficial) only supports playing the first audio track. The second one does not appear in the list.
I'm running LibreELEC on a Fire Cube. Is there any way to prioritize the second track or fix this issue?
 
(2024-11-30, 18:05)phyrros1 Wrote: I know that this add-on previously worked with multiple audio tracks. Its's only that it does not seem to work for me since I have installed 7.1.1.1.   I have enabled MPEG-DASH otherwise nothing would play at all - I would only get the UNKNOWN error message. As posted in my previous message here the links to two vids with this issue:


https://youtu.be/I1KqalXTA_Y?si=mG6FuV-SmQ0YyMAE
https://youtu.be/zPmazQ9OqIs?si=UAY7dyUUlaV5YGzG

i pulled the info for the 2nd video hoping to see some sort of difference in the tracks
- https://paste.kodi.tv/awiyuqexut.kodi

but from that there doesn't appear to be a difference, the german tracks and english ones are available in the same codecs+stream methods

provide a Debug Log trying to play the 2nd one so we can see what kodi is doing


RE: YouTube - MoojMidge - 2024-12-01

@Chillbo - the feedback is appreciated and certainly of interest, thanks for taking the time. If you have some more time:
 
(2024-11-30, 09:23)Chillbo Wrote: The OSMC Skin offers an override to one of the most annoying problems with addon views: any view change will only stick for one page the addon loads. This override lets users pick a view in the skin settings and force it for all video addon pages. This can only rely on the videos content type as it would otherwise also force views on library windows, etc.

Could you point me to where I could see how you have done this?
 
(2024-11-30, 09:23)Chillbo Wrote: A skin either offer views only for poster fan art or more types of art, but it has to adjust either the art or the view to look proper: A view type that is made for horizontal thumbnails won't look good with vertical poster art - lots of whitespace being the consequence. The OSMC Skin is made to work primarily with poster fan art, but as video addons like the YouTube addon mostly don't offer that type of fan art, it offers a full set of specific views only for video addons, with adjusted spacing and use of info labels. If any content type other than videos is set, the appropriate views cannot be used anymore.

Yeah, I have had to resort to using a square layout myself to maintain consistency across different plugins - the worst of both worlds. This addon can offer both poster and landscape artwork, that can be changed in the settings and applies globally to all content from the addon, as well as via a plugin URI query parameter to suit specific widgets. From a skinners perspective would it help if the plugin identified the type of artwork that is being used in a listitem property?
 
(2024-11-30, 09:23)Chillbo Wrote: Some skins like the OSMC Skin try to use as little overlay textures as possible to ensure background fanart is not hidden while keeping skin elements like texts readable in the foreground. This makes it imperative to match colours of all sorts of items so not one is e.g. barely visible due to a colour match of text and background. If an addon mandates text colour by adding colour tags to the text it provides, this whole effort will be overridden - the addon can never know what a skinner had in mind and vice versa. Only one side should be responsible for colours IMHO.

I had a lot of problems with this. For an addon, overloading the content of a label results in a poor UI imo, leading to overflows and needing to rely on opening the separate info dialog, or on autoscrolling in views to display the full content. Can't include icons in a label, only unicode glyphs, which means relying on the font that is being used in the skin to provide the characters being used. Colour coding certain parts of a label felt like the best compromise in terms of identifying what that information actually meant, without taking up additional space by labelling sub-parts of a label, or potentially being rendered as a square box that still takes up space but offers nothing useful depending on the skin being used. A skin can't be responsible for this because it would need to parse a label and render it according to the needs of a specific plugin, which not only can't be done, but is also not feasible to meet the needs of various plugins. Can't think of a reasonable alternative, but open to suggestions.
 
(2024-11-30, 09:23)Chillbo Wrote: But an addon setting a content type not meant for an addon by default will lead to issues... A skinner has to decide what to rely on: Kodi guidelines and functionality or what single addons do differently. With the second approach, a skin has to basically be coded to work perfectly with one single addon - the next addon might approach this differently already leading to new issues.
The basis is that Kodi addon and skin guidelines mandate the appropriate content type to be set by an addon (music for music addons, videos for video addons, programs for other types of addons) and not force any view types by setting other content types: https://kodi.wiki/view/Add-on_rules#Requ...hon_addons

That is not quote what that means. As @scott967 mentioned the intent of setting the content-type is not to restrict video plugins to only the video content-type, but to ensure that the content-type is set to what best represents the content being listed. In the case of this particular addon (and ignoring the distinction between the official and unofficial versions), if episodes were to be shown, the type of artwork and meta-data won't change (because it comes from the same source as the non-episodic content), but the content-type should change to episodes. The same would apply to other video plugins that provide episodes. Forcing a view-type is certainly not allowed though, albeit still done in the unofficial versions of this addon. Regardless, yes it makes the job of a skinner difficult when dealing with the array of possible content that various plugins may offer up.

 
(2024-11-30, 15:08)graham-h Wrote: I upgraded from 7.0.6.3 to 7.1.1.3 and ran the wizard again, with the same error.  Is this the right place to report it?

Here is good enough. The issue is that the Setup Wizard functionality that is now failing was implemented quite some time ago. It was meant to be a one-shot migration, and the Setup Wizard prompt was enabled to allow the migration to occur. Since that time some of the underlying database functionality was changed which broke the migration functionality. The moral of this story - if the Setup Wizard pops up then use it rather than waiting for 9 months. The issue has been fixed (and the Setup Wizard now also identifies that it is part of the YouTube addon), but this won't be available in a release for some time.

As a workaround you can just ignore the steps in the Setup Wizard that ask you to import your old search or playback history, but obviously it will mean that this old data will be lost. Alternatively you can try to install this test version, which contains the fix to the Setup Wizard database migration.

 
(2024-11-30, 18:05)phyrros1 Wrote: I know that this add-on previously worked with multiple audio tracks. Its's only that it does not seem to work for me since I have installed 7.1.1.1

Still works for me on the links provided. The videos are a bit problematic in that the auto-generated audio is marked as default, but they are certainly made available for selection and use. Can't remember anything recently changing in the addon with respect to this functionality either.

Would need to see a debug log to determine why the additional audio streams are not showing up for you. Regarding the default selection of the audio streams, there will be some improvements to this to deal with videos where the default audio is seemingly incorrectly identified in the video itself, see here: https://github.com/anxdpanic/plugin.video.youtube/issues/989#issuecomment-2506843368


(2024-11-30, 22:14)Shredder_guitar Wrote: If that is not happening, then I have questions. When my wife comes into my office and says youtube's not working, it's a big deal.

Luckily there are several options that are available to you if you want faster updates. There are no need for questions when the answers are already presented to you from the release page where you downloaded the addon. Failing that, patience is a virtue.


(2024-11-30, 22:57)Alyyy Wrote: No one can enlighten me ?

About what? If you have a question ask it. The screenshot shown is not of the "My Channel" list, it is a search listing filtered to only show channel results. The other folders are there to filter the search based on other available search result types. By default, there is no way to disable the folders, but if you don't want to see the folders in a widget or via your favourites, then you can add &hide_folders=True to the plugin URI query parameters. How you do that will depend on the skin you use.


RE: YouTube - Shredder_guitar - 2024-12-01

I try to avoid this forum unless necessary and responses like this are exactly why. Some snarky dev that responds with 'you should be so lucky we do this, the answer was put into existence somewhere, go find it, because you should already know that i did it'. That gets old after. While I do appreciate the effort, however, If i have to go searching all of the interwebs for 'why' software that has a dedicated update process is not being used, then that lends itself to the idea that someone is just simply not doing what they're supposed to and using the update process as designed, no matter how you choose to look at it. The check updates feature is implemented into Kodi and allows for the software to be continuously updated as needed, use it. 

Because I know dev's, I know this will turn into a debacle and you'll either continue to refuse to take accountability for this, or stop support for the plugin altogether, or push out updates so frequently that it actually does being to break stuff; whatever the thing is besides what I am actually asking to have happen, that's what will be done. So you can rebuttal this but I won't read it, just one more checkbox for an external platform and it's exactly reasons like this as to why. If you need to update things, fine, but I don't want to have to go searching the internet for why something is broken and I don't have to have to completely rebuild kodi every 6 months to a year because some falsely promised stabilization that doesn't make kodi any more stable or solid than the previous version. Frankly, it's exhausting.


RE: YouTube - MoojMidge - 2024-12-01

(2024-12-01, 01:31)Shredder_guitar Wrote: blah blah... Frankly, it's exhausting.

Indeed it is quite unfortunate that while patience is a virtue, you have quite ably demonstrated that the virtue is rare.


RE: YouTube - redkoatz - 2024-12-01

But it's common in all forums and discord groups in modern times. Unfortunately.

It perplexes me that there's an entire community of active people who know how to do something. But instead tell you to search some ancient thread.
If there are active people who know and are replying. Why not just answer?

There are exceptions. But they are exceptions not the rule.
It didn't used to be like this in the early days of the Internet. My experience was that people couldn't wait to show off their knowledge on any given topic.

It's similar with online gaming and why I never multiplay anymore. Whereas it's all I did in 90s- 00s


RE: YouTube - Chillbo - 2024-12-01

(2024-11-30, 22:05)scott967 Wrote: That's not what the documentation says.  There are 11 specific content types available for xbmcplugin.setContent() and the documentation says as a remark:

"Use videos for all videos which do not apply to the more specific mentioned ones like "movies", "episodes" etc. A good example is youtube."

https://xbmc.github.io/docs.kodi.tv/master/kodi-base/d1/d32/group__python__xbmcplugin.html#gaa30572d1e5d9d589e1cd3bfc1e2318d6

scott s.
.

I stand corrected. Sry for the generalized statement regarding this.
Admittedly, the example given proves a point regarding the YouTube addon though: An addon that offers various types of videos is the perfect example for using the videos content type.

(2024-12-01, 00:58)MoojMidge Wrote: Could you point me to where I could see how you have done this?

Sure! I have a skin setting in place that enables an include with onloads for video windows and forces the view type selected by the user. It also hides the view type selection for those windows consequently.

You can find the code here: https://github.com/Ch1llb0/skin.osmc/blob/2636e465b6ee3858453d748e9ae27afb404b2f94/xml/Includes.xml#L201

It was mentioned as a suggestion somewhere on the Kodi forum, so can't take credit for the idea 😊 It works like a charm though and solves this very basic problem which would otherwise render different view types for addon pages quite useless.

(2024-12-01, 00:58)MoojMidge Wrote: Yeah, I have had to resort to using a square layout myself to maintain consistency across different plugins - the worst of both worlds. This addon can offer both poster and landscape artwork, that can be changed in the settings and applies globally to all content from the addon, as well as via a plugin URI query parameter to suit specific widgets. From a skinners perspective would it help if the plugin identified the type of artwork that is being used in a listitem property?

That's exactly the same way I approached the videos views the OSMC Skin now offers: square art to accommodate whatever the addon offers. All whitespacing is adjusted to let these views look as good as possible without knowing the exact aspect ratios of fan art provided and without cropping anything.
As a general approach: Yes, some kind of feedback for the skin to know which kind of aspect ratio thumb art it should expect, might help. But it would only be a good idea, if it was a system wide approach, not specific to one addon... Maybe something to think about as part of a discussion how addons can be incorporated into Kodi more seamlessly?
The views selection per page comes into mind here as well.

(2024-12-01, 00:58)MoojMidge Wrote: I had a lot of problems with this. For an addon, overloading the content of a label results in a poor UI imo, leading to overflows and needing to rely on opening the separate info dialog, or on autoscrolling in views to display the full content. Can't include icons in a label, only unicode glyphs, which means relying on the font that is being used in the skin to provide the characters being used. Colour coding certain parts of a label felt like the best compromise in terms of identifying what that information actually meant, without taking up additional space by labelling sub-parts of a label, or potentially being rendered as a square box that still takes up space but offers nothing useful depending on the skin being used. A skin can't be responsible for this because it would need to parse a label and render it according to the needs of a specific plugin, which not only can't be done, but is also not feasible to meet the needs of various plugins. Can't think of a reasonable alternative, but open to suggestions.

I see the issue. But I still don't like the solution. Is my hosest reply 😅 Not sure I have a better idea though.
For information regarding views, likes, etc. a more subtle approach might be sufficient though: Just present it as the first line of the info text, separated by a double line break (like done now) and leave out the colour. It's still the first thing users will see, if they opt to show the info at all. But it won't break skin colour schemes or force colours on users that don't match the rest of their Kodi experience.

(2024-12-01, 00:58)MoojMidge Wrote: That is not quote what that means. As @scott967 mentioned the intent of setting the content-type is not to restrict video plugins to only the video content-type, but to ensure that the content-type is set to what best represents the content being listed. In the case of this particular addon (and ignoring the distinction between the official and unofficial versions), if episodes were to be shown, the type of artwork and meta-data won't change (because it comes from the same source as the non-episodic content), but the content-type should change to episodes. The same would apply to other video plugins that provide episodes. Forcing a view-type is certainly not allowed though, albeit still done in the unofficial versions of this addon. Regardless, yes it makes the job of a skinner difficult when dealing with the array of possible content that various plugins may offer up.

I see that I was wrong there. What the quote does mean for me though: An addon that doesn't know which type of content it currently shows (I guess, you can't be sure whether the currently listed YouTube items are indeed episodes or just random videos) should use the videos content type to allow a skin to present the content in a way that caters to most types of video and thus e.g. fan art types.
And I would also say: If the information the addon provides doesn't change to something specific to a content type (it doesn't offer season and episode count, a TV show or episode title, etc.), it then shouldn't set the episodes content type in the first place. What would a skin otherwise do with that? It needs the information expected to come along with a certain content type to be present, otherwise using that content type will result in strange on screen information and consequently a view being used that isn't useful for the user. The content type is not just a near little info for skins to have, but it should be a reliably basis to decide which info to show and how. But if said info expected with a set content type is not available, the content type is not reasonably used IMHO.

So, logically I'd say: If a list of items the YouTube addon provides can contain any type of video at any given time, the broadest content type Kodi offers for exactly that scenario should always be used: videos. 😊


RE: YouTube - Alyyy - 2024-12-01

(2024-12-01, 00:58)MoojMidge Wrote: @Chillbo
 
(2024-11-30, 22:57)Alyyy Wrote: No one can enlighten me ?

About what? If you have a question ask it. The screenshot shown is not of the "My Channel" list, it is a search listing filtered to only show channel results. The other folders are there to filter the search based on other available search result types. By default, there is no way to disable the folders, but if you don't want to see the folders in a widget or via your favourites, then you can add &hide_folders=True to the plugin URI query parameters. How you do that will depend on the skin you use.
I didn't have them with version 7.0.9.2 they appeared after the update.

And I don't see where plugin uri is ?


RE: YouTube - phyrros1 - 2024-12-01

(2024-11-30, 23:13)izprtxqkft Wrote:
(2024-11-29, 19:35)phyrros1 Wrote: I have  subscribed to a German YouTube channel and recently they  added an AI-generated English audio track to their videos. On YouTube's web interface, the English audio track always appears as track 1, while the original German audio track is track 2. However, the add-on  ( 7.1.1.1 unofficial) only supports playing the first audio track. The second one does not appear in the list.
I'm running LibreELEC on a Fire Cube. Is there any way to prioritize the second track or fix this issue?
 
(2024-11-30, 18:05)phyrros1 Wrote: I know that this add-on previously worked with multiple audio tracks. Its's only that it does not seem to work for me since I have installed 7.1.1.1.   I have enabled MPEG-DASH otherwise nothing would play at all - I would only get the UNKNOWN error message. As posted in my previous message here the links to two vids with this issue:


https://youtu.be/I1KqalXTA_Y?si=mG6FuV-SmQ0YyMAE
https://youtu.be/zPmazQ9OqIs?si=UAY7dyUUlaV5YGzG

i pulled the info for the 2nd video hoping to see some sort of difference in the tracks
- https://paste.kodi.tv/awiyuqexut.kodi

but from that there doesn't appear to be a difference, the german tracks and english ones are available in the same codecs+stream methods

provide a Debug Log trying to play the 2nd one so we can see what kodi is doing
Thank you so much for your help. Here is the log file: https://paste.kodi.tv/higabokige


RE: YouTube - kingsombra - 2024-12-01

(2024-11-09, 23:41)MoojMidge Wrote:
(2024-10-31, 16:58)kingsombra Wrote: The workaround posted in #810 seems to have worked for me.

As mentioned in the issue you opened, the workaround should not be necessary anymore. Are you able to test https://github.com/anxdpanic/plugin.video.youtube/releases/tag/v7.1.1%2Bbeta.5 and confirm that it works without the workaround?
Sorry I didn't notice your comment until now. Yes I think the playlist loop issue is fixed. (currently using 7.1.1.3)

I do have one other issue that I have mentioned before.

But I do not think this is an issue that can be fixed.

If I do not use an API and play a very long video ( it has to be over 6 hours ) right at the 6 hour point, the video will freeze up. It is always exactly at the 6 hour point. This makes me think that youtube has set a hard limit on the length of video that can be played. I do not know if it is because I am not using an API.

Could someone else confirm this behavior just so I know I am not the only one? Thanks.

ADDING THIS: I also find it kind of interesting that this does not happen when using something other than Kodi+addon like Smarttube.


RE: YouTube - MoojMidge - 2024-12-01

(2024-12-01, 09:35)redkoatz Wrote: It perplexes me that there's an entire community of active people who know how to do something. But instead tell you to search some ancient thread.
If there are active people who know and are replying. Why not just answer?

What? Useless complaining was responded to with direct answers. They were ignored and instead followed up with more useless complaints. You just can't help some people.

But enough with the off-topic conversations now. It serves no purpose.
 
(2024-12-01, 10:02)Chillbo Wrote: It works like a charm though and solves this very basic problem which would otherwise render different view types for addon pages quite useless.

Unfortunately this is the same technique that plugins must resort to, with pros and cons for doing it either way.

A skin doing this means that an individual plugin does not to cater for the different view types of various skins but then needing additional complexity to deal with changes to view types for individual plugin URIs and the associated content-types.
A plugin doing this means that an individual skin does not need to cater for the different content of various plugins but then needing additional complexity to deal with the available views offered by a skin for a given content-type.

This is something that ideally should be handled in Kodi itself as you have suggested:
 
(2024-12-01, 10:02)Chillbo Wrote: But it would only be a good idea, if it was a system wide approach, not specific to one addon... Maybe something to think about as part of a discussion how addons can be incorporated into Kodi more seamlessly?
The views selection per page comes into mind here as well.

(2024-12-01, 10:02)Chillbo Wrote: And I would also say: If the information the addon provides doesn't change to something specific to a content type (it doesn't offer season and episode count, a TV show or episode title, etc.), it then shouldn't set the episodes content type in the first place.

Yes, agree, but there is some basic functionality that won't work if a video content-type is used (eg. displaying watched/unwatched videos in a listing), and more generally if a plugin directory listing is being used (eg. default sort order for various sort types). A few gaps will remain until someone is sufficiently motivated to improve the situation.


(2024-12-01, 14:09)Alyyy Wrote: I didn't have them with version 7.0.9.2 they appeared after the update.

And I don't see where plugin uri is ?

Yes, the improved search filtering is a new feature. The plugin URI is used externally to the addon eg. in widgets or favourites. If you don't access the addon in that way, then there is no way to remove the folder within the addon itself.


(2024-12-01, 15:44)phyrros1 Wrote: Thank you so much for your help. Here is the log file: https://paste.kodi.tv/higabokige

You need to update to v7.1.1.3


(2024-12-01, 18:11)kingsombra Wrote: If I do not use an API and play a very long video ( it has to be over 6 hours ) right at the 6 hour point, the video will freeze up. It is always exactly at the 6 hour point. This makes me think that youtube has set a hard limit on the length of video that can be played. I do not know if it is because I am not using an API.

Could someone else confirm this behavior just so I know I am not the only one? Thanks.
There is no limit from YouTube and it is unrelated to API usage. You will need to do your own legwork on this. Get a debug log and it can be looked into. You can extract the first section of the log from when you start playback, and then remove everything up until the last 5 minutes before the video freezes .


RE: YouTube - Chillbo - 2024-12-02

(2024-12-01, 23:52)MoojMidge Wrote: Unfortunately this is the same technique that plugins must resort to, with pros and cons for doing it either way.

A skin doing this means that an individual plugin does not to cater for the different view types of various skins but then needing additional complexity to deal with changes to view types for individual plugin URIs and the associated content-types.
A plugin doing this means that an individual skin does not need to cater for the different content of various plugins but then needing additional complexity to deal with the available views offered by a skin for a given content-type.

I'd say, the first approach - the skin handling this - is cleaner for the user as one doesn't have to choose views manually in addon settings (and/or addon devs don't have to cater to all viewtypes any skin could possibly use, which are quite unlimited).
Inputting viewtype IDs manually would otherwise be quite confusing for users as skins (the OSMC Skin included) won't propagate those IDs. Viewtype IDs are normally not useful for users to know (and it wouldn't look nice to expose the IDs prominently for no apparent reason). But I can see now which disadvantages the videos content type has:
 
(2024-12-01, 23:52)MoojMidge Wrote: Yes, agree, but there is some basic functionality that won't work if a video content-type is used (eg. displaying watched/unwatched videos in a listing), and more generally if a plugin directory listing is being used (eg. default sort order for various sort types). A few gaps will remain until someone is sufficiently motivated to improve the situation.

Interesting - I've never noticed this one. Watched and unwatched functionality works in videos lists here without issues, same as sort types. But the "watched/unwatched" filter doesn't.

Image

Image

I wasn't aware of these shortcomings. But it makes it even clearer that addons are not what Kodi is made for atm... This should hopefully change at some point. Maybe Kodi could offer content types specifically for addons so that they don't overlap with library content types? That way everyone could code to the specific requirements of the library as well as addons.


RE: YouTube - izprtxqkft - 2024-12-02

(2024-12-02, 08:47)Chillbo Wrote: Maybe Kodi could offer content types specifically for addons so that they don't overlap with library content types? That way everyone could code to the specific requirements of the library as well as addons.

in this theoretical perfect kodi ecosystem there would not be a need for addon content types

in my proposal outlined here https://forum.kodi.tv/showthread.php?tid=379432 addons would be able to provide library content
so that media servers could just integrate as a library type
under that though, addons providing streaming content like Hulu, Disney+ and Netflix could have their content added to your library if you're a subscriber
then a "Videos" category could be populated by both Home Movies and YouTube, or even upload your Home Movies to YouTube and have them populated under your channel (node) under Videos

problem is all the pirate addons which would want to take advantage of it which makes developers a little more skeptical in implementing more addon features that involve content population

i like this theoretical kodi umbrella though because i see the good side of it and i don't think Kodi should limit itself just because people want to abuse it


RE: YouTube - Chillbo - 2024-12-02

Honestly, I'd never want Netflix, Amazon Prime, ATV+, YouTube or whatever streaming videos cluttering my local library.
I'm quite confident that having "apps" sections is exactly what most users actually want for streaming content, not have that content pour into a carefully curated local library.

The thing that's missing is proper support for visually managing those sections addons like YouTube provide IMHO.


This forum uses Lukasz Tkacz MyBB addons.