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

Date Retrieval Not Working #469

Open
reidralston0 opened this issue Jun 23, 2023 · 4 comments
Open

Date Retrieval Not Working #469

reidralston0 opened this issue Jun 23, 2023 · 4 comments

Comments

@reidralston0
Copy link

Issue description

Date retrieval for person not working. Returns "None" when there should be a date.

Version of Cinemagoer, Python and OS

  • Python: 3.7.4
  • Cinemagoer: 2023.05.01
  • OS: Windows 10.0.19041

Steps to reproduce the issue

#!/usr/bin/env python

person = ia.get_person('0000017')
d_date = person.get('death date')
print(d_date)

What's the expected result?

May 6, 1992

What's the actual result?

None

Additional details

@Cj1m
Copy link

Cj1m commented Sep 9, 2023

I am facing the same issue, in addition I am unable to access 'birth date' and 'death cause' too.

It seems this data is missing by default now:

person.keys();
//['headshot', 'imdbID', 'name', 'filmography', 'mini biography', 'canonical name', 'long imdb name', 'long imdb canonical name', 'full-size headshot']

It might be that we need to add to the info tuple parameter in get_person. By default this is set to ('main', 'filmography', 'biography')

@jugoprex
Copy link

Any tips on how to work around this? I have the same issue with 'birth date'.

@jfadams1963
Copy link

jfadams1963 commented Oct 16, 2023

Has anyone made progress on this?

I'm working on solving these and similar issues with empty/missing datasets, and will gladly share what I find.

OS: 22.04.1-Ubuntu
Python: 3.10.8
Cinemagoer: 2023.9.23

A recent example of what I'm seeing is trying to get quotes using 'The Matrix' as a test. The official website displays a long list of quotes, yet my attempt turns up an empty dataset:

In [7]: m
Out[7]: <Movie id:0133093[http] title:The Matrix (1999)>

In [8]: m.infoset2keys
Out[8]: {}

In [9]: db.update(m, info=['quotes', 'faqs', 'goofs', 'trivia'])

In [11]: m.current_info
Out[11]: ['quotes', 'faqs', 'goofs', 'trivia']

In [12]: m.get('quotes')
(crickets)

In [13]: m.infoset2keys
Out[13]: {'quotes': [], 'faqs': [], 'goofs': [], 'trivia': ['trivia']}

Look familiar? Any ideas? Reading through a number of other issues, I suspect it's caused by more changes at IMDb.

@jfadams1963
Copy link

Opening new issue related to above comment.

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

4 participants