summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus2021-01-03 16:24:43 +0100
committerhorus2021-01-03 16:24:43 +0100
commita2cb34aa3707a5542e0b505e6ae963d9cc54d668 (patch)
tree8539036e4cfdcc7feefe431159bd93cb1f408afc
parent3f0c4e74b919ba658ac7c1a0a08594b75bc461d7 (diff)
downloadsenpai-a2cb34aa3707a5542e0b505e6ae963d9cc54d668.tar.gz
Add annoying malformed HTML.
-rw-r--r--app/Console/Kernel.php4
-rw-r--r--app/Libraries/Background.php3
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')