[vlc-devel] [PATCH 3/6] medialib: fs: Return the full directory content
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Fri Aug 21 08:15:10 CEST 2020
Don't ignore hidden files (since we are interested in .nomedia files)
and let the media lib chose which files it will analyze
---
modules/misc/medialibrary/fs/directory.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/misc/medialibrary/fs/directory.cpp b/modules/misc/medialibrary/fs/directory.cpp
index 512b9489b9..50ef287217 100644
--- a/modules/misc/medialibrary/fs/directory.cpp
+++ b/modules/misc/medialibrary/fs/directory.cpp
@@ -186,6 +186,8 @@ SDDirectory::read() const
std::vector<InputItemPtr> children;
+ input_item_AddOption( media.get(), "show-hiddenfiles", VLC_INPUT_OPTION_TRUSTED );
+ input_item_AddOption( media.get(), "ignore-filetypes=''", VLC_INPUT_OPTION_TRUSTED );
auto status = request_metadata_sync( m_fs.libvlc(), media.get(), &children);
if ( status == false )
--
2.20.1
More information about the vlc-devel
mailing list