Can this function be organized better?

10 posts were split to a new topic: Changes to cope with separating HTML players and covers