Page 1 of 1

Murder, She Wrote S06E19 issue

Posted: Mon Dec 31, 2018 4:16 pm
by freak
My python script is having some issues with this episode.

Code: Select all

>>> import tvdb_api
>>> tv = tvdb_api.Tvdb(dvdorder=True)
>>> series = tv['Murder_She_Wrote']
>>> series[6][18]
<Episode 06x18 - u"O'Malley's Luck">
>>> series[6][19]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rtaft/.local/lib/python2.7/site-packages/", line 420, in __getitem__
    raise tvdb_episodenotfound("Could not find episode %s" % (repr(episode_number)))
tvdb_api.tvdb_episodenotfound: Could not find episode 19
>>> series[6][20]
<Episode 06x20 - u'Shear Madness'>
>>> series[6][21]
<Episode 06x21 - u'The Szechuan Dragon'>
>>> series[6][22]
<Episode 06x22 - u'The Sicilian Encounter'>

If I remove dvdorder=True, it works fine and I can work with that, but this should be fixed. The DVD order does not appear to be set anywhere for this season, so I'm not sure why I'm getting this error for one episode.

Re: Murder, She Wrote S06E19 issue

Posted: Mon Dec 31, 2018 4:23 pm
by Mistywing
Check if it's an issue of '0' handling in your script.
The episode in question has 0 and 0.0 in the DVD Order values, as an issue with the new site is putting 0s in all orders when the episode is edited after its creation.

Otherwise you can probably add the real DVD order to fix it.

Re: Murder, She Wrote S06E19 issue

Posted: Mon Dec 31, 2018 5:01 pm
by freak
Yes, when I went into edit mode, I see 0.0 for that episode. Unfortunately, setting it to DVD Season 6 and DVD Episode 19 does not help, it changes it to 19.0 in the edit mode, but nothing changes in the read only view or from the API.

Re: Murder, She Wrote S06E19 issue

Posted: Mon Dec 31, 2018 9:31 pm
by Mistywing
The website view feature for DVD Order is currently broken and displays nothing, so I wouldn't rely on it for testing.

Testing with the API page, it seems to return the DVD information properly:

Code: Select all

  "data": {
    "id": 270338,
    "airedSeason": 6,
    "airedSeasonID": 14181,
    "airedEpisodeNumber": 19,
    "episodeName": "Always a Thief",
    "firstAired": "1990-04-08",
    "guestStars": [
      "Dina Merrill",
      "Lisa Blount",
      "Shirley Knight",
      "Ed Nelson",
      "Chris Mulkey",
      "Aharon IpalĂ©",
      "Jill Jaress",
      "Marco Lopez",
      "Virginia Hawkins",
      "Mitch Hara",
      "E.E. Bell",
      "Richard Newton",
      "Roscoe Born"
    "director": "|Walter Grauman|",
    "directors": [
      "Walter Grauman"
    "writers": [
      "Peter S. Fischer"
    "overview": "Insurance investigator Dennis Stanton, who uses his skills as an ex-thief to solve crimes, returns to investigate a theft and two murders.",
    "language": {
      "episodeName": "en",
      "overview": "en"
    "productionCode": "65322",
    "showUrl": "",
    "lastUpdated": 1546293515,
    "dvdDiscid": "",
    "dvdSeason": 6,
    "dvdEpisodeNumber": 19,
    "dvdChapter": null,
    "absoluteNumber": 129,
    "filename": "episodes/78049/270338.jpg",
    "seriesId": 78049,
    "lastUpdatedBy": 448735,
    "airsAfterSeason": null,
    "airsBeforeSeason": null,
    "airsBeforeEpisode": null,
    "thumbAuthor": 351103,
    "thumbAdded": "",
    "thumbWidth": "400",
    "thumbHeight": "300",
    "imdbId": "tt0653455",
    "siteRating": 7,
    "siteRatingCount": 2

Do you have issues with other shows that have set numbers? For example this episode also has set numbers.

PS: sorry about this, moving to the API subforum now. I slept on this yesterday ;)