mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Store Person images in person cache and move client cache args to "dataSourceOptions" instead of queryOptions
This commit is contained in:
@@ -5,12 +5,17 @@
|
||||
|
||||
function stripPerson(person) {
|
||||
if (!person) return null;
|
||||
return {
|
||||
const out = {
|
||||
Name: person.Name,
|
||||
Id: person.Id,
|
||||
Role: person.Role,
|
||||
Type: person.Type
|
||||
};
|
||||
if (person.PrimaryImageTag) out.PrimaryImageTag = person.PrimaryImageTag;
|
||||
if (person.ImageBlurHashes?.Primary) {
|
||||
out.ImageBlurHashes = { Primary: person.ImageBlurHashes.Primary };
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
function stripChapter(chapter) {
|
||||
|
||||
Reference in New Issue
Block a user