fix movie scrape value type error
This commit is contained in:
parent
e9a0a2034a
commit
1dd110ba0f
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ def scrape_douban_movie(url):
|
|||
|
||||
single_episode_length_elem = content.xpath(
|
||||
"//div[@id='info']//span[text()='单集片长:']/following-sibling::text()[1]")
|
||||
single_episode_length = int(single_episode_length_elem[0].strip()) if single_episode_length_elem else None
|
||||
single_episode_length = single_episode_length_elem[0].strip() if single_episode_length_elem else None
|
||||
|
||||
# if has field `episodes` not none then must be series
|
||||
is_series = True if episodes else False
|
||||
|
|
Loading…
Add table
Reference in a new issue