woob.capabilities.cinema

class Movie(id, original_title, url=None)[source]

Bases: BaseObject

Movie object.

Variables:
  • url – (str) url

  • original_title – (str) Original title of the movie

  • other_titles – (list) Titles in other countries

  • release_date – (date, datetime) Release date of the movie

  • all_release_dates – (str) Release dates list of the movie

  • duration – (int) Duration of the movie in minutes

  • short_description – (str) Short description of the movie

  • genres – (list) Genres of the movie

  • pitch – (str) Short story description of the movie

  • country – (str) Origin country of the movie

  • note – (str) Notation of the movie

  • roles – (dict) Lists of Persons related to the movie indexed by roles

  • thumbnail_url – (str) Url of movie thumbnail

get_roles_by_person_name(name)[source]
get_roles_by_person_id(id)[source]
class Person(id, name, url=None)[source]

Bases: BaseObject

Person object.

Variables:
  • url – (str) url

  • name – (str) Star name of a person

  • real_name – (str) Real name of a person

  • birth_date – (date, datetime) Birth date of a person

  • death_date – (date, datetime) Death date of a person

  • birth_place – (str) City and country of birth of a person

  • gender – (str) Gender of a person

  • nationality – (str) Nationality of a person

  • short_biography – (str) Short biography of a person

  • biography – (str) Full biography of a person

  • short_description – (str) Short description of a person

  • roles – (dict) Lists of movies related to the person indexed by roles

  • thumbnail_url – (str) Url of person thumbnail

get_roles_by_movie_title(title)[source]
get_roles_by_movie_id(id)[source]
class CapCinema[source]

Bases: Capability

Cinema databases.

iter_movies(pattern)[source]

Search movies and iterate on results.

Parameters:

pattern (str) – pattern to search

Return type:

iter[Movies]

get_movie(_id)[source]

Get a movie object from an ID.

Parameters:

_id (str) – ID of movie

Return type:

Movie

get_movie_releases(_id, country=None)[source]

Get a list of a movie releases from an ID.

Parameters:

_id (str) – ID of movie

Return type:

String

iter_movie_persons(_id, role=None)[source]

Get the list of persons who are related to a movie.

Parameters:

_id (str) – ID of movie

Return type:

iter[Person]

iter_persons(pattern)[source]

Search persons and iterate on results.

Parameters:

pattern (str) – pattern to search

Return type:

iter[persons]

get_person(_id)[source]

Get a person object from an ID.

Parameters:

_id (str) – ID of person

Return type:

Person

iter_person_movies(_id, role=None)[source]

Get the list of movies related to a person.

Parameters:

_id (str) – ID of person

Return type:

iter[Movie]

iter_person_movies_ids(_id)[source]

Get the list of movie ids related to a person.

Parameters:

_id (str) – ID of person

Return type:

iter[str]

iter_movie_persons_ids(_id)[source]

Get the list of person ids related to a movie.

Parameters:

_id (str) – ID of movie

Return type:

iter[str]

get_person_biography(id)[source]

Get the person full biography.

Parameters:

_id (str) – ID of person

Return type:

str