How Album Art for a track is selected?

Depending on Album Art download settings (including Prefer Downloaded Art), for main UI/widgets/lock screen one of the following images will be selected:
- user selected album art (if exists)
- embed album art (bigger than 100x100, but less than 8mb for mid/high-end phones, and 2.5 mb for low-end phones)
- cached downloaded art (if exists)
- folders mode: [album name].jpg ([album name] replaced with the actual album name) (less than 1.5mb)
- folders mode: folder.jpg/cover.jpg/AlbumArt...Large.jpg (less than 1.5mb)
- folders mode: any standalone jpg (bigger than 4kb, less than 1.5mb)
- search & download initiated for image

For Folder List first 3 songs can checked (not sorted by anything -> so first 3 random files are checked):
- user selected album art for song in this folder
- if there is cached image from previous searches, it's used (.pamp)
- if there is folder.jpg/cover.jpg/AlbumArt...Large.jpg or any other jpg -> it's used
- embed art in first 3 files, if found, that will be used
- for album and artist, if found, cached downloaded art will be used or download initiated.

For Library Albums List:
- user selected album art for song in this album
- otherwise search & download started

Search & download won't be started if:
- there are no album+artist tags
- or title+artist tags (for singles)
- [new] or meaningful filename with enough valid characters in the song 

Feedback and Knowledge Base