rhadamanthe / host-grabber-pp

A web extension, originally designed for Firefox, to find and download media files from various hosts.
MIT License
16 stars 6 forks source link

Handle automatic updates of the dictionary #28

Closed rhadamanthe closed 5 years ago

rhadamanthe commented 6 years ago

When HG ++ starts, it should download the reference dictionary. If it is more recent than the stored one, and if it is compliant with the current HG version, then replace the locally stored dictionary.

rhadamanthe commented 5 years ago

Recent is not a good term. Sure, there is a version property in the online dictionary. But it is not always incremented.

Instead, we just need to check the spec and the preference for automatic updates. If the spec is not supported, keep on with the local dictionary. Same thing if updates are not automatic.