![]() |
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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
RE: YouTube - fatsteve - 2025-01-05 Hi. Recently I've been seeing more and more shorts showing up in My Subscriptions. The run times are higher than 1 minute, such as 2:09, 1:01, 1:08, 2:52, 2:59, 1:37, so they are not being hidden by the hide "Shorts (1 minute or less)" setting. These examples were all taken from my first page of My Subscriptions, so quite a few which I'm finding to be an annoyance. It seems Youtube has recently changed the max time for shorts from 1 minute to 3 minutes. After a quick Google search it looks like this changed around 3 months ago. Could we possibly get the option to hide "Shorts (1 minute or less)" changed to "Shorts (3 minutes or less)"? Thanks, Kind Regards RE: YouTube - jim_p - 2025-01-07 I wanted to ask that too, but before asking, I wanted to have a look on how a video is identified as short... through the invidious api. Unfortunately, no invidious instance allows access to its api nowadays ![]() This also means rip for the invidious addon. RE: YouTube - fatsteve - 2025-01-07 Hi guys. For anyone interested I did find a fix, as it was already being discussed on the github page here. In short - - Navigate to /storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper - Edit utils.py - Go to line 612 - Change the text from "if duration <= 60:" to "if duration <= 180:" (without the quotes) - Save the file - Restart Youtube addon. Also, I believe MoojMidge mentioned that it is being fixed in the next version. Kind Regards. YouTube + JSON-RPC - SrTaronja - 2025-01-09 Hello everyone, I am trying to send a command from a remote control app in my phone (the app is Yatse). The goal is loading one of my YT playlists and playing it in shuffle mode. I tried doing this with the "Addon.ExecuteAddon" command, but this did not seem to work. Digging through google I found that people managed to play individual videos with the "Player.Open". This command seems to be the proper one, and in fact I "managed" to load the list... or at least one of the videos in the list, but not the whole list. This is the "params" value I pass, and as I say, it picks one video of the list (different each time thanks to the "shuffle" option), but one only: {"item": {"directory":"plugin://plugin.video.youtube/play/?playlist_id=PLC_**********&order=shuffle&play=1", "media":"video"}} I tried without any option (just the playlist_id) and using the "file" item instead of "directory", but it always loads one video only, never the whole YT playlist. I don't know if I am doing something wrong or if it's a bug in the addon or kodi; any guidance will be highly appreciated. NOTE: I saw places saying to create a playlist in kodi and to add elements to it, but this would require a lot of commands in Yatse that had to be maintained in parallel with the YT list (the app is not designed to include dynamic loops, just stand-alone commands). If this is the only way it would be great if the add-on included a simple command that does this for the final user. EDIT: Kodi version 21.1; YT addon version 7.1.1.6 Thank you in advance. RE: YouTube + JSON-RPC - SrTaronja - 2025-01-09 (2025-01-09, 01:13)SrTaronja Wrote: Hello everyone,After updating the addon to 7.2.0.0 beta 2 now the JSON-RPC Player.Open command does not open anything (with that params value), not even the one video it did with version 7.1.1.6. I've also noticed that: 1) after invoking such command with the option "audio_only=1" in the JSON-RPC params, and despite not opening any video, when executing the addon directly from the kodi's interface later on, it will play any video as "audio only", even though the corresponding addon setting is disabled (at least that's how it's displayed when consulting the settings) 2) consulting the kodi.log I noticed that the addon processes the YT list (though it plays 1 only - or none - of the elements), but it only takes 50 elements which - I guess - is due to the "Items per page" setting; despite this setting makes sense to searches across the whole YT, I think lists should be fully processed (as it already happens when played through the kodi's UI), not limited to X elements when processed through JSON-RPC. Thank you and best regards. RE: YouTube - MoojMidge - 2025-01-10 (2024-12-31, 22:04)Brainwasterjas Wrote: When I'm watching Linus Tech Tips I used yo search for it and it brought up.loads of videos, I'f then go to Channels and would get a list of channes witj LTT at the top and related channels bekow. I'd click on the LTT channel and the vid would be shown but now I ckick chsnnels and it just shows the original list of the searched videos. Can someone see iftheirs is the same. Can't replicate this. All works fine for me. Try getting a debug log showing this happening and I can take a look. (2025-01-07, 07:31)jim_p Wrote: I wanted to have a look on how a video is identified as short I don't believe there is an official way to identify a video as such, apart from checking whether it shows up in a shorts playlist. (2025-01-07, 08:04)fatsteve Wrote: Also, I believe MoojMidge mentioned that it is being fixed in the next version. The current beta version have a setting to adjust the minimum duration that the video runtime needs to be shorter than to be classified as a "Short", also includes more advanced filtering rules as detailed in https://github.com/anxdpanic/plugin.video.youtube/issues/984 if you want to adjust it further. (2025-01-09, 01:13)SrTaronja Wrote: This is the "params" value I pass, and as I say, it picks one video of the list (different each time thanks to the "shuffle" option), but one only: In Kodi there is a difference between a playlist file (e.g. a m3u8 file), a directory listing, a plugin directory listing, and the actual Kodi playlist that contains the items that are currently playing. The JSON-RPC command you are using is for a directory listing, while the plugin url you are using directly modifies the Kodi playlist. If you want to use that plugin url format then you will need to use Addon.ExecuteAddon but you will need to provide the correct parameters for the JSON-RPC call i.e. addonid and path.If you want to use Player.Open with a directory path then you need to provide a directory listing to it. You can do this by adding &action=list to the YouTube plugin url you are using.(2025-01-09, 13:55)SrTaronja Wrote: 1) after invoking such command with the option "audio_only=1" in the params JSON-RPC, and despite not opening any video, when executing the addon directly from the kodi's interface later on, it will play any video as "audio only", even though the corresponding addon setting is disabled (at least that's how it's displayed when consulting the settings) This parameter was intended for use through the GUI (there are various technical reasons for this but essentially the GUI is used as an means of passing information between different invocations of the plugin). When you are trying to use it without the GUI and the playback fails then the information is stored and not reset correctly. Try the latest development version, and see if it works: https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip (2025-01-09, 13:55)SrTaronja Wrote: 2) consulting the kodi.log I noticed that the addon processes the YT list (though it plays 1 only - or none - of the elements), but it only takes 50 elements which - I guess - is due to the "Items per page" setting; despite this setting makes sense to searches across the whole YT, I think lists should be fully processed (as it already happens when played through the kodi's UI), not limited to X elements when processed through JSON-RPC. This is not a realistic expectation as a plugin does not know how it is being called. The items per page setting only applies to paginated listings. If you are playing a playlist ( /play?playlist_id=xxxx ) then this pagination is not used. If you are browsing through a playlist then it is used, but the plugin url format for doing so is different, and it is up to the end user to choose which url they want to use.As mentioned above, if you want to list a full playlist add &action=list to the play playlist url.(2025-01-09, 13:55)SrTaronja Wrote: After updating the addon to 7.2.0.0 beta 2 now the JSON-RPC Player.Open command does not open anything (with that params value) Can you get a log of this if it still occurs when using the latest development versions? RE: YouTube - SrTaronja - 2025-01-10 (2025-01-10, 01:42)MoojMidge Wrote:(2024-12-31, 22:04)Brainwasterjas Wrote: When I'm watching Linus Tech Tips I used yo search for it and it brought up.loads of videos, I'f then go to Channels and would get a list of channes witj LTT at the top and related channels bekow. I'd click on the LTT channel and the vid would be shown but now I ckick chsnnels and it just shows the original list of the searched videos. Can someone see iftheirs is the same. I tried the "Addons.ExecuteAddon with the following params, but nothing was really played (kodi just navigates into the addon main screen): {"wait":false, "addonid":"plugin.video.youtube", "params":{"action":"play_list", path"/play/", "playlist_id"="PLC_***********", "order":"shuffle"}} I also tried with "action":"playlist" and "action":"list", but also without success, in both 7.1.1.6 and 7.2.0.0b2 versions. RE: YouTube - MoojMidge - 2025-01-10 (2025-01-10, 03:22)SrTaronja Wrote: I tried the "Addons.ExecuteAddon with the following params, but nothing was really played (kodi just navigates into the addon main screen): There is no point trying random JSON-RPC and plugin parameters and value combination that you just made up - this will obviously not do anything. The easiest way is to just do this: (2025-01-10, 01:42)MoojMidge Wrote: If you want to use Player.Open with a directory path then you need to provide a directory listing to it. You can do this by adding &action=list to the YouTube plugin url you are using. RE: YouTube - SrTaronja - 2025-01-10 (2025-01-10, 04:38)MoojMidge Wrote:(2025-01-10, 03:22)SrTaronja Wrote: I tried the "Addons.ExecuteAddon with the following params, but nothing was really played (kodi just navigates into the addon main screen): Hello, I can confirm that "Player.Open" + adding the "&action=list" works, but - from the two versions I've been playing with - only in version 7.2.0.0b2, not in version 7.1.1.6 (where only 1 video from the list is still loaded). I have already updated the PC where I was still using 7.1.1.6 Thank you very much for your help!!!! Just for the curiosity of learning something new, is there any place where the YT inner add-on parameters - and their possible values - for the Addons.ExecuteAddon are listed? I didn't find them (I supposed they where the same than the STRM URL ones XD). EDIT: I also confirm that the full list is loaded (not just the 50 first elements as I feared) and that "audio_only" in the URL only takes place during that reproduction (after that, the corresponding setting is used) RE: YouTube - SrTaronja - 2025-01-11 (2025-01-10, 11:46)SrTaronja Wrote:(2025-01-10, 04:38)MoojMidge Wrote:(2025-01-10, 03:22)SrTaronja Wrote: I tried the "Addons.ExecuteAddon with the following params, but nothing was really played (kodi just navigates into the addon main screen): After a few hours of use I have detected a super minor issue for me, but that might be not so minor for other users: As I said, I invoke this command from a RC app, and I control kodi from that app; in such scenario there's no problem at all. But if - once the command has been invoked - one wants to control kodi from its GUI, for some reason the next/previous buttons on the left side, or the list one on the right (among others), are not shown (on the right side the missing buttons have been replaced by others). Despite the corresponding buttons are not available and it seems that only one video is being reproduced, the list is in fact being played (next video is properly launched when the current one finishes, also with the missing/replaced buttons): NOTE: I don't even know if this is possible, but a button that toggles between audio-only on and off would be great. GUI when the list is directly launched from kodi (without audio_only): ![]() GUI when the list is launched by the JSON-RPC command (with audio_only): ![]() RE: YouTube - znemo - 2025-01-12 Try to sign in on new device. Created all api keys, log in, successfully, but only one time, not two as usual. See all my playlist and subscriptions, but cannot play any video. What am i doing wrong? RE: YouTube - znemo - 2025-01-13 Try to sign in on new device. Created all api keys, log in, successfully, but only one time, not two as usual. See all my playlist and subscriptions, but cannot play any video. What am i doing wrong? Error is "Sign in to confirm you not a bot". RE: YouTube - Brainwasterjas - 2025-01-13 (2025-01-10, 01:42)MoojMidge Wrote: [quote='Brainwasterjas' pid='3220626' dateline='1735675490'] Can't replicate this. All works fine for me. Try getting a debug log showing this happening and I can take a look. -------- Hi I can replicate it every time, oddly if I search in incognito mode it works fine!. I'll try and get a debimug log tonight RE: YouTube - MoojMidge - 2025-01-15 (2025-01-10, 11:46)SrTaronja Wrote: Just for the curiosity of learning something new, is there any place where the YT inner add-on parameters - and their possible values - for the Addons.ExecuteAddon are listed? I didn't find them (I supposed they where the same than the STRM URL ones XD). They are listed here https://github.com/anxdpanic/plugin.video.youtube/blob/master/resources/lib/youtube_plugin/kodion/context/abstract_context.py#L53-L132, but what the allowable values are, or what they do, is not documented anywhere except in the addon code itself, apart from what is already in the addon wiki Add-on:YouTube (wiki). Note as well that there is nothing special about the parameters used in a plugin url or via Addons.ExecuteAddon - they are the same, you were just using different parameter values when using Addons.ExecuteAddon compared to when using the same parameters in a plugin url for Player.Open (2025-01-11, 12:06)SrTaronja Wrote: for some reason the next/previous buttons on the left side, or the list one on the right (among others), are not shown (on the right side the missing buttons have been replaced by others). Despite the corresponding buttons are not available and it seems that only one video is being reproduced, the list is in fact being played (next video is properly launched when the current one finishes, also with the missing/replaced buttons) In Kodi there are different types of playlists. The difference in the screenshots arises because audio is being added to a video playlist, while the GUI is reflecting the status of the audio player which doesn't have a populated audio playlist and hence does not show the additional buttons for interacting with the audio playlist. This should be improved in f28c509, you can test it using https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip to see if it works. (2025-01-13, 19:02)znemo Wrote: What am i doing wrong? Error is "Sign in to confirm you not a bot". In future if you have an issue, be aware that the only way assistance can be provided is if you provide a debug log. You have been (temporarily?) been blocked from accessing YouTube due to suspected bot like behaviour. This is commonly associated with the use of proxies or VPNs. If you use those, then you will need to disable them, or try to get a new IP address. You can also try the latest beta version, it may help, it may not: v7.2.0+beta.3 (2025-01-13, 19:06)Brainwasterjas Wrote: I can replicate it every time, oddly if I search in incognito mode it works fine!. I'll try and get a debimug log tonight See if you can get a log of it working in incognito mode and also not working normally. RE: YouTube - jim_p - 2025-01-18 Youtube, the api I love to hate! Does anyone have issues with youtube freezing kodi completely after a video is either over or when it starts? It just pops an error about youtube not being able to play the video and freezes. It has happened to me twice since yesterday, on 2 different videos, from different creators and I had to power down the device from the power button in the end, risking damage to its filesystem, because not even sshing to it and issuing a poweroff or reboot did not work! Is it a known issue that was fixed in some beta of 7.2? I will try getting a part of the log next time, but I doubt it will help. Kodi 18.9 on libreelec 9.2.6 x64 and youtube 7.1.1.6. ---edit Here are the last ~100 lines from the log with the addon leading to kodi's crash. It has happened 5 times so far and right now youtube is completely unusable on my end. Reinstalling it did not help at all. https://paste.debian.net/hidden/caa7b7e3/ |