Skip to content

fix(thumbnails): pick audio cover art deterministically - #3208

Draft
dschmidt wants to merge 3 commits into
feat/search-tika-facetsfrom
feat/thumbnails-deterministic-cover
Draft

fix(thumbnails): pick audio cover art deterministically#3208
dschmidt wants to merge 3 commits into
feat/search-tika-facetsfrom
feat/thumbnails-deterministic-cover

Conversation

@dschmidt

@dschmidt dschmidt commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Stacked on #3198.

The thumbnails AudioDecoder used dhowden/tag's single Picture(), which is non-deterministic when an audio file embeds multiple pictures (e.g. front + back cover). This switches to my fork (dschmidt/tag, adds Pictures() + a RawType byte) and selects deterministically: the tagged front cover (picture type 0x03) if present, otherwise the first available picture. Many taggers store the cover as type "Other" (0x00) rather than front, so the fallback is the common case.

Fork PR: dschmidt/tag#1 (merged to master).

dschmidt added 2 commits July 30, 2026 16:06
Switch to the dschmidt/tag fork and select the front cover (picture type
0x03) when tagged, else the first available picture, instead of the lib's
single non-deterministic Picture().
@codacy-production

codacy-production Bot commented Jul 30, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🟢 Coverage 100.00% diff coverage · +0.01% coverage variation

Metric Results
Coverage variation +0.01% coverage variation (-1.00%)
Diff coverage 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (c7c0551) 83018 19577 23.58%
Head commit (8ee6ad4) 83027 (+9) 19586 (+9) 23.59% (+0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3208) 10 10 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant