[x] the app response quicker when users import a folder of Audiomoth files via the import menu
📝 Summary
The problem was the app auto-set timestamp format of the site to be 'File Header' which required to read in every file header to get the metadata out, so I fixed this by:
Set the timestamp format to be 'Auto-detect' and let the app read the timestamp from filename instead. If the users want to use 'File Header' they can change the settings anytime in the prepare tab.
When insert site and files attached to that site, I also pass the device information that we got from the first audio file header with it. So we know those files are files from AudioMoth without reading the file headers of every file.
🛑 Problems
When the users select 'File Header' manually in the prepare tab, it is still very slow as the reading file header are in the main thread
✅ DoD
📝 Summary
The problem was the app auto-set timestamp format of the site to be 'File Header' which required to read in every file header to get the metadata out, so I fixed this by:
🛑 Problems