[nextgen/cardstack] migrate google, google images to cardstack

This commit is contained in:
bignutty 2025-02-22 17:13:10 +01:00
parent ba7c76ff04
commit 0433c3a785
6 changed files with 95 additions and 91 deletions

View file

@ -37,8 +37,8 @@ function renderAnimeResultsPage(context, res, includeSupplementalData = true){
if(res.subtype) result.description += pill(OMNI_ANIME_FORMAT_TYPES[res.subtype]) + " "
else result.description += pill(OMNI_ANIME_FORMAT_TYPES[res.type]) + " "
}
if(res.genres) result.description += res.genres.map((r)=>smallPill(r)).join(" ") + "\n";
if(res.tags) result.description += "-# " + res.tags.map((t)=>smallPill(t)).join(" ") + "\n\n";
if(res.genres?.length) result.description += res.genres.splice(0,3).map((r)=>smallPill(r)).join(" ") + "\n";
if(res.tags?.length) result.description += "-# " + res.tags.map((t)=>smallPill(t)).join(" ") + "\n\n";
if(res.description) result.description += stringwrapPreserveWords(res.description, 600);
if(res.attribution?.description) result.description += `\n\n-# Source • ${res.attribution.description}`