Release YouTube (IMPORTANT - READ FIRST POST) - 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 (IMPORTANT - READ FIRST POST) (/showthread.php?tid=200735) 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
RE: YouTube v5.X.X - KODI 14.0 Helix - J876 - 2015-01-30 (2015-01-30, 08:35)bromix Wrote:(2015-01-30, 06:20)J876 Wrote: To: Bromix I have added your repository to my Kodi installation and the new beta fixed it. Thanks bromix! RE: YouTube v5.X.X - KODI 14.0 Helix - enen92 - 2015-01-30 Hey bromix, hope you are well. I have a simple question or a feature request for an addon I'm developing. I want to import the youtube addon in addon.xml and be able to pass it a url (a channel id/name) and receive a list of videos (thumb, video url/id, thumb, plot). I can parse it on my addon (for instance: https://gdata.youtube.com/feeds/api/playlists/'+url3+'?max-results=%27+str(maxresults)+%27&start-index=%27+str(startindex)+%27&v=2.1) but it would be nicer to just extend the sys.path to youtube addon and call it. So I could list videos on my addon and call yours either to retrieve the videos (plugin://plugin.video.youtube is fine) and/or for playback. Is it already possible or can it be implemented? It would save code on my side, and also be better since they are always changing the api cheers RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 14:27)tomer953 Wrote: Ok. Problem solved by restart the adapter many thanks. (2015-01-30, 17:06)J876 Wrote: I have added your repository to my Kodi installation and the new beta fixed it. Thanks bromix! Nice to hear RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 17:34)enen92 Wrote: Hey bromix, hope you are well. First page of this thread => Endpoints/External calls => Show the content of a channel Would this help? It will show directly the content of channel (by id or username). RE: YouTube v5.X.X - KODI 14.0 Helix - enen92 - 2015-01-30 I have to dig into the code but I doubt that is what i am looking for. By using this path i'll call your addon and that will activate the video list view of the youtube addon. So basically, i guess your plugin will create and add the listitems. I am building the gui myself so i want to list the videos in my custom window and then call youtube. I dont know if you have this function build into two parts : getting the info from the api and adding the items to the interface, but the one I am looking for is the first only. So: 1-my plugin calls yours to get the video list (python list or python dict for instance) 2- my plugin adds the videos to my window as listitems 3-my plugin calls yours for playback RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 21:01)enen92 Wrote: I have to dig into the code but I doubt that is what i am looking for. By using this path i'll call your plugin that will activate the video list view of the plugin addon. So basically, i guess your plugin will create and add the listitems. Mhmm...sorry no the addon is only for video (+content) otherwise I would have implemented a script.module for YouTube to provide only a wrapper for the API. RE: YouTube v5.X.X - KODI 14.0 Helix - enen92 - 2015-01-30 Mind pointing me to this function on the source code of your plugin? RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 10:00)o2ri Wrote: only the shuffle doesnt work now : Jiks....I tested some playlists and you're right. The implementation of the shuffle option for playlists is quite weak it seams that the implementation isn't using some kind of Mersenne Twister pseudorandom number generator (we use at work). The sequence is repeating after creating a new playlist, the shuffling is almost the same after observing it a bit I shuffle the list by my self. ...and yes, I unshuffled in my test the playlist...and the result is the same RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 21:05)enen92 Wrote: Mind pointing me to this function on the source code of your plugin? Sure https://github.com/bromix/plugin.video.youtube/blob/v5.0.4/resources/lib/youtube/client/youtube.py This implements part of the APIv3 of YouTube -> API Reference RE: YouTube v5.X.X - KODI 14.0 Helix - Pawtuxet - 2015-01-30 Hey bromix, First of all, thanks for your work on this fantastic plugin. Staying on top of my subscriptions was never more convenient. Sadly I haven't been able to use it the last few days - at least not on the main mediacenter (no problems on the windows-based one). From what I can tell from the included logfile, youtube doesn't want to talk to me, and given that no one else seems to experience this, the problem is likely on my system. I've tried deleting its folder under userdata/addon_data and reinstalling, but that didn''t change anything. I'm hoping you might have some idea of what's gone wrong. I'm not sure if the problem appeared with 5.0.5-beta3 or beta4 or if it's even related, but I know for certain it was working with beta2. http://xbmclogs.com/show.php?id=407957 RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 04:59)dkplayaclub Wrote: Not sure if it's been brought up yet, but I would love to see an option to clear search history. Done should work with the next beta (and hopefully with 5.0.5) RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-30 (2015-01-30, 23:27)Pawtuxet Wrote: Hey bromix, WOW! You're the first with python 2.7.9!?!?!? In this version urllib2 verifies certificates (every https connection - DAMN YOU PYTHOOOOOOOOOOOOOOON!!!!!) I try some thing for the beta6 - I hope this will help you Please give me feedback as soon as you can test beta6 RE: YouTube v5.X.X - KODI 14.0 Helix - Pawtuxet - 2015-01-31 (2015-01-30, 23:46)bromix Wrote: WOW! You're the first with python 2.7.9!?!?!? In this version urllib2 verifies certificates (every https connection - DAMN YOU PYTHOOOOOOOOOOOOOOON!!!!!) I try some thing for the beta6 - I hope this will help you Please give me feedback as soon as you can test beta6 Absolutely! Keeping a system updated, I guess, does not always work in your favor. RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-31 (2015-01-31, 00:30)Pawtuxet Wrote:(2015-01-30, 23:46)bromix Wrote: WOW! You're the first with python 2.7.9!?!?!? In this version urllib2 verifies certificates (every https connection - DAMN YOU PYTHOOOOOOOOOOOOOOON!!!!!) I try some thing for the beta6 - I hope this will help you Please give me feedback as soon as you can test beta6 NO the fragmentation of python versions in XBMC/KODI is pain in the a** . I have Python 2.6.* to 2.7.9 now RE: YouTube v5.X.X - KODI 14.0 Helix - bromix - 2015-01-31 v5.0.5~beta6 UP! I hope the problem with python 2.7.9 is gone |