diff options
| -rw-r--r-- | app/Console/Kernel.php | 4 | ||||
| -rw-r--r-- | app/Libraries/Background.php | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 35eb4e4..5a533fc 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -100,10 +100,12 @@ class Kernel extends ConsoleKernel $schedule->call( function(){ $background = new Background(); #$background->checkIfIsAiring(); - $background->checkImage(); + #$background->checkImage(); #$background->saveTopAnimeByPopularity(); #$anime = Anime::where('mal_id', 40591)->get()->first(); #$background->saveAiring( $anime ); + #echo"saveEnhancementForAll()\n"; + #$background->saveEnhancementForAll(); })->everyMinute()->name('c4')->withoutOverlapping(); #})->dailyAt('3:00')->name('saveTopAnimeByPopularity')->withoutOverlapping(); #})->everyMinute()->name('saveTopAnimeByPopularity2')->withoutOverlapping(); diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php index e89e00c..5ec6ef6 100644 --- a/app/Libraries/Background.php +++ b/app/Libraries/Background.php @@ -231,6 +231,9 @@ class Background { if ( ! is_null( $enhancement->duration ) ) { $update["duration"] = $enhancement->duration; } + if ( isset( $update["synopsis"] ) ) { + $update["synopsis"] = str_replace('<i/>', '</i>', $update["synopsis"]); + } #echo "Updating " . $anime->title_pref . " (" . $anime->mal_id . ")\n"; DB::table('anime') |
