blackarcanis 4 Posted February 13, 2020 Posted February 13, 2020 (edited) Hi, I'm looking for a solution to create empty playlists, still having the playlist alive when deleting all items inside it. I can see here => https://github.com/MediaBrowser/Emby/wiki/Playlists sending "MediaType" instead of "Ids" should work but in fact, the playlist is not listed anywhere... (I've got an ID returned but the playlist is no where...). There's an specific API requests to be made to also list these empty playlists ? Any solution for this ? Thank you ! Edited February 13, 2020 by blackarcanis
PenkethBoy 2068 Posted February 13, 2020 Posted February 13, 2020 i think empty playlists are not loaded in the GUI
blackarcanis 4 Posted February 13, 2020 Author Posted February 13, 2020 i think empty playlists are not loaded in the GUI Yes I think that too... That's why I would like to know if there's a solution with an API endpoint or specific query parameters to have them :/
PenkethBoy 2068 Posted February 13, 2020 Posted February 13, 2020 (edited) if you create an empty playlist does it get created in .../data/playlists/nameofplaylist [playlist] i have done this numerous times but not create an empty one to start with [edit] Just tested and it does create the empty playlist in the above folder So having the returned id then you can pull this PL back and add items as necessary Edited February 13, 2020 by PenkethBoy
blackarcanis 4 Posted February 13, 2020 Author Posted February 13, 2020 Yes that's great and solve a part of my initial problem, but what if I want to let this playlist empty for now, just to have it as container for a later usage ? How can I get empty playlists returned when I'm getting the list of all my playlists with "IncludeItemTypes=Playlist&Recursive=true" ?
PenkethBoy 2068 Posted February 13, 2020 Posted February 13, 2020 test it in swagger click the api link at bottom of the dashboard page on your server then you can try it out etc
blackarcanis 4 Posted February 13, 2020 Author Posted February 13, 2020 test it in swagger click the api link at bottom of the dashboard page on your server then you can try it out etc You are right, I have been able to found them when doing the request directly on "emby/Items" and not on "emby/Users/xxxx/Items" What is the difference between these 2 Urls ?
blackarcanis 4 Posted February 13, 2020 Author Posted February 13, 2020 Thank you and sorry, I'm a new Emby user, we are integrated Emby API to our app. So I'm not very confortable with the Emby interface/features yet... A server can have multiple users, right ? About "empty playlist" that means creating an emtpy playlist (even if by sending "UserId" param) is still not associating the playlist to the user. Good to know !
Luke 42077 Posted February 13, 2020 Posted February 13, 2020 Currently you can't because playlists are only visible to you if at least one item in the playlist is visible. It's something we'll look to improve in future updates. Thanks. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now