imdb ids are 7 or more now
This commit is contained in:
parent
198cc2282f
commit
6b12cf24af
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue