From 28cd97ed0e18da82bdc910a804a3b67f1e8963ba Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 10 Mar 2016 15:25:06 +0100 Subject: [PATCH] Fix object to string conversion in processing/tv/TVDB.php --- Changelog | 1 + composer.json | 2 +- composer.lock | 4 ++-- newznab/processing/tv/TVDB.php | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Changelog b/Changelog index acad4ed39..ef58c29dc 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2016-03-10 DariusIII + * Fix: Fix object to string conversion in processing/tv/TVDB.php * Upd: Update composer.json of the project. * Chg: Move smarty template and cache files to resources folder 2016-03-09 DariusIII diff --git a/composer.json b/composer.json index af0dc8bcb..d007ae21a 100755 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "giantbomb/giantbomb": "@dev", "google/recaptcha": "~1.1", "james-heinrich/getid3": "1.9.*", - "joshpinkney/tv-maze-php-api": "@dev", + "joshpinkney/tv-maze-php-api": "dev-master", "kbjr/Git.php": "@dev", "moinax/tvdb": "~1.0", "phpmailer/phpmailer": "~5.2", diff --git a/composer.lock b/composer.lock index d61b6d114..84d2b9939 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "7ef5f6a8054597849ac6a9de973226f8", - "content-hash": "5010febeee39df8e4e330d1ff4315651", + "hash": "2b602e7d5bb44f9e55ee675cb940ca9c", + "content-hash": "7c06c9b0053f5f9790d7d1d99edaeef8", "packages": [ { "name": "barracudanetworks/forkdaemon-php", diff --git a/newznab/processing/tv/TVDB.php b/newznab/processing/tv/TVDB.php index 558776f4b..808b016b9 100644 --- a/newznab/processing/tv/TVDB.php +++ b/newznab/processing/tv/TVDB.php @@ -419,7 +419,7 @@ class TVDB extends TV 'type' => (int)parent::TYPE_TV, 'title' => (string)$show->name, 'summary' => (string)$show->overview, - 'started' => (string)$show->firstAired, + 'started' => $show->firstAired->format('Y-m-d'), 'publisher' => (string)$show->network, 'source' => (int)parent::SOURCE_TVDB, 'imdb' => (int)(isset($imdb['imdbid']) ? $imdb['imdbid'] : 0), @@ -448,7 +448,7 @@ class TVDB extends TV 'series' => (int)$episode->season, 'episode' => (int)$episode->number, 'se_complete' => (string)'S' . sprintf('%02d', $episode->season) . 'E' . sprintf('%02d', $episode->number), - 'firstaired' => (string)$episode->firstAired, + 'firstaired' => $episode->firstAired->format('Y-m-d'), 'summary' => (string)$episode->overview ]; }