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

Pulling episodes from series results in KeyError #496

Open
periodicta opened this issue Dec 21, 2023 · 2 comments
Open

Pulling episodes from series results in KeyError #496

periodicta opened this issue Dec 21, 2023 · 2 comments

Comments

@periodicta
Copy link

Issue description

Trying to get lists of episodes by season from Cinemagoer, something that worked approximately a year ago through IMDbpy, but I've been getting weird errors.

Version of Cinemagoer, Python and OS

MacOS: 14.0
Python version:
3.12.0
Cinemagoer version:
2023.10.22

Steps to reproduce the issue

from imdb import Cinemagoer

ia = Cinemagoer()

show = ia.search_movie('friends')[0]

ia.update(show, 'episodes')

print(show['episodes'])

What's the expected result?

a list of episodes from Friends by season

What's the actual result?

Traceback (most recent call last):
  File "/home/runner/imdbtesting/main.py", line 9, in <module>
    print(show['episodes'])
  File "/home/runner/imdbtesting/.pythonlibs/lib/python3.10/site-packages/imdb/utils.py", line 1503, in __getitem__
    rawData = self.data[key]
KeyError: 'episodes'
@anilove31
Copy link

anilove31 commented Dec 24, 2023

same issue, I think IMDB changed its layout.

@gerson-a
Copy link

bumping as i also had the same issue. the sortedEpisodes function also returns an empty list.

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

3 participants