Ignoring/hiding unsupported files in playlist
Added by Matti Tiainen over 1 year ago
Is there a way to ignore/hide playlist entries for files that were rejected at InputPlugin::read_tag() stage?
For example, when adding some audio folder which also contains some text files, FFAudio plugin accepts the .txt files by extension, but then read_tag() will anyway fail.
The files still show up in playlist though and shows annoying "Error opening file:///foo/bar/readme.txt: The file could not be decoded. It may be invalid, corrupt, or in an unsupported format." popup when played.
Example:
INFO ../src/libaudcore/vfs.cc:105 [VFSFile]: <0x600004076e50> open (mode r) file:///Users/tundrah/modland/pub/modules/Zoundmonitor/readme.txt
INFO ../src/ffaudio/ffaudio-core.cc:276 [get_format_by_extension]: Matched format vplayer by extension.
Replies (5)
RE: Ignoring/hiding unsupported files in playlist - Added by John Lindgren over 1 year ago
No, ffaudio should be fixed not to accept those files at the is_our_file() stage instead.
RE: Ignoring/hiding unsupported files in playlist - Added by Matti Tiainen over 1 year ago
I believe in this case the "is_our_file" never gets called for FFAudio though, since it's matched by extension?
RE: Ignoring/hiding unsupported files in playlist - Added by Matti Tiainen over 1 year ago
Matti Tiainen wrote:
I believe in this case the "is_our_file" never gets called for FFAudio though, since it's matched by extension?
Sorry, I think I misread the code.
RE: Ignoring/hiding unsupported files in playlist - Added by Matti Tiainen over 1 year ago
However more generally, if my understanding is correct, when there is an extension registered by just single plugin, then is_our_file() will never get called, only read_tag() ?
In which case if the file is not actually what was expected (same extension shared by different file type), then it will always end up in playlist as "bad entry"?
RE: Ignoring/hiding unsupported files in playlist - Added by John Lindgren over 1 year ago
Yes, that's correct.