From 52a4fab49d879d22ac6996d42def39d9b646be3b Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sat, 3 Feb 2018 15:13:12 +0100 Subject: [PATCH] Fixed: Empty imdb list selecting all movies without an imdbid Fixes https://github.com/Radarr/Radarr/issues/2428 --- app/Helpers/Helper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index a6d40ed..b945a41 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -23,6 +23,11 @@ public static function get_from_imdb_py($path, $selection, $rememberMinutes = 60 $fullIds = array(); + if (count($fullIds) == 0) + { + return []; + } + foreach ($ids as $id) { $fullIds[] = rtrim(str_ireplace("/title/", "", $id), "/");