Move PopulateAniList to services

This commit is contained in:
DariusIII
2025-12-23 12:56:08 +01:00
parent 0ec27f855e
commit d8f591fcbc
5 changed files with 64 additions and 64 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ class DetailsController extends BasePageController
if ($anilistId && (empty($AniDBAPIArray->country) && empty($AniDBAPIArray->media_type))) {
// Fetch fresh data from AniList if country/media_type is missing
try {
$palist = new \Blacklight\PopulateAniList;
$palist = new \App\Services\PopulateAniListService;
$palist->populateTable('info', $anilistId);
// Refresh the data
$AniDBAPIArray = (new AnidbService)->getAnimeInfo($data['anidbid']);