dgilland / omdb.py

Python wrapper around OMDb API (Open Movie Database): http://omdbapi.com
http://omdbpy.readthedocs.org
Other
98 stars 23 forks source link

Documentation incorrect for imdb_id omdb.py field #8

Closed 0x-cygnet closed 8 years ago

0x-cygnet commented 8 years ago

Per official documentation found: https://media.readthedocs.org/pdf/omdbpy/latest/omdbpy.pdf imdb_id field is incorrect in "Search Item" and "Get Item" documentation on GitHub. After some troubleshooting I found that omdb.get(imdbid='tt0043456') does work.

dgilland commented 8 years ago

The specification of imdb_id in the Search Item and Get Item sections is referring to the output data's field name. Whereas the input parameter to the API methods is imdbid. Admittedly, this is not as clear as it could be in the docs.

Also it makes sense to have the input parameter match the output field if possible. So I could make the following changes:

Thoughts?

0x-cygnet commented 8 years ago

After looking over the repository docs a little more I think it just needs to be a little clearer. I was confused by the Get Item Fields section since I have been using the wrapper as such:

ttid being the imdb unique tt identifier

omdbSearch = omdb.get(imdb=ttId) ombdYear = omdb.Search.year etc