Author Topic: Playlist_CreatePlaylist and folders  (Read 1144 times)

Morbii

  • Newbie
  • *
  • Posts: 13
So, the folder parameter for this delegate seems to be broken, but it might be lack of documentation.

Basically, some kind of base folder for the folder parameter exists behind the scenes based on the folder configuration of the playlists.

My playlist structure looks like this:



With this configuration, adding playlists with "" for the folder will add them to the "gargle" folder.  If you provide a value for folder (such as a single space in the example you see), it will put the new folder under the "gargle" folder like shown.

Is there any way to force playlist folders to start at the base folder?

BoringName

  • Sr. Member
  • ****
  • Posts: 916
With this configuration, adding playlists with "" for the folder will add them to the "gargle" folder.

Might be a problem there. If you use "" for the folderName it should create the playlist in the root playlist folder not the gargle folder.

If you want to create a playlist inside the gargle folder - Playlist_CreatePlaylist;("gargle", "elves", songs[])
if you want to create a sheep playlist in an elves subfolder - Playlist_CreatePlaylist;("gargle\elves", "sheep", songs[])

edit: To answer the last part of your post, it might just be an issue with you using a space instead of listing a folder name. Playlist_CreatePlaylist;("elves", "sheep", songs[])

Should create an elves folder with a sheep playlist inside it. The elves folder should be in the root playlist folder along side gargle. if using that command creates an elves folder inside gargle, I'd say that was a bug.
Last Edit: January 02, 2025, 04:24:19 AM by BoringName

Morbii

  • Newbie
  • *
  • Posts: 13
Yeah, the behavior (at least in my setup) is very reproducible.

Providing a name that isn't a space will do the same thing (i.e. if I chose "folder" instead of "", it would be put in "gargle/folder".

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34976