From 6b005fb6a93a39963fcc1f42202929c8abf126b6 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Sat, 7 Apr 2018 18:06:05 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B0=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=B8=D0=B3=D1=80=20INSTEAD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Instead.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Instead.php b/Source/Instead.php index 476082f..68be0dc 100644 --- a/Source/Instead.php +++ b/Source/Instead.php @@ -40,10 +40,10 @@ class Instead extends Source { unset($text); $game = new Game; $game->url = $url; + $game->platform = 'INSTEAD'; $text = trim($this->dom->filter('#panel')->text()); preg_match('/Дата: ([0-9]{4}\.[01][0-9]\.[0-3][0-9])Размер/', $text, $matches); - $date = \DateTime::createFromFormat('Y.m.d', $matches[1]); - $date = $date->format('U'); + $game->date = \DateTime::createFromFormat('Y.m.d', $matches[1]); preg_match('/Автор: (.+)Дата/', $text, $matches); $game->author = trim($matches[1]); $game->title = trim($this->dom->filter('h2')->first()->text());