From 1b08ec8c67330262d2db844d6f782f97910fd4f4 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Mon, 7 Oct 2024 04:00:06 +0200 Subject: [PATCH] if add and update cast that has no character name --- sickgear/tv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickgear/tv.py b/sickgear/tv.py index c5064a04..4dda2e7c 100644 --- a/sickgear/tv.py +++ b/sickgear/tv.py @@ -2787,9 +2787,9 @@ class TVShow(TVShowBase): """ cast_list = self.cast_list existing_cast = set(hash(*([', '.join(p.name for p in c.person or [] if p.name)])) - for c in cast_list or [] if c.name) + for c in cast_list or []) new_cast = set(hash(*([', '.join(p.name for p in c.person or [] if p.name)])) - for c_t, c_l in iteritems(show_info_cast or {}) for c in c_l or [] if c.name + for c_t, c_l in iteritems(show_info_cast or {}) for c in c_l or [] and c_t in (RoleTypes.ActorMain, RoleTypes.Host, RoleTypes.Interviewer, RoleTypes.Presenter)) now = datetime.date.today().toordinal() max_age = random.randint(30, 60)