Release [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only - 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 [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only (/showthread.php?tid=79487) 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
- HenrikDK - 2011-02-22 diliban Wrote:Hi,Hi, I don't know how you are telling xbmc to execute the command, but it sounds like you're having trouble with handles and video playback as was explained in the post on page 33: http://forum.xbmc.org/showpost.php?p=628643&postcount=321 It is very important that the url you pass is executed with a call like XBMC.PlayMedia(<plugin url>) as xbmc will otherwise give it the wrong handle for video playback and the operation will fail diliban Wrote:Also on a different note, how do I call the plugin with a playlist parameter? Currently my URL is of the formatI Don't know what you're trying to accomplish but I'm guessing that it would be to queue a playlist of "plugin" video items and start playback, this is as far as i know currently impossible with XBMC. I've tried implementing something like this in the plugin: Code: xbmc.executebuiltin('XBMC.Action(Queue(plugin://plugin.video.youtube.beta/?path=/root/playlists&feed=playlist_root&playlist=02B8B3DB2F90E8BD))') A lot of users have been asking for similar functionality (albeit from within xbmc), so I've also created a patch for XBMC that would allow someone to implement similar behavior by adding a new builtin function "PlayAll(<plugin path>)" (see trac ticket: http://trac.xbmc.org/ticket/10959). But the horizon for getting this patch accepted and committed to trunk seems to be very long, so we'll probably see if we can't code around it for the next beta. tl;dr: Auto play of YouTube playlists not possible yet.. In case you're trying to do something else with playlists please elaborate - diliban - 2011-02-22 Thanks for the reply HenrikDK. All I am trying to do is parse a website and get all the YouTube videos and pass it to Youtube addon to play the video(s). I think I am calling the plugin using the correct URL and the method as I can see the from the logs that the plugin is retrieving the information about the videoid. But when the URL generated for the videoplayback/download is generated it errors out as shown in the log. The URL I use for the Plugin Call Code: url = "plugin://plugin.video.youtube/?action=play_video&videoid=%s" % videoid Also the code to execute the url is Code: xbmc.PlayMedia(url) As seen in the log, the plugin seems to kick in fine to get the details of the video but then ends with an error when trying to play the video Code: 23:21:31 T:8820 M:1321521152 NOTICE: Name: Airtel Super S.. Where am I going wrong? When I enter the VideoID in the youtube Addon under Playbyid the video play's fine. So I do know the video works. But I want it to work from my addon. - HenrikDK - 2011-02-22 diliban Wrote:Thanks for the reply HenrikDK. All I am trying to do is parse a website and get all the YouTube videos and pass it to Youtube addon to play the video(s). As far as i can see the xbmc python module doesn't have a PlayMedia function, so I'm kinda puzzeled as to how you're executing the plugin . Anyway I just tried copying this line of code into a random function on my dev machine and it worked: Code: xbmc.executebuiltin("XBMC.PlayMedia(plugin://plugin.video.youtube/?action=play_video&videoid=XecLsVXi6oM)") - japzone - 2011-02-24 HenrikDK Wrote:Hi, I will look into this, but I'm kinda doubting its possible as i don't know what subtitle format YouTube uses or if XBMC will even allow me to add it. But anyways I will give it a look see On the Roku the Unofficial Youtube channel has Subtitle support so it proves that the Subs are at least Accessible through the API. Although what format the Subs are using, I don't know. Youtube allows uploading of SRT files so hopefully that's what they Output. - HenrikDK - 2011-02-25 japzone Wrote:On the Roku the Unofficial Youtube channel has Subtitle support so it proves that the Subs are at least Accessible through the API. Although what format the Subs are using, I don't know. Youtube allows uploading of SRT files so hopefully that's what they Output. Well I spent some time looking into it and theres plenty of bad news ahead: Quote:Captions for a video can only be created, retrieved, modified and deleted by the owner of that video. To perform these operations for a video, you must submit authenticated API requests for which the video's owner is the logged-in user. Accordingly, API requests for caption operations must contain a properly formatted Authorization header.taken from: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_captions.html#Retrieve_Caption_Track_in_Alternate_Format In short the API doesn't expose subtitle streams to anyone else but the videos owner, this means we have to scrape the video page for the feed. While this seems easy enough to do, the format that YouTube provides seems to be proprietary (or some variation of the W3C's timed text, but I didn't spend enough time looking at it to tell whether or not YouTube follows the standard as it seems *a lot* more complex). Currently this format is unsupported by XBMC, and it's highly unlikely that it will ever be added, as such the plugin will need to do an on the fly conversion to .srt or some other supported format. While this is possible I have yet to figure out how to provide the final subtitle stream to xbmc (but that might be solvable too) In any case this is a feature that won't make it into the plugin until development on the next beta begins http://pastebin.com/5HvfFzKb - Death-Axe - 2011-02-25 Hi, could you make it auto login when you select the addon? it is VERY annoying having to open options then go to ok every time I want to use it. Or at least add a login option to the main direcotry list. Also is there a way to make it login any quicker? takes several minutes stuck on 'loading directory' when it's logged in (after going to options and clicking ok...) Great addon apart from these flaws... main one being it takes forever to login. Nothing to do with pc connection. Final edit: confirmed my user and password is working on the site, confirmed I typed them in correctly by looking at the settings xml. All correct but still wont login. Videos work on browse youtube etc. - HenrikDK - 2011-02-25 Death-Axe Wrote:Hi, could you make it auto login when you select the addon? it is VERY annoying having to open options then go to ok every time I want to use it. Or at least add a login option to the main directory list. Once you're logged in the plugin will remember the authentication token between sessions, this token might expire (either if a long time passes between you using the plugin, or you logging in with the plugin from some other machine) both these cases require you to login again, but the should be pretty infrequent. We could probably look into doing an automagic re-login, but that might annoy windows users due to the login speed issues explained below. Death-Axe Wrote:Also is there a way to make it login any quicker? takes several minutes stuck on 'loading directory' when it's logged in (after going to options and clicking ok...) The long login time is due to youtubes login mechanism being flaky, and therefore the plugin tries to login multiple times, unfortunately this often results in the user waiting the standard 30 seconds between logins. We've tried implementing a fix for this but it cause problems with windows (see trac) so we disabled it again. Death-Axe Wrote:Final edit: confirmed my user and password is working on the site, confirmed I typed them in correctly by looking at the settings xml. All correct but still wont login. Videos work on browse youtube etc. If you're having issues loging on then please follow the guide: http://code.google.com/p/youtubexbmc/wiki/TroubleShootingLoginIssues /HenrikDK - Death-Axe - 2011-02-25 I followed your guide...and strangely it just logged in. crazy stuff... but thanks for the heads up. - HenrikDK - 2011-02-26 Death-Axe Wrote:I followed your guide...and strangely it just logged in. crazy stuff... but thanks for the heads up. Yeah I know , I would hardly call the login function deterministic right now especially for windows users. I was looking at the youtube api description and it seems that we're now using an outdated entry point for our login function so I've added a refresh of the login code and some work on better re-login to the todo. The change is non trivial though so it wont be included before the next beta. - tomolac - 2011-02-26 I'm having some trobles with catagory views, all though all the TV shows appear none of the episodes do when selecting any of them. So far it seems to be mostly 4od stuff but I have found a few other that dont work, so far HISHE and MOD2 killcams are the only ones I've found that work. XBMC PRE-11.0 r35744 youtube V2.0.0 Any help would be apreciated. - HenrikDK - 2011-02-26 tomolac Wrote:I'm having some trobles with catagory views, all though all the TV shows appear none of the episodes do when selecting any of them. So far it seems to be mostly 4od stuff but I have found a few other that dont work, so far HISHE and MOD2 killcams are the only ones I've found that work. Hi just tested that the "Show" scraper was still working on my end and everything seems fine, but I can't vouch for 4oD content since I don't have access to that stuff. Playback of 4oD stuff has been problematic / non working for some time and I think it's got something to do with their added commercials. To say anything more I would need some examples of shows that won't work which are not region restricted like 4oD.. Also if you are getting any error messages while listing episodes or playing anything from within xbmc please post a log with the plugins debug mode enabled. - Shinu - 2011-02-26 i don't know if this has been asked before, but is it possible to have this script access hyperlinks in annotations? seeing as interactive videos are getting more and more popular. - HenrikDK - 2011-02-26 Shinu Wrote:i don't know if this has been asked before, but is it possible to have this script access hyperlinks in annotations? seeing as interactive videos are getting more and more popular. Ehm, I can't really see how thats supposed to work in a media center application like XBMC, we don't really have access to a webbrowser and most people navigate exclusively with their remote, and on top of that theres the whole problem drawing the links on screen which I'm unsure of how to accomplish. In short I don't think this is possible, and falls well out side of the expectations of a mediacenter application for now. - tomolac - 2011-02-26 Quote:11:00:28 T:140368469456640 M:3182301184 NOTICE: YouTube-2.0.0 parseVideoList, got videoid false is the error I get - HenrikDK - 2011-02-26 tomolac Wrote:is the error I get Hi, First, That's not an error it's a notification that YouTube returned a video id which is not viewable in your country. Second and I should probably have elaborated on this earlier, if you want to report an error you have to (taken from our login troubleshooting page): Quote:1. Upload your debug log to http://pastebin.ca/upload.php ( Do NOT upload part of the log, we need the ENTIRE log. The easiest method is through the link provided). A one line description of some error is practically useless and amounts to nothing more than spam |