From a2cb34aa3707a5542e0b505e6ae963d9cc54d668 Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 3 Jan 2021 16:24:43 +0100 Subject: Add annoying malformed HTML. --- app/Console/Kernel.php | 4 +++- app/Libraries/Background.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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('', '', $update["synopsis"]); + } #echo "Updating " . $anime->title_pref . " (" . $anime->mal_id . ")\n"; DB::table('anime') -- cgit v1.2.3