From 12480f5836ee45bbf07a2e5400be571d14c8d23a Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 13 Oct 2015 14:02:15 +0200 Subject: [PATCH] Pushing the change again. --- Changelog | 2 +- commit | 0 newznab/controllers/Movie.php | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 commit diff --git a/Changelog b/Changelog index 75bebefb2..e9c7393e1 100755 --- a/Changelog +++ b/Changelog @@ -1,5 +1,5 @@ 2015-10-13 DariusIII - Fix: improve speed by replacing str_ireplace with strpos. + Fix: improve speed by replacing str_ireplace with strpos.Pushing again. 2015-10-13 DariusIII ???: Have no idea what is wrong 2015-10-13 DariusIII diff --git a/commit b/commit old mode 100644 new mode 100755 diff --git a/newznab/controllers/Movie.php b/newznab/controllers/Movie.php index 1b827bb9d..d1a9c412f 100644 --- a/newznab/controllers/Movie.php +++ b/newznab/controllers/Movie.php @@ -463,7 +463,7 @@ class Movie ); return $data['trailer']; } - $imdbid = str_ireplace('tt', '', $data['ids']['imdb']); + $imdbid = (strpos($data['ids']['imdb'], 'tt') === 0) ? substr($data['ids']['imdb'], 2) : $data['ids']['imdb']; $cover = 0; if (is_file($this->imgSavePath . $imdbid) . '-cover.jpg') { $cover = 1;