Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84004

Playlist help ARRGGHH!!

$
0
0
right im building a playlist and the url is grabbed seperatley

Code:
def Music_Playlist_Link(name,url,iconimage,artist,album):
    link = OPEN_URL(url)
    match=re.compile('class="primary_link">(.+?)</a>').findall(link)
    liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
    liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": description } )
    liz.setProperty('mimetype', 'audio/mpeg')
    pl=xbmc.PlayList(xbmc.PLAYLIST_MUSIC)
    pl.clear()
    for name in match:
            url=for_download(name,artist)<--------------------------------Grab All Urls
            pl.add(url,liz)
    xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(pl)




now when i try and play the playlist it only plays one and hasnt stored all ?

would i have to build a cache file first to cache all urls then add all to playlist?

i have tried that and still no luck

Viewing all articles
Browse latest Browse all 84004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>