Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: "create_playlist_fixname" creates new playlist instances (Read 2431 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

"create_playlist_fixname" creates new playlist instances

I use :

unsigned idx = api->create_playlist_fixname(playlist_name,list_new);

to create a new playlist and populate it. When the playlist already exists, a new one is created with (1), (2), ... as a suffix.

What can I do to reuse the same playlist name and refresh the content instead? I would like to avoid the creation of (1), (2), ....

Thanks in advance for your support

"create_playlist_fixname" creates new playlist instances

Reply #1
Use the find_or_create_playlist() method and populate the returned playlist manually.