Closed ton-An closed 3 years ago
Hi there @ton-An !
Are you retrieving metadata asynchronously (I mean two or more files at the same time)?
I'm using this plugin in my app, here & it works well. I'm asking for the metadata one at a time.
Although, I accept my fault, that it should be fixed.
Thanks for the report!
Ahh, that solved it.
I was scanning the storage with the stream from directory.list
and then immedeatly requesting meta data for the files. Making that operation synchronous worked
Any updates about this or a workaround
This was actually a design problem, refactored code & changed API a bit. Fixed, calls are now multithread friendly.
When requesting meta data for a list of files the meta data gets mixed up. The MetaDataRetriever quite often returns the same meta data twice or thrice or scrambles together a completly new set of meta data.
A quick but dirty fix is delaying each meta data request by a 100ms.