mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
i dont know
This commit is contained in:
@@ -78,6 +78,28 @@ class ActorController extends Controller
|
||||
$stmt->execute(['actor_id' => $actorId]);
|
||||
$tvShows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
|
||||
|
||||
|
||||
foreach ($scenes as &$scene) {
|
||||
if (!empty($scene['metadata'])) {
|
||||
$metadata = json_decode($scene['metadata'], true);
|
||||
|
||||
// Use local cover path if available, otherwise fall back to original URL
|
||||
if (!empty($metadata['local_cover_path'])) {
|
||||
$scene['poster_url'] = $metadata['local_cover_path'];
|
||||
} elseif (!empty($metadata['cover_url'])) {
|
||||
$scene['poster_url'] = $metadata['cover_url'];
|
||||
}
|
||||
|
||||
// Add actors data if available
|
||||
if (!empty($metadata['actors'])) {
|
||||
$scene['actors'] = $metadata['actors'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $this->view->render($response, 'actor/show.twig', [
|
||||
'title' => $actor['name'],
|
||||
'actor' => $actor,
|
||||
@@ -86,7 +108,6 @@ class ActorController extends Controller
|
||||
'tv_shows' => $tvShows
|
||||
]);
|
||||
}
|
||||
|
||||
public function index(Request $request, Response $response, $args)
|
||||
{
|
||||
// Get all actors with their media counts from all types
|
||||
|
||||
Reference in New Issue
Block a user