I got the following error using SimpleExoPlayer
androidx.media3.datasource.FileDataSource$FileDataSourceException: uri has query and/or fragment, which are not supported
The FileName in question has a # in it.
/storage/3864-6563/Music/Destiny's Child/#1's/03 - Survivor.mp3
Now this one is pretty simple for me to fix (either rename the file to remove the # or replaced the # with %23) but I am sure I have a lot more mp3 files with problems like this.
DOES Anyone have a URI Safe parser. Take a string and replace all the bad things with %xx
Seems like this could be done with Regex
Have this Regex string to tell me if there is something that needs to be replaced
[core]([^\x00-\x7F]|[&$\+,:;=\?@#\s<>\[\]\{\}|\\\^%])+[/code}
But have no idea on how to write a Regex string to replace the URI problem characters with valid ones.
androidx.media3.datasource.FileDataSource$FileDataSourceException: uri has query and/or fragment, which are not supported
The FileName in question has a # in it.
/storage/3864-6563/Music/Destiny's Child/#1's/03 - Survivor.mp3
Now this one is pretty simple for me to fix (either rename the file to remove the # or replaced the # with %23) but I am sure I have a lot more mp3 files with problems like this.
DOES Anyone have a URI Safe parser. Take a string and replace all the bad things with %xx
Seems like this could be done with Regex
Have this Regex string to tell me if there is something that needs to be replaced
[core]([^\x00-\x7F]|[&$\+,:;=\?@#\s<>\[\]\{\}|\\\^%])+[/code}
But have no idea on how to write a Regex string to replace the URI problem characters with valid ones.