Media files with square brackets are removed when opening .pls / .m3u playlist file
Description
Expected behavior
All media files in the .pls
/ .m3u
playlist file should be loaded, as is on VLC Windows.
Actual behavior
Media files with square brackets []
are removed from playlist when opening the .pls
/ .m3u
playlist file.
Steps to reproduce
-
VLC Android is able to play
[.mp3
directly. -
Write a simple
.pls
playlist file. For example,
[playlist]
File1=/sdcard/[.mp3
Title1=test square bracket
Length1=180000
NumberOfEntries=1
Version=2
-
Open VLC Android. Browse the folder containing the
.pls
file.
There should be a number1
under the filename.
However, VLC Android would showEmpty
. -
Click on the playlist. There would be no respond because VLC thinks it's empty, unopenable.
-
Open playlist on VLC Windows. Music is played successfully.
-
This time, try
a.mp3
,
[playlist]
File1=/sdcard/a.mp3
Title1=test square bracket
Length1=180000
NumberOfEntries=1
Version=2
- VLC Android would play this playlist successfully.
Screenshot / video
(空的
means empty
)
Context
App version
VLC 3.3.4
Android version
Android 9
Device model
Redmi Note 5 (whyred)
App mode
Smartphone
More info: log
I did try to read the log to find out why this happens, but I didn't find anything useful.
Related logcat is pasted below:
07-09 09:51:11.713 D/VLC/medialibrary(12941): [T#497174418672] ../src/MediaLibrary.cpp:639 media Fetching media from mrl: file:///storage/emulated/0/test.wav
07-09 09:51:11.713 D/VLC/medialibrary(12941): [T#497174418672] ../src/Device.cpp:317 fromMountpoint Trying to match file:///storage/emulated/0/ with a cached mountpoint
07-09 09:51:11.713 D/VLC/medialibrary(12941): [T#497174418672] ../src/Device.cpp:344 fromMountpoint No match
07-09 09:51:11.713 W/VLC/medialibrary(12941): [T#497174418672] ../src/File.cpp:421 fromMrl Failed to find folder containing file:///storage/emulated/0/test.wav
07-09 09:51:12.114 D/VLC/medialibrary(12941): [T#497174418672] ../src/MediaLibrary.cpp:639 media Fetching media from mrl: file:///storage/emulated/0/%5B.mp3
07-09 09:51:12.115 D/VLC/medialibrary(12941): [T#497174418672] ../src/Device.cpp:317 fromMountpoint Trying to match file:///storage/emulated/0/ with a cached mountpoint
07-09 09:51:12.115 D/VLC/medialibrary(12941): [T#497174418672] ../src/Device.cpp:344 fromMountpoint No match
07-09 09:51:12.115 W/VLC/medialibrary(12941): [T#497174418672] ../src/File.cpp:421 fromMrl Failed to find folder containing file:///storage/emulated/0/%5B.mp3
07-09 09:51:12.230 W/Choreographer(12941): OPTS_INPUT: First frame was drawed before optimized, so skip!
07-09 09:51:12.512 D/VLC/medialibrary(12941): [T#497174418672] ../src/MediaLibrary.cpp:639 media Fetching media from mrl: file:///storage/emulated/0/test.wav
07-09 09:51:12.515 D/VLC/medialibrary(12941): [T#497174418672] ../src/Device.cpp:317 fromMountpoint Trying to match file:///storage/emulated/0/ with a cached mountpoint
07-09 09:51:12.515 D/VLC/medialibrary(12941): [T#497174418672] ../src/Device.cpp:344 fromMountpoint No match
07-09 09:51:12.515 W/VLC/medialibrary(12941): [T#497174418672] ../src/File.cpp:421 fromMrl Failed to find folder containing file:///storage/emulated/0/test.wav
07-09 09:51:14.326 W/VLC (12941): [00000073be138090/3391] libvlc stream: no file= part found for item 1
07-09 09:51:14.333 D/VLC/medialibrary(12941): [T#497064867056] ../src/MediaLibrary.cpp:639 media Fetching media from mrl: file:///storage/emulated/0/test.pls
07-09 09:51:14.353 D/VLC/medialibrary(12941): [T#497064867056] ../src/Device.cpp:317 fromMountpoint Trying to match file:///storage/emulated/0/ with a cached mountpoint
07-09 09:51:14.354 D/VLC/medialibrary(12941): [T#497064867056] ../src/Device.cpp:344 fromMountpoint No match
07-09 09:51:14.354 W/VLC/medialibrary(12941): [T#497064867056] ../src/File.cpp:421 fromMrl Failed to find folder containing file:///storage/emulated/0/test.pls
07-09 09:51:14.419 D/VLC/medialibrary(12941): [T#497064867056] ../src/MediaLibrary.cpp:639 media Fetching media from mrl: file:///storage/emulated/0/test.pls
07-09 09:51:14.420 D/VLC/medialibrary(12941): [T#497064867056] ../src/Device.cpp:317 fromMountpoint Trying to match file:///storage/emulated/0/ with a cached mountpoint
07-09 09:51:14.420 D/VLC/medialibrary(12941): [T#497064867056] ../src/Device.cpp:344 fromMountpoint No match
07-09 09:51:14.420 W/VLC/medialibrary(12941): [T#497064867056] ../src/File.cpp:421 fromMrl Failed to find folder containing file:///storage/emulated/0/test.pls