2017-06-18, 05:38
does anyone know how to solve my issue?
I have a youtube playlist url:
according to bromix' instruction
I've converted the link to make it played in random order (shuffle)
but then I don't know how to play the converted link
fyi, I have tried these 4 different following methods,
#1
#2
#3
#4
but none of them worked on my side
with method #2 / #3 / #4, I could only see the kodi was able to update the playlist, but then it just stopped & played nothing
any help would be appreciated
thank you
EDIT #1:
I've tried 2 more different methods:
#5
#6
but those methods still won't work with the converted link
EDIT #2:
the converted link can work with this method #7
#7
but this method creates a link in a directory which requires a click, so the playlist can't be played directly / automatically
please help me guys
I have a youtube playlist url:
Code:
https://www.youtube.com/playlist?list=PLQw-AwSCH8G3Dhw4vAu0R7OfxDWdUbhaR
according to bromix' instruction
Code:
https://forum.kodi.tv/showthread.php?pid=1930377#pid1930377
I've converted the link to make it played in random order (shuffle)
Code:
plugin://plugin.video.youtube/play/?playlist_id=PLQw-AwSCH8G3Dhw4vAu0R7OfxDWdUbhaR&order=shuffle
but then I don't know how to play the converted link
fyi, I have tried these 4 different following methods,
#1
Code:
li = xbmcgui.ListItem('', iconImage='', thumbnailImage='')
li.setInfo('video', {'Title': ''})
xbmc.Player().play(item=url, listitem=li)
#2
Code:
li = xbmcgui.ListItem( '', iconImage='', thumbnailImage='')
li.setProperty( "IsPlayable", "true")
li.setProperty( "Video", "true")
xbmc.Player().play( url, li)
#3
Code:
xbmc.executebuiltin('Container.Update(%s)' % url)
#4
Code:
xbmc.executebuiltin("xbmc.PlayMedia("+url+",isdir)")
but none of them worked on my side
with method #2 / #3 / #4, I could only see the kodi was able to update the playlist, but then it just stopped & played nothing
any help would be appreciated
thank you
EDIT #1:
I've tried 2 more different methods:
#5
Code:
def play_video(name, iconimage, url, setres=False):
liz = xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
liz.setInfo(type='Video', infoLabels={'Title':name})
liz.setProperty("IsPlayable","true")
liz.setPath(url)
if not setres: xbmc.Player().play(url)
else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, liz)
#6
Code:
xbmc.executebuiltin('XBMC.RunPlugin('+url+')')
but those methods still won't work with the converted link
EDIT #2:
the converted link can work with this method #7
#7
Code:
liz = xbmcgui.ListItem('', iconImage='')
liz.setInfo(type='Video', infoLabels={'Title':''})
liz.setProperty("IsPlayable","true")
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
xbmcplugin.endOfDirectory(addon_handle)
but this method creates a link in a directory which requires a click, so the playlist can't be played directly / automatically
please help me guys