port function getFromUi in albumArt.py