add IMDb vote count to movies
This commit is contained in:
parent
af25d9c5a2
commit
8d20cc040e
6 changed files with 51 additions and 11 deletions
|
|
@ -136,7 +136,7 @@ def movie_and_rating_from_item(item) -> tuple[Movie, Rating]:
|
|||
rating.score = score_from_imdb_rating(float(rating_item.string))
|
||||
if match := ratings_item.find("div", "ipl-rating-star small"):
|
||||
if rating_item := match.find("span", "ipl-rating-star__rating"):
|
||||
movie.score = score_from_imdb_rating(float(rating_item.string))
|
||||
movie.imdb_score = score_from_imdb_rating(float(rating_item.string))
|
||||
|
||||
return movie, rating
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue