[67] fix nominee key error

pull/1794/head
meisnate12 11 months ago
parent e1ae246f77
commit 5dbbb0b757

@ -1 +1 @@
1.19.1-develop66 1.19.1-develop67

@ -448,7 +448,7 @@ class IMDb:
for cat in categories: for cat in categories:
if data["category_filter"] and cat not in data["category_filter"]: if data["category_filter"] and cat not in data["category_filter"]:
continue continue
final_list.extend(categories["winner" if data["winning"] else "nominee"]) final_list.extend(categories[cat]["winner" if data["winning"] else "nominee"])
else: else:
event_slug = f"{data['event_year'][0]}/1" if "-" not in data["event_year"][0] else data["event_year"][0].replace("-", "/") event_slug = f"{data['event_year'][0]}/1" if "-" not in data["event_year"][0] else data["event_year"][0].replace("-", "/")
for text in self._request(f"{base_url}/event/{data['event_id']}/{event_slug}/?ref_=ev_eh", xpath="//div[@class='article']/script/text()")[0].split("\n"): for text in self._request(f"{base_url}/event/{data['event_id']}/{event_slug}/?ref_=ev_eh", xpath="//div[@class='article']/script/text()")[0].split("\n"):

Loading…
Cancel
Save