Skip Menu |

This queue is for tickets about the TVDB-API CPAN distribution.

Report information
The Basics
Id: 101200
Status: new
Priority: 0/
Queue: TVDB-API

People
Owner: Nobody in particular
Requestors: jim [...] dishaw.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: getEpisodeDVD does not retrieve episodes correctly if the DVD season is different than the aired season
Date: Mon, 29 Dec 2014 22:53:54 -0500
To: bug-TVDB-API [...] rt.cpan.org
From: Jim Dishaw <jim [...] dishaw.org>
If there is an episode that has a different DVD season from the aired season (e.g. Seinfeld episode "The Stranded" was aired season 3, episode 10 and the DVD order is season 2 episode 9) getEpisodeDVD will not return the episode when called with the DVD season number. TVDB: 0.33 perl -v: v5.14.2 Debian 3.2.60-1+deb7u3 I tracked down the problem to the getSeason() call in getEpisodeDVD. That call returns the season episode array and getSeriesAll indexes the array by aired season. I have created a patch that adds a getSeasonDVD() subroutine, creates a DVD_Seasons array within getSeriesAll, and modified getEpisodeDVD to use getSeasonDVD. I have tested the patch with the "The Stranded" Seinfeld episode and it appears to work correctly. However, I have not tested the code with any other series nor with an updated metadata condition.

Message body is not shown because sender requested not to inline it.