From 6b12cf24af8b81d5187503bd46248f458ae86fdf Mon Sep 17 00:00:00 2001 From: j Date: Fri, 2 Aug 2019 13:11:01 +0200 Subject: [PATCH] imdb ids are 7 or more now --- oxdata/movie/imdbids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxdata/movie/imdbids.py b/oxdata/movie/imdbids.py index 04a27db..d4f2955 100644 --- a/oxdata/movie/imdbids.py +++ b/oxdata/movie/imdbids.py @@ -186,7 +186,7 @@ def update_ids(year, month=None, day=None, sort=None): else: title = '' a = a[0] - id = re.compile('title/tt(\d{7})').findall(a.attrib['href'])[0] + id = re.compile('title/tt(\d+)').findall(a.attrib['href'])[0] title += a.text_content().strip() try: y = header.find_class('lister-item-year')[0].text_content()