cinemagoer icon indicating copy to clipboard operation
cinemagoer copied to clipboard

Getting list of episodes for a series by year

Open ghost opened this issue 4 years ago • 2 comments

Issue description

I do realise that there is a similar thread for this, but even after looking at that I can't get this to work. Any help would be appreciated!

I'm trying to get a list of the episodes of Naruto Shippuden and then get the IMDb review for each episode. But I can't find out how to get a list of all the episodes for the series.

Since the show has episodes by year. It doesn't use a seasonal format. At least not on the IMDb page.

All I'm getting is a partial list of episodes

Version of IMDbPY, Python and OS

  • Python: Python 3.8.2
  • IMDbPY: 6.8
  • OS: macOS Mojave (10.14.6)

Steps to reproduce the issue


from imdb import IMDb
imdb = IMDb()

naruto = imdb.get_movie('0988824')
imdb.update(naruto, 'episodes')
eps = naruto['episodes']
print(eps)

What's the expected result?

  • A dictionary full of the episodes, from 1 to 500.

What's the actual result?

  • A dictionary of a partial list of the episodes, only episodes from 488 to 500.
{'unknown season': {488: <Movie id:6338860[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Saigo no hitori (2017)_>,
489: <Movie id:6393060[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Fûun (2017)_>,
490: <Movie id:6422758[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" An'un (2017)_>,
491: <Movie id:6459150[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Yamikumo (2017)_>,
492: <Movie id:6471478[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Giun (2017)_>,
493: <Movie id:6493392[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Shinonome (2017)_>,
494: <Movie id:6527370[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Naruto no kekkon (2017)_>,
495: <Movie id:6541902[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Furupawâ kekkon iwai (2017)_>,
496: <Movie id:6542132[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Yukemuri to hyôrôgan (2017)_>,
497: <Movie id:6542138[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Kazekage no oiwai (2017)_>,
498: <Movie id:6542146[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Saigo no ninmu (2017)_>,
499: <Movie id:6626162[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Gokuhi ninmu no yukue (2017)_>,
500: <Movie id:6636106[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Iwai no kotoba (2017)_>}}

ghost avatar May 22 '20 05:05 ghost

Hi @omermikhailk , you are right: I've never seen this kind of listing for the episodes.

We should think about a way to parse both, if possible.

At the moment I'm not sure if I can work on it anytime soon, so if anyone wants to help, just let us know.

alberanid avatar May 23 '20 11:05 alberanid

Issue description

I do realise that there is a similar thread for this, but even after looking at that I can't get this to work. Any help would be appreciated!

I'm trying to get a list of the episodes of Naruto Shippuden and then get the IMDb review for each episode. But I can't find out how to get a list of all the episodes for the series.

Since the show has episodes by year. It doesn't use a seasonal format. At least not on the IMDb page.

All I'm getting is a partial list of episodes

Version of IMDbPY, Python and OS

  • Python: Python 3.8.2
  • IMDbPY: 6.8
  • OS: macOS Mojave (10.14.6)

Steps to reproduce the issue

from imdb import IMDb
imdb = IMDb()

naruto = imdb.get_movie('0988824')
imdb.update(naruto, 'episodes')
eps = naruto['episodes']
print(eps)

What's the expected result?

  • A dictionary full of the episodes, from 1 to 500.

What's the actual result?

  • A dictionary of a partial list of the episodes, only episodes from 488 to 500.
{'unknown season': {488: <Movie id:6338860[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Saigo no hitori (2017)_>,
489: <Movie id:6393060[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Fûun (2017)_>,
490: <Movie id:6422758[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" An'un (2017)_>,
491: <Movie id:6459150[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Yamikumo (2017)_>,
492: <Movie id:6471478[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Giun (2017)_>,
493: <Movie id:6493392[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Shinonome (2017)_>,
494: <Movie id:6527370[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Naruto no kekkon (2017)_>,
495: <Movie id:6541902[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Furupawâ kekkon iwai (2017)_>,
496: <Movie id:6542132[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Yukemuri to hyôrôgan (2017)_>,
497: <Movie id:6542138[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Kazekage no oiwai (2017)_>,
498: <Movie id:6542146[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Saigo no ninmu (2017)_>,
499: <Movie id:6626162[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Gokuhi ninmu no yukue (2017)_>,
500: <Movie id:6636106[http] title:_"Naruto: Shippûden (TV Series 2007–2017) - IMDb" Iwai no kotoba (2017)_>}}

Second this. I wish years would work as well. Some series are not organized around seasons.

tifa365 avatar Aug 13 '20 10:08 tifa365