Author Topic: Maximum Size of Playlist  (Read 131 times)

Greenpalmer

  • Posts: 3
Maximum Size of Playlist
« on: 1 Nov '21 - 17:12 »
Hi, I have been using XMPlay for years and it's brilliant, never had any problems.

However I have recently added a few extra MP3s to my music collection and suddenly I can't load all my music into one playlist. After a bit of experimentation it seems the maximum number of MP3s that can be in a playlist is 699, any more and it just refuses to load any.

Is it possible to increase the number of items allowed in a playlist?

saga

  • Posts: 2549
Re: Maximum Size of Playlist
« Reply #1 on: 1 Nov '21 - 23:11 »
XMPlay most definitely can have way more than 700 MP3s in the playlist (I have several thousand here, plus thousands of files in other formats). What is the actual problem you are observing when adding more? If XMPlay is crashing, it's more likely due to a plugin having an issue with a specific file than a problem with the number of files. In that case, adding files in smaller batches to identify which file causes the issue can help.

Greenpalmer

  • Posts: 3
Re: Maximum Size of Playlist
« Reply #2 on: 2 Nov '21 - 16:35 »
Apologies, I explained the problem incorrectly.

It's when I use the "Open Files" button that there seems to be a limit of 699 MP3s.

Thanks for mentioning no limit on playlists - when I put all my MP3s into a playlist and load the playlist then there is no problem.

saga

  • Posts: 2549
Re: Maximum Size of Playlist
« Reply #3 on: 2 Nov '21 - 17:37 »
Ah right, that's a side effect of XMPlay using the "oldschool" way of creating file dialogs, where the application has to tell the system in advance how much space it has available for filenames, and with that many files you will hit XMPlay's (or any other applications using that function) limit. If the files had shorter names, you'd be able to load a few more. If Ian wants to improve this, he could be using the IFileDialog COM interface on Windows Vista and newer instead, which doesn't have this limitation.

For the time being, if all those files are in the same folder, you can also right-click the "Add" button, which will open a folder picker instead of a file picker, so you can add a whole folder in one go instead of manually selecting all files in that folder. Yet another alternatively would be to drag&drop the files into XMPlay's playlist, which should also have no limitation regarding the number of files that can be dropped at once.

Ian @ un4seen

  • Administrator
  • Posts: 23983
Re: Maximum Size of Playlist
« Reply #4 on: 2 Nov '21 - 17:56 »
Yep, the file selector currently has a limit of 25000 characters in total for all selected files. The number of files that fit in that will vary depending on how long the filenames are.

Greenpalmer

  • Posts: 3
Re: Maximum Size of Playlist
« Reply #5 on: 2 Nov '21 - 19:27 »
OK, thanks for the explanation.

I thought that 699 was a strange number to be a maximum but number of characters explains that.

I'm fine with using a playlist or the folder picker, so as far as I'm concerned problem solved 😀