All anime images now pull from proxy or cache

This commit is contained in:
Timothy Warren 2017-04-13 11:26:28 -04:00
parent 2d9c5b3093
commit 1c06748232
4 changed files with 11 additions and 9 deletions

View File

@ -15,7 +15,7 @@
<?php if ($auth->isAuthenticated()): ?>
<button title="Increment episode count" class="plus_one" hidden>+1 Episode</button>
<?php endif ?>
<img src="<?= $item['anime']['image'] ?>" alt="" />
<img src="<?= $urlGenerator->assetUrl("images/anime/{$item['anime']['id']}.jpg") ?>" alt="" />
<div class="name">
<a href="<?= $url->generate('anime.details', ['id' => $item['anime']['slug']]); ?>">
<?= array_shift($item['anime']['titles']) ?>

View File

@ -13,7 +13,7 @@
</th>
<th>
<article class="media">
<?= $helper->img($item['anime']['image']); ?>
<?= $helper->img($urlGenerator->assetUrl('images/anime', "{$item['anime']['id']}.jpg")) ?>
</article>
</th>
</tr>

View File

@ -82,6 +82,7 @@ class AnimeListTransformer extends AbstractTransformer {
'ended' => $anime['endDate']
],
'anime' => [
'id' => $animeId,
'age_rating' => $anime['ageRating'],
'title' => $anime['canonicalTitle'],
'titles' => Kitsu::filterTitles($anime),

View File

@ -15,6 +15,7 @@
),
'anime' =>
array (
'id' => '12243',
'age_rating' => NULL,
'title' => 'Kobayashi-san Chi no Maid Dragon',
'titles' =>