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

loosing Episode data from season request #13

Closed oshribr closed 7 years ago

oshribr commented 7 years ago

The omdb.py loosing the Episode data from season request. For example for the http://www.omdbapi.com/?i=tt0944947&Season=1 the omdb api return

{
  "Title": "Game of Thrones",
  "Season": "1",
  "totalSeasons": "8",
  "Episodes": [
    {
      "Title": "Winter Is Coming",
      "Released": "2011-04-17",
      "Episode": "1",
      "imdbRating": "9.0",
      "imdbID": "tt1480055"
    },
    {
      "Title": "The Kingsroad",
      "Released": "2011-04-24",
      "Episode": "2",
      "imdbRating": "8.8",
      "imdbID": "tt1668746"
    },
    {
      "Title": "Lord Snow",
      "Released": "2011-05-01",
      "Episode": "3",
      "imdbRating": "8.7",
      "imdbID": "tt1829962"
    },
    {
      "Title": "Cripples, Bastards, and Broken Things",
      "Released": "2011-05-08",
      "Episode": "4",
      "imdbRating": "8.8",
      "imdbID": "tt1829963"
    },
    {
      "Title": "The Wolf and the Lion",
      "Released": "2011-05-15",
      "Episode": "5",
      "imdbRating": "9.1",
      "imdbID": "tt1829964"
    },
    {
      "Title": "A Golden Crown",
      "Released": "2011-05-22",
      "Episode": "6",
      "imdbRating": "9.2",
      "imdbID": "tt1837862"
    },
    {
      "Title": "You Win or You Die",
      "Released": "2011-05-29",
      "Episode": "7",
      "imdbRating": "9.2",
      "imdbID": "tt1837863"
    },
    {
      "Title": "The Pointy End",
      "Released": "2011-06-05",
      "Episode": "8",
      "imdbRating": "9.0",
      "imdbID": "tt1837864"
    },
    {
      "Title": "Baelor",
      "Released": "2011-06-12",
      "Episode": "9",
      "imdbRating": "9.6",
      "imdbID": "tt1851398"
    },
    {
      "Title": "Fire and Blood",
      "Released": "2011-06-19",
      "Episode": "10",
      "imdbRating": "9.4",
      "imdbID": "tt1851397"
    }
  ],
  "Response": "True"
}

But the omdb.py return

{
    "season": "1",
    "response": "True",
    "total_seasons": "8",
    "title": "Game of Thrones"
}
dgilland commented 7 years ago

Should be fixed by 65371e8dba4a1d66701d5f363e98ef6bbc82a17a.