Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with audio smart playlists #47

Closed
brendongl opened this issue Dec 14, 2024 · 5 comments
Closed

Does not work with audio smart playlists #47

brendongl opened this issue Dec 14, 2024 · 5 comments

Comments

@brendongl
Copy link

It shows files playing as the playlist night.xsp123.mp3

Any workaround other than manually creating normal playlists?

@Heckie75
Copy link
Owner

Could you pls give me more details? What are smart playlists? Where can I see this kind of playlist?

@brendongl
Copy link
Author

The smart playlists which was introduced.

https://kodi.wiki/view/Smart_playlists

@Heckie75
Copy link
Owner

Heckie75 commented Dec 19, 2024

@brendongl
I have implemented s.th. that I was able to test with audio playlists.
Please take a look at branch https://github.com/Heckie75/kodi-addon-timers/tree/script.timers.4.1.0 or directly download https://github.com/Heckie75/kodi-addon-timers/raw/refs/heads/script.timers.4.1.0/script.timers.4.1.0.zip

Let me know if this change works for you.

BTW: I',m no very happy with the code since I haven't found a way to add an item of type 'smart playlist' to a playlist (object) by using the API. That's why I've implemented a workaround and do this by utilizing jsonrpc (ident. to the web client)

    json_rpc(jsonmethod="Playlist.Clear", params=[playListId])
    json_rpc(jsonmethod="Playlist.Insert", params=[
        playListId, 0, {"directory": path}])
    player.play()

@Heckie75
Copy link
Owner

EDIT:
a little improvement is to play smart playlist like this:

xbmc.executebuiltin('PlayMedia("%s","isdir")' % url)

@Heckie75
Copy link
Owner

See xbmc/repo-scripts#2704

Issue will be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants