Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions allocine/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ def _parse_showtimes(self, raw_showtimes: list[dict]):
movie = MovieVersion(
movie_id=raw_movie["internalId"],
title=raw_movie.get("title"),
img_url=jmespath.search("poster.url", raw_movie),
rating=rating,
language=language,
screen_format=" ".join(screen_formats) or "Numérique",
Expand Down
2 changes: 2 additions & 0 deletions allocine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
class Movie:
movie_id: int
title: str
img_url: Optional[str]
original_title: str
rating: Optional[float]
duration: Optional[timedelta]
Expand Down Expand Up @@ -91,6 +92,7 @@ def get_movie(self):
return Movie(
movie_id=self.movie_id,
title=self.title,
img_url=self.img_url,
rating=self.rating,
duration=self.duration,
original_title=self.original_title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"directors": "Éric Barbier",
"duration": "datetime.timedelta(seconds=6600)",
"genres": "Historique, Guerre",
"img_url": "https://fr.web.img6.acsta.net/img/a4/da/a4dac200a65518d1db35e7dba6ddd4e7.jpg",
"language": "Français",
"movie_id": 1000028944,
"original_title": "Justin le Juste",
Expand All @@ -31,6 +32,7 @@
"directors": "Éric Barbier",
"duration": "datetime.timedelta(seconds=6600)",
"genres": "Historique, Guerre",
"img_url": "https://fr.web.img6.acsta.net/img/a4/da/a4dac200a65518d1db35e7dba6ddd4e7.jpg",
"language": "Français",
"movie_id": 1000028944,
"original_title": "Justin le Juste",
Expand All @@ -52,6 +54,7 @@
"directors": "Éric Barbier",
"duration": "datetime.timedelta(seconds=6600)",
"genres": "Historique, Guerre",
"img_url": "https://fr.web.img6.acsta.net/img/a4/da/a4dac200a65518d1db35e7dba6ddd4e7.jpg",
"language": "Français",
"movie_id": 1000028944,
"original_title": "Justin le Juste",
Expand All @@ -72,6 +75,7 @@
"directors": "David Ayer",
"duration": "datetime.timedelta(seconds=6060)",
"genres": "Action, Aventure",
"img_url": "https://fr.web.img2.acsta.net/img/6f/af/6faf7d9aa879bd9374e773f31db44956.jpg",
"language": "Français",
"movie_id": 1000000085,
"original_title": "Heart Of The Beast",
Expand All @@ -92,6 +96,7 @@
"directors": "David Ayer",
"duration": "datetime.timedelta(seconds=6060)",
"genres": "Action, Aventure",
"img_url": "https://fr.web.img2.acsta.net/img/6f/af/6faf7d9aa879bd9374e773f31db44956.jpg",
"language": "Français",
"movie_id": 1000000085,
"original_title": "Heart Of The Beast",
Expand All @@ -112,6 +117,7 @@
"directors": "Joe Russo, Anthony Russo",
"duration": "datetime.timedelta(seconds=10860)",
"genres": "Action, Aventure, Science Fiction",
"img_url": "https://fr.web.img2.acsta.net/pictures/19/04/04/09/04/0472053.jpg",
"language": "Français",
"movie_id": 232669,
"original_title": "Avengers: Endgame",
Expand All @@ -132,6 +138,7 @@
"directors": "Joe Russo, Anthony Russo",
"duration": "datetime.timedelta(seconds=10860)",
"genres": "Action, Aventure, Science Fiction",
"img_url": "https://fr.web.img2.acsta.net/pictures/19/04/04/09/04/0472053.jpg",
"language": "Français",
"movie_id": 232669,
"original_title": "Avengers: Endgame",
Expand All @@ -152,6 +159,7 @@
"directors": "Mohamed Hamidi",
"duration": "datetime.timedelta(seconds=5520)",
"genres": "Comédie, Famille",
"img_url": "https://fr.web.img5.acsta.net/img/78/a7/78a70db88122966584f6dd674da06a6d.jpg",
"language": "Français",
"movie_id": 1000032856,
"original_title": "Tombé du ciel",
Expand All @@ -172,6 +180,7 @@
"directors": "Mohamed Hamidi",
"duration": "datetime.timedelta(seconds=5520)",
"genres": "Comédie, Famille",
"img_url": "https://fr.web.img5.acsta.net/img/78/a7/78a70db88122966584f6dd674da06a6d.jpg",
"language": "Français",
"movie_id": 1000032856,
"original_title": "Tombé du ciel",
Expand All @@ -193,6 +202,7 @@
"directors": "Antonin Baudry",
"duration": "datetime.timedelta(seconds=9600)",
"genres": "Thriller, Historique",
"img_url": "https://fr.web.img5.acsta.net/img/fe/af/feaf214ef84e96e437f8c65e7c540e86.jpg",
"language": "Français",
"movie_id": 294281,
"original_title": "La Bataille de Gaulle - Partie 2 : J’écris ton nom",
Expand All @@ -213,6 +223,7 @@
"directors": "Élie Chouraqui",
"duration": "datetime.timedelta(seconds=6300)",
"genres": "Drame, Historique",
"img_url": "https://fr.web.img4.acsta.net/img/5b/2e/5b2e76c638253f412a5deea5a9d849e7.jpg",
"language": "Français",
"movie_id": 323826,
"original_title": "Les Héros du Louvre",
Expand All @@ -233,6 +244,7 @@
"directors": "Christopher Nolan",
"duration": "datetime.timedelta(seconds=10380)",
"genres": "Action, Fantastique",
"img_url": "https://fr.web.img6.acsta.net/img/a7/70/a770a3822c90a655af05961cda53f3a1.jpg",
"language": "Version originale",
"movie_id": 1000013045,
"original_title": "The Odyssey",
Expand All @@ -253,6 +265,7 @@
"directors": "Christopher Nolan",
"duration": "datetime.timedelta(seconds=10380)",
"genres": "Action, Fantastique",
"img_url": "https://fr.web.img6.acsta.net/img/a7/70/a770a3822c90a655af05961cda53f3a1.jpg",
"language": "Français",
"movie_id": 1000013045,
"original_title": "The Odyssey",
Expand All @@ -273,6 +286,7 @@
"directors": "Destin Daniel Cretton",
"duration": "datetime.timedelta(seconds=8700)",
"genres": "Action, Aventure, Fantastique, Science Fiction",
"img_url": "https://fr.web.img5.acsta.net/img/cd/90/cd90255ae37ff659dab73bd1c422c9b5.jpg",
"language": "Français",
"movie_id": 276608,
"original_title": "Spider-Man: Brand New Day",
Expand All @@ -293,6 +307,7 @@
"directors": "Destin Daniel Cretton",
"duration": "datetime.timedelta(seconds=8700)",
"genres": "Action, Aventure, Fantastique, Science Fiction",
"img_url": "https://fr.web.img5.acsta.net/img/cd/90/cd90255ae37ff659dab73bd1c422c9b5.jpg",
"language": "Français",
"movie_id": 276608,
"original_title": "Spider-Man: Brand New Day",
Expand All @@ -314,6 +329,7 @@
"directors": "Zach Cregger",
"duration": "datetime.timedelta(seconds=5820)",
"genres": "Science Fiction, Epouvante-horreur, Thriller",
"img_url": "https://fr.web.img4.acsta.net/img/1d/65/1d653b3f832f0f7ca7016e650207798f.jpg",
"language": "Version originale",
"movie_id": 1000018854,
"original_title": "Resident Evil",
Expand All @@ -335,6 +351,7 @@
"directors": "Zach Cregger",
"duration": "datetime.timedelta(seconds=5820)",
"genres": "Science Fiction, Epouvante-horreur, Thriller",
"img_url": "https://fr.web.img4.acsta.net/img/1d/65/1d653b3f832f0f7ca7016e650207798f.jpg",
"language": "Français",
"movie_id": 1000018854,
"original_title": "Resident Evil",
Expand All @@ -356,6 +373,7 @@
"directors": "Antonin Baudry",
"duration": "datetime.timedelta(seconds=9600)",
"genres": "Thriller, Historique",
"img_url": "https://fr.web.img6.acsta.net/img/61/de/61dec3511b1ef0a65757a438ca898bbb.jpg",
"language": "Français",
"movie_id": 294280,
"original_title": "La Bataille de Gaulle - partie 1 : L'Âge de Fer",
Expand All @@ -376,6 +394,7 @@
"directors": "Padraic McKinley",
"duration": "datetime.timedelta(seconds=6780)",
"genres": "Thriller, Action, Aventure",
"img_url": "https://fr.web.img3.acsta.net/img/14/20/142026a9ee3fb83800e19232c9cc0998.jpg",
"language": "Version originale",
"movie_id": 1000019874,
"original_title": "The Weight",
Expand All @@ -396,6 +415,7 @@
"directors": "Padraic McKinley",
"duration": "datetime.timedelta(seconds=6780)",
"genres": "Thriller, Action, Aventure",
"img_url": "https://fr.web.img3.acsta.net/img/14/20/142026a9ee3fb83800e19232c9cc0998.jpg",
"language": "Français",
"movie_id": 1000019874,
"original_title": "The Weight",
Expand All @@ -416,6 +436,7 @@
"directors": "Susanne Bier",
"duration": "datetime.timedelta(seconds=7800)",
"genres": "Romance, Fantastique",
"img_url": "https://fr.web.img5.acsta.net/img/05/d0/05d0dcb033bc9dced645815301b59394.jpg",
"language": "Français",
"movie_id": 1000004679,
"original_title": "Practical Magic 2",
Expand All @@ -436,6 +457,7 @@
"directors": "Olivia Wilde",
"duration": "datetime.timedelta(seconds=6420)",
"genres": "Comédie",
"img_url": "https://fr.web.img2.acsta.net/img/31/b1/31b1faa3ca361d78ca82078f8accda1e.jpg",
"language": "Français",
"movie_id": 317219,
"original_title": "The Invite",
Expand Down
Loading
Loading