woob.capabilities.cinema
¶
-
class
woob.capabilities.cinema.
CapCinema
¶ Bases:
woob.capabilities.base.Capability
Cinema databases.
-
get_movie_releases
(_id, country=None)¶ Get a list of a movie releases from an ID.
- Parameters
_id (str) – ID of movie
- Return type
String
-
get_person
(_id)¶ Get a person object from an ID.
- Parameters
_id (str) – ID of person
- Return type
-
get_person_biography
(id)¶ Get the person full biography.
- Parameters
_id (str) – ID of person
- Return type
str
-
iter_movie_persons
(_id, role=None)¶ Get the list of persons who are related to a movie.
- Parameters
_id (str) – ID of movie
- Return type
iter[
Person
]
-
iter_movie_persons_ids
(_id)¶ Get the list of person ids related to a movie.
- Parameters
_id (str) – ID of movie
- Return type
iter[str]
-
iter_movies
(pattern)¶ Search movies and iterate on results.
- Parameters
pattern (str) – pattern to search
- Return type
iter[
Movies
]
-
iter_person_movies
(_id, role=None)¶ Get the list of movies related to a person.
- Parameters
_id (str) – ID of person
- Return type
iter[
Movie
]
-
iter_person_movies_ids
(_id)¶ Get the list of movie ids related to a person.
- Parameters
_id (str) – ID of person
- Return type
iter[str]
-
iter_persons
(pattern)¶ Search persons and iterate on results.
- Parameters
pattern (str) – pattern to search
- Return type
iter[
persons
]
-
-
class
woob.capabilities.cinema.
Movie
(id, original_title, url=None)¶ Bases:
woob.capabilities.base.BaseObject
Movie object.
- Variables
original_title – (
str
) Original title of the movieother_titles – (
list
) Titles in other countriesrelease_date – (
date
,datetime
) Release date of the movieall_release_dates – (
str
) Release dates list of the movieduration – (
int
,int
) Duration of the movie in minutesshort_description – (
str
) Short description of the moviegenres – (
list
) Genres of the moviepitch – (
str
) Short story description of the moviecountry – (
str
) Origin country of the movienote – (
str
) Notation of the movieroles – (
dict
) Lists of Persons related to the movie indexed by rolesthumbnail_url – (
str
) Url of movie thumbnail
-
get_roles_by_person_id
(id)¶
-
get_roles_by_person_name
(name)¶
-
class
woob.capabilities.cinema.
Person
(id, name, url=None)¶ Bases:
woob.capabilities.base.BaseObject
Person object.
- Variables
name – (
str
) Star name of a personreal_name – (
str
) Real name of a personbirth_date – (
date
,datetime
) Birth date of a persondeath_date – (
date
,datetime
) Death date of a personbirth_place – (
str
) City and country of birth of a persongender – (
str
) Gender of a personnationality – (
str
) Nationality of a personshort_biography – (
str
) Short biography of a personbiography – (
str
) Full biography of a personshort_description – (
str
) Short description of a personroles – (
dict
) Lists of movies related to the person indexed by rolesthumbnail_url – (
str
) Url of person thumbnail
-
get_roles_by_movie_id
(id)¶
-
get_roles_by_movie_title
(title)¶