All anime images now pull from proxy or cache
This commit is contained in:
parent
2d9c5b3093
commit
1c06748232
@ -15,7 +15,7 @@
|
|||||||
<?php if ($auth->isAuthenticated()): ?>
|
<?php if ($auth->isAuthenticated()): ?>
|
||||||
<button title="Increment episode count" class="plus_one" hidden>+1 Episode</button>
|
<button title="Increment episode count" class="plus_one" hidden>+1 Episode</button>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<img src="<?= $item['anime']['image'] ?>" alt="" />
|
<img src="<?= $urlGenerator->assetUrl("images/anime/{$item['anime']['id']}.jpg") ?>" alt="" />
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<a href="<?= $url->generate('anime.details', ['id' => $item['anime']['slug']]); ?>">
|
<a href="<?= $url->generate('anime.details', ['id' => $item['anime']['slug']]); ?>">
|
||||||
<?= array_shift($item['anime']['titles']) ?>
|
<?= array_shift($item['anime']['titles']) ?>
|
||||||
@ -28,17 +28,17 @@
|
|||||||
<?php if ($auth->isAuthenticated()): ?>
|
<?php if ($auth->isAuthenticated()): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span class="edit">
|
<span class="edit">
|
||||||
<a class="bracketed" title="Edit information about this anime" href="<?=
|
<a class="bracketed" title="Edit information about this anime" href="<?=
|
||||||
$url->generate('edit', [
|
$url->generate('edit', [
|
||||||
'controller' => 'anime',
|
'controller' => 'anime',
|
||||||
'id' => $item['id'],
|
'id' => $item['id'],
|
||||||
'status' => $item['watching_status']
|
'status' => $item['watching_status']
|
||||||
]);
|
]);
|
||||||
?>">Edit</a>
|
?>">Edit</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($item['private'] || $item['rewatching']): ?>
|
<?php if ($item['private'] || $item['rewatching']): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php foreach(['private', 'rewatching'] as $attr): ?>
|
<?php foreach(['private', 'rewatching'] as $attr): ?>
|
||||||
@ -48,13 +48,13 @@
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($item['rewatched'] > 0): ?>
|
<?php if ($item['rewatched'] > 0): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div>Rewatched <?= $item['rewatched'] ?> time(s)</div>
|
<div>Rewatched <?= $item['rewatched'] ?> time(s)</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (count($item['anime']['streaming_links']) > 0): ?>
|
<?php if (count($item['anime']['streaming_links']) > 0): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php foreach($item['anime']['streaming_links'] as $link): ?>
|
<?php foreach($item['anime']['streaming_links'] as $link): ?>
|
||||||
@ -70,7 +70,7 @@
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="user_rating">Rating: <?= $item['user_rating'] ?> / 10</div>
|
<div class="user_rating">Rating: <?= $item['user_rating'] ?> / 10</div>
|
||||||
<div class="completion">Episodes:
|
<div class="completion">Episodes:
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<article class="media">
|
<article class="media">
|
||||||
<?= $helper->img($item['anime']['image']); ?>
|
<?= $helper->img($urlGenerator->assetUrl('images/anime', "{$item['anime']['id']}.jpg")) ?>
|
||||||
</article>
|
</article>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -82,6 +82,7 @@ class AnimeListTransformer extends AbstractTransformer {
|
|||||||
'ended' => $anime['endDate']
|
'ended' => $anime['endDate']
|
||||||
],
|
],
|
||||||
'anime' => [
|
'anime' => [
|
||||||
|
'id' => $animeId,
|
||||||
'age_rating' => $anime['ageRating'],
|
'age_rating' => $anime['ageRating'],
|
||||||
'title' => $anime['canonicalTitle'],
|
'title' => $anime['canonicalTitle'],
|
||||||
'titles' => Kitsu::filterTitles($anime),
|
'titles' => Kitsu::filterTitles($anime),
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
),
|
),
|
||||||
'anime' =>
|
'anime' =>
|
||||||
array (
|
array (
|
||||||
|
'id' => '12243',
|
||||||
'age_rating' => NULL,
|
'age_rating' => NULL,
|
||||||
'title' => 'Kobayashi-san Chi no Maid Dragon',
|
'title' => 'Kobayashi-san Chi no Maid Dragon',
|
||||||
'titles' =>
|
'titles' =>
|
||||||
|
Loading…
Reference in New Issue
Block a user