playing you tube links: not working for me?
#1
When i try to play a youtube link i am getting this error:

Quote:10:38:31 T:2500848448 WARNING: Attempt to use invalid handle -1
10:38:31 T:2500848448 NOTICE: [plugin.video.youtube] Shutdown of Kodion
10:38:31 T:2676087616 NOTICE: Thread LanguageInvoker start, auto delete: false
10:38:32 T:2676087616 NOTICE: -->Python Interpreter Initialized<--
10:38:32 T:2676087616 NOTICE: [plugin.video.youtube] Starting Kodion framework by bromix...
10:38:32 T:2676087616 NOTICE: [plugin.video.youtube] Python : 2.7.6
10:38:32 T:2676087616 NOTICE: [plugin.video.youtube] System : Helix (2.19)
10:38:32 T:2676087616 NOTICE: [plugin.video.youtube] Context: YouTube (5.0.6)
10:38:32 T:2676087616 NOTICE: [plugin.video.youtube] Shutdown of Kodion

Im using something like this:

Quote:youtube_url = "plugin://plugin.video.youtube/?action=play_video&videoid=LBoPPQOcCfc"
xbmcplugin.addDirectoryItem(handle=addon_handle , url=youtube_url, listitem=li)

i also tried

Quote:youtube_url = "plugin://plugin.video.youtube/play/?video_id=LBoPPQOcCfc"
However It isnt working for me. Is this the wrong way? Seems to be working in other plugins that use youtube
Reply
#2
you need to

1) make sure the item is added as a file and not a directory (see addDirectoryItem)
2) set the isPlayable property on the item (li.setProperty('isplayable','true'))

first url format is the correct one.
Reply
#3
(2015-02-20, 18:10)ironic_monkey Wrote: you need to

1) make sure the item is added as a file and not a directory (see addDirectoryItem)
2) set the isPlayable property on the item (li.setProperty('isplayable','true'))

first url format is the correct one.

Thanks Ironic Monkey - worked like a charm Rocking!
Reply

Logout Mark Read Team Forum Stats Members Help
playing you tube links: not working for me?0