From 20613887d6a7530ea4409b7991ccef6a62885a85 Mon Sep 17 00:00:00 2001 From: p0ps Date: Wed, 25 May 2022 13:36:12 +0200 Subject: [PATCH] Fix setting an imdb_id from None or ''. (#10669) --- medusa/indexers/imdb/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/medusa/indexers/imdb/api.py b/medusa/indexers/imdb/api.py index 5b56c71319..7bf7e57d20 100644 --- a/medusa/indexers/imdb/api.py +++ b/medusa/indexers/imdb/api.py @@ -64,6 +64,10 @@ def imdb_id(self): @imdb_id.setter def imdb_id(self, value): """Set imdb id.""" + if value is None or value == '': + self._imdb_id = self.series_id = None + return + if isinstance(value, string_types) and 'tt' in value: self._imdb_id = self._clean(value) self.series_id = int(self._imdb_id.split('tt')[-1])