sillsdev / webonary

Source code for Webonary and related applications that support it
https://www.webonary.org
MIT License
4 stars 3 forks source link

non-roman media filenames #683

Open peteroatley opened 4 months ago

peteroatley commented 4 months ago

When audio files use non-roman filenames they don't always play using the WordPress media player.

https://www.webonary.work/nanai/songs/ https://www.webonary.work/nanai/language/audiostories/?lang=en The above pages have this problem for both UI languages. The English and Russian tabs aren't exactly the same.

On the Russian Songs page you can click on any of the files and the first few play (it varies between 2-4) but won't play all 6.

https://www.webonary.org/nanai/songs/ is using roman filenames and all media files will play.

I couldn't find conclusive information about this but it seems like a WordPress bug. Can you confirm this?

phillip-hopper commented 4 months ago

This is happening because the editor is saving the file name as HTML entities, which are invalid in a URL.

https://www.webonary.work/nanai/files/Грехопадение-Ноябрист-05082015.wav

I will check if there is anything we can do about it.