Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
When using Snip with iTunes, I noticed that it would sometimes fail to retrieve the Album Artwork on some tracks. However, pausing, and playing again, the album art would be retrieved properly.
I suspect this to be caused by some delays retrieving the Album artwork in iTunes itself.
This change introduces a retry mechanism (retry every 100ms for 5s) for the Album Artwork, in the hope that this will be enough for iTunes to retrieve the album artwork. I ran snip with this change for a bit and did not notice empty album art anymore, so I expect it to be enough.
Note 1: If a track is played directly from Apple Music (i.e. not from the iTunes library), the album art will never be retrieved at all. That seems to be a limitation of the iTunes COM API.
Note 2: For those wanting to run with this change and use the Store version of iTunes, Snip need to be modified to not run as Administrator. (It seems that elevated processes cannot access PackagedCOM, so the easiest solution is to not run elevated)