From 356787b37fa7be53f259f03461b1f39324b0353d Mon Sep 17 00:00:00 2001 From: j Date: Thu, 4 Apr 2019 11:07:31 +0200 Subject: [PATCH] ignore additional alternative titles with the same key --- ox/web/imdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 16c3b94..20c4589 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -357,6 +357,8 @@ class Imdb(SiteParser): def cleanup_title(title): + if isinstance(title, list): + title = title[0] if title.startswith('"') and title.endswith('"'): title = title[1:-1] if title.startswith("'") and title.endswith("'"):