Open Matthew2051 opened 3 years ago
I cannot seem to reproduce this behavior on a similar environment.
Could you/have you tried copying the file name (except the .txt
bit)? Perhaps some kind of special/unusual hyphen in the name or other weirdness.
We have come to the conclusion that the PowerShell Script found in the "Advanced Config Generation" wiki results in files are encoded in UTF-16 LE BOM, which JMusicBot is sometimes unable to read.
UPDATE: The script has now been updated to ensure a UTF-8 file gets generated.
An exception, java.nio.charset.MalformedInputException: Input length = 1
, gets thrown.
When an exception occurs, null
is being returned. This is problematic in the play playlist command:
The command falsely assumes that the playlist could not be found if the return value is null. This should be updated to error out in case of exceptions like these, to avoid further confusion.
Bug Description
As mentioned on discord, the MusicBot seems unable to handle more than 128 .txt files in the Playlists folder.
Steps to Reproduce
Example Files in Explorer:
Example Playlist Command:
Example Error when trying to play a playlist outside of the 128 range:
Expected Result
I expect to be able to play any playlist regardless of the quantity of playlists in the playlist folder.
Debug Output