Skip to content

nightly-736df2d7-ls4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Nov 13:17
· 13 commits to nightly since this release

CI

Test report · Build status

LinuxServer changes

No changes

Upstream changes

Source: beetbox/beets@736df2d

fetchart: use 10000x10000-999 token for high-resolution iTunes artwork (#7104)

Description

Follow-up to #7045 (thanks to @Kernald for flagging the compression
difference).

In #7045, we replaced the legacy "100000x100000-999" token with
"3000x3000bb" because Apple's daiquiri/5 CDN began rejecting
"100000x100000-999" with HTTP 400 Bad Request.

Testing against mzstatic.com shows two things:

  1. Why "100000x100000-999" returned HTTP 400: Apple's CDN
    enforces an exact maximum dimension limit of 10000px
    (10000x10000-999 returns 200 OK; 10001x10001-999 returns 400 Bad Request).
  2. Why "3000x3000bb" returned smaller/re-compressed images:
  • Omitting the -999 quality modifier causes Apple's CDN to re-encode
    images at JPEG Quality 94 with 4:2:0 chroma subsampling
    (2x2,1x1,1x1), whereas -999 serves JPEG Quality 100 (all-1s
    quantization table) with 4:4:4 full chroma (1x1,1x1,1x1).
  • Capping dimensions at 3000x3000 downscales 4000x4000 masters
    (e.g., Daft Punk's Random Access Memories (10th Anniversary Edition)
    or Radiohead's OK Computer) to 3000x3000.

Comparison on mzstatic.com

For Daft Punk's Random Access Memories (10th Anniversary Edition)
(4000x4000 master):

  • 100000x100000-999.jpg -> HTTP 400 Bad Request
  • 3000x3000bb.jpg -> 3000x3000, 1,066,767 bytes (Quality 94,
    4:2:0 chroma)
  • 10000x10000-999.jpg -> 4000x4000, 7,619,736 bytes (Quality 100,
    4:4:4 chroma)

Solution

Use "10000x10000-999" when high_resolution is enabled, and update
the Unreleased changelog entry from #7045 in place.

To Do

  • Documentation.
  • Changelog. (Updated the Unreleased entry from #7045 in place).
  • Tests. (Updated test_itunesstore_artwork_url_resolution in
    test/plugins/test_art.py).