Folder artwork is never found — siblings() returns the parent's contents #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
BaseItemImageInfosis 0 against upstream's 107, with 325 image files ondisk.
read()computessiblings(entries, &path)(
crates/jellyfin-app/src/scan/run.rs:161, and:306), which returns the filessharing the item's parent directory. That is right for a file item and wrong
for a folder item: a folder's artwork lives inside it.
For the album
music/Sabaton/The Art of War,local_imagesis handed thecontents of
music/Sabaton/and never sees theFolder.jpgsitting in thealbum directory:
Found by scanning
/mnt/media(285 movies, 289 shows, 74 music artists —~13 000 media files on a CIFS mount) with both this server and upstream
Jellyfin at the pinned commit, remote metadata and image fetchers disabled on
upstream so both were reading files only. Upstream was given the same mount
path so
MD5(UTF-16LE(path))agrees and rows compare directly.Fixed in
0871342and06affe9.An item's artwork and its
.nfowere looked for among the files sharing itsdirectory — right for a file, wrong for a folder, whose own are inside it. The
two read the same directory wherever a film sits alone in a folder, which is why
nothing noticed.
Verified end to end against the real library: the ten pictures upstream reads
off disk are now the ten this reads, with nothing on either side of the diff
(was 0). Worth recording that the issue's "107" was wrong — 97 of upstream's 107
rows are downloaded into its own metadata folder and are out of scope, since
this server never downloads.
Reading a folder's own contents made several rules reachable that had never run,
and review found six wrong: a track has no local artwork at all, each name of a
kind with several is tried prefixed-then-bare before the next name, a landscape
outranks a thumb, a disc picture belongs only to an album or a film and the two
prefer different names,
artis a backdrop, and a person prefersfolder. Plusthree about documents: a shared
movie.nfodescribes no film, the fixed namebeats a film's own, and a track reads no document.
What upstream finds that this still does not — further backdrops,
extrafanart/,a season's artwork in the series folder, an episode's
metadata/directory — is#25.