fix context

This commit is contained in:
jxxghp 2023-06-07 18:35:04 +08:00
parent 852a255eaf
commit a1d65b7c87

View File

@ -206,10 +206,10 @@ class MediaInfo(object):
return [], [] return [], []
directors = [] directors = []
actors = [] actors = []
for cast in self.__dict_media_casts(_credits.get("cast")): for cast in _credits.get("cast"):
if cast.get("known_for_department") == "Acting": if cast.get("known_for_department") == "Acting":
actors.append(cast) actors.append(cast)
for crew in self.__dict_media_crews(_credits.get("crew")): for crew in _credits.get("crew"):
if crew.get("job") == "Director": if crew.get("job") == "Director":
directors.append(crew) directors.append(crew)
return directors, actors return directors, actors