imdb ids are 7 or more now

This commit is contained in:
j 2019-08-02 13:11:01 +02:00
parent 198cc2282f
commit 6b12cf24af

View file

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