I couldn't recreate there being multiple metadata files, but I know I have experienced having multiple before and it causing the sync status to show the older metadata last modified.
This PR should fix it. I split up parseRemoteStates() so that getting the metadata file can be consistent through the whole plugin. I also added a check for multiple metadata files and deletes them leaving the newest.
Should fix #134 and #131.
I couldn't recreate there being multiple metadata files, but I know I have experienced having multiple before and it causing the sync status to show the older metadata last modified.
This PR should fix it. I split up
parseRemoteStates()
so that getting the metadata file can be consistent through the whole plugin. I also added a check for multiple metadata files and deletes them leaving the newest.