imdb.Movie
This module provides the Movie class, used to store information about a given movie.
- class imdb.Movie.Movie(myID=None, data=None, notes='', currentRole='', roleID=None, roleIsPerson=False, accessSystem=None, titlesRefs=None, namesRefs=None, charactersRefs=None, modFunct=None, *args, **kwds)
A Movie.
Every information about a movie can be accessed as:
movieObject['information']
to get a list of the kind of information stored in a Movie object, use the keys() method; some useful aliases are defined (as “casting” for the “casting director” key); see the keys_alias dictionary.
- cmpFunct(m2)
Compare two movies by year, in reverse order; the imdbIndex is checked for movies with the same year of production and title.
- getID()
Return the movieID.
- guessLanguage()
Guess the language of the title of this movie; returns None if there are no hints.
- isSameMovie(other)
Return true if this and the compared object have the same long imdb title and/or movieID.
- isSameTitle(other)
Return true if this and the compared object have the same long imdb title and/or movieID.
- set_title(title)
Set the title of the movie.
- smartCanonicalTitle(title=None, lang=None)
Return the canonical title, guessing its language. The title can be forces with the ‘title’ argument (internally used) and the language can be forced with the ‘lang’ argument, otherwise it’s auto-detected.
- summary()
Return a string with a pretty-printed summary for the movie.