Migrate artwork and media path APIs to `pathlib.Path`
Author: snejusCreated Sep 1, 2026Updated Sep 29, 2026
Labelscore
Part of: #1409
Depends on: #6807 and #6808.
Problem
Artwork and media-file helpers still carry byte-path assumptions through ArtResizer, fetchart, shared art helpers, and plugins that read, write, resize, embed, or derive artwork paths. This keeps path conversion mixed into artwork behavior and makes later runtime path migration harder to review.
Expected behavior
- Artwork helpers use
Pathfor filesystem paths. ArtResizer,fetchart, shared art utilities,embedart,thumbnails, and related convert/play call sites avoid caller-side path encoding.- Tests for artwork fetching, resizing, thumbnails, and media-file path handling use
Pathwherever possible. - Byte values remain only where an external API or persisted boundary explicitly requires bytes.
- Existing artwork behavior is preserved.
Suggested fix
Migrate the artwork/media path surface as the first #6809 child issue, before broader library/importer/model contract changes.
Acceptance criteria
- Artwork and media path APIs accept or return
Pathat runtime where practical. - Existing art, thumbnail, resize, convert, play, and file tests pass.
- Remaining byte conversions are tied to explicit external or storage boundaries.
poe testandpoe lintpass with coverage at or above 80%.
Source: beetbox/beets