[ARDIE] fix formats extraction (fixes #3087)
[ARDIE] adjustments suggested by @jaimeMF
Merge pull request #3089 from pulpe/ard_fix

[ARDIE] fix formats extraction (fixes #3087)