Merge branch 'feature/FixNoCharacterName' into dev
Some checks failed
Python Unit Tests / windows (windows-latest, 3.10) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.11) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.12) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.8) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.9) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.8) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.9) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.10) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.11) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.12) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.8) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.9) (push) Has been cancelled

This commit is contained in:
JackDandy 2024-10-07 11:24:41 +01:00
commit 891b0d2d0f

View file

@ -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)