Some files from folder are not included in the playlist
Steps to reproduce
- Launch VLC and select the ‘’Media’’ -> ‘’Open folder’’ command
- Select the folder of interest and press the ‘’Open’’ button
Expected result: All media files in the folder are added to the playlist
Actual result: Some media files from the folder are missing
Details
The same behavior is observed when starting playback from Explorer via the ‘’Play with VLC media player’’ context menu command.
Example: my folder has 3 files in it:
01 - Four Seasons - Concerto No 1 in E major, Spring, I Allegro.mp3
02 - Four Seasons - Concerto No 1 in E major, Spring, II Largo e pianissimo sempre.mp3
03 - Four Seasons - Concerto No 1 in E major, Spring, III Danza pastorale - Allegro.mp3
But only the first file is being added to playlist. I investigated the problem a bit and discovered that the problem is path name related but is NOT a very long file name problem, described e.g. here: [https://trac.videolan.org/vlc/ticket/24246 Bug #24246 Cannot open files on very long paths]. In my case, the longest path is
d:\Музыка - Рома\Классика на все времена (16 сборников)\Классика на все времена - Сборник 17 - Вивальди\03 - Four Seasons - Concerto No 1 in E major, Spring, III Danza pastorale - Allegro.mp3
which is 191 characters long. I found that the problem is related to both full path length and the language. My original folder name with which the bug occurs is this:
d:\Музыка - Рома\Классика на все времена (16 сборников)\Классика на все времена - Сборник 17 - Вивальди\
It contains russian letters. If I make the path of the same length, but with only english letters, e.g. this:
d:\Musyka - Roma\Klassika na vse vremena (16 sbornikov)\Klassika na vse vremena - Sbornik 17 – Vivaldi\
Then the bug is not reproduced.
Also, if I leave russian characters, but make the path shorter, e.g.:
d:\Музыка - Рома\Классика на все времена (16 сборников)\Сборник 17 - Вивальди\
Then the bug is not reproduced too. The platform is Windows 10 version 1903. See log files attached.