How to feed automatically ONLY the year field from tag sources (freed, discos...)

Here is a thread that says something about discogs:

but as the script is not maintained any more...
The scripts are all plain text, so you can edit them to remove any data you don't like