Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person Filmography are always of kind "Movie" #500

Open
ErezHajaj opened this issue Jan 12, 2024 · 0 comments
Open

Person Filmography are always of kind "Movie" #500

ErezHajaj opened this issue Jan 12, 2024 · 0 comments

Comments

@ErezHajaj
Copy link

ErezHajaj commented Jan 12, 2024

Issue description

Attempting to find all the movies in a person's filmography.
When trying to sort out all of the tv episodes, I found I cannot trust the 'kind' key.

movies = person_info.get('filmography').get('actor)
 [print(m.get('kind')) for m in movies]

The kind is always "movie" even when it shouldn't be.
This does not happen when calling get_movie() directly, which means I have to make another api call for every movie to check if it is a movie.

Version of Cinemagoer, Python and OS

Python 3.7.9
Using Jupyter Notebook
Windows 10

Steps to reproduce the issue

movies = person_info.get('filmography').get('actor)
 [print(m.get('kind')) for m in movies]

What's the expected result?

  • if m is a tv show, it should print out "tv series"

What's the actual result?

  • m prints out "movie"

Additional details

@ErezHajaj ErezHajaj changed the title Person Filmography Movies are always of kind'Movie" Person Filmography Movies are always of kind "Movie" Jan 12, 2024
@ErezHajaj ErezHajaj changed the title Person Filmography Movies are always of kind "Movie" Person Filmography are always of kind "Movie" Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant