2018-01-02, 01:30
Hi,
I need some help, I have
I have some yt channel IDs on my pastebin
If my addon call yt plugin with xbmc.PlayMedia it just start start playing videos of channel from 1st videos as a playlist. I want yt plugin to list the videos and let user to play the one as needed.
url = plugin://plugin.video.youtube/channel/[CID]/
xbmc.executebuiltin("xbmc.PlayMedia("+url+")")
I guess I need to use
ActivateWindow(10025,'plugin://plugin.video.youtube/channel/[CID]',return)
but its not working for me as I am not getting how to use given CID from my pastebin.
here is what I am trying to do:
CID = url
def ytchannel(url):
url = 'plugin://plugin.video.youtube/channel/' + url +'/'
xbmc.executebuiltin("ActivateWindow(10025,'("+url+")',return)")
and this is what I get in log"
16:58:58.395 T:26304 ERROR: Control 55 in window 10025 has been asked to focus, but it can't
16:59:00.895 T:26304 WARNING: XFILE::CDirectoryFactory::Create - unsupported protocol('(plugin) in '(plugin://plugin.video.youtube/channel/UC3o_gaqvLoPSRVMc2Gm****/)'
16:59:00.896 T:26304 ERROR: CGUIMediaWindow::GetDirectory('(plugin://plugin.video.youtube/channel/UC3o_gaqvLoPSRVMc2Gm****/)') failed
16:59:02.980 T:21200 ERROR: Could not find suitable input format: x-directory/normal
What I am doing wrong or how I manage to use given channel ID Playlist ID from my pastebin to list the videos.
Thanks
I need some help, I have
I have some yt channel IDs on my pastebin
If my addon call yt plugin with xbmc.PlayMedia it just start start playing videos of channel from 1st videos as a playlist. I want yt plugin to list the videos and let user to play the one as needed.
url = plugin://plugin.video.youtube/channel/[CID]/
xbmc.executebuiltin("xbmc.PlayMedia("+url+")")
I guess I need to use
ActivateWindow(10025,'plugin://plugin.video.youtube/channel/[CID]',return)
but its not working for me as I am not getting how to use given CID from my pastebin.
here is what I am trying to do:
CID = url
def ytchannel(url):
url = 'plugin://plugin.video.youtube/channel/' + url +'/'
xbmc.executebuiltin("ActivateWindow(10025,'("+url+")',return)")
and this is what I get in log"
16:58:58.395 T:26304 ERROR: Control 55 in window 10025 has been asked to focus, but it can't
16:59:00.895 T:26304 WARNING: XFILE::CDirectoryFactory::Create - unsupported protocol('(plugin) in '(plugin://plugin.video.youtube/channel/UC3o_gaqvLoPSRVMc2Gm****/)'
16:59:00.896 T:26304 ERROR: CGUIMediaWindow::GetDirectory('(plugin://plugin.video.youtube/channel/UC3o_gaqvLoPSRVMc2Gm****/)') failed
16:59:02.980 T:21200 ERROR: Could not find suitable input format: x-directory/normal
What I am doing wrong or how I manage to use given channel ID Playlist ID from my pastebin to list the videos.
Thanks