phlaange Posted June 10, 2020 Share Posted June 10, 2020 Or... are PlaylistId's even needed in playlists? LB seems to be able to load playlists that don't have a PlaylistId. I'm writing external code to generate playlists and am wondering what to do about the PlaylistId for each playlist. Any suggestions? Quote Link to comment Share on other sites More sharing options...
C-Beats Posted June 10, 2020 Share Posted June 10, 2020 Are you writing 100% external code or are you creating a plugin for LaunchBox? The answer would change the suggestion. Quote Link to comment Share on other sites More sharing options...
phlaange Posted June 10, 2020 Author Share Posted June 10, 2020 1 hour ago, C-Beats said: Are you writing 100% external code or are you creating a plugin for LaunchBox? The answer would change the suggestion. It is not a plugin. Completely external code creating XML files in the LB directory. Quote Link to comment Share on other sites More sharing options...
C-Beats Posted June 10, 2020 Share Posted June 10, 2020 Then should be able to just assign Guid.New() (or whatever the equivalent code is for whatever language you are using). As long as you don't assign the playlist an ID that is already in use you should be fine. Quote Link to comment Share on other sites More sharing options...
phlaange Posted June 10, 2020 Author Share Posted June 10, 2020 18 minutes ago, C-Beats said: should be able to just assign Guid.New() As long as you don't assign the playlist an ID that is already in use you should be fine. And, of course, it's easy as in Python. Thanks. I'll have to have a look at the object to see if need to check for uniqueness. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.