Subject: | Failed Parsing of Episode Air Date |
The episode airdate was not being parsed properly. When the month begins
with 1, as, 10 for October, the first character is dropped entirely.
Thus, 10/5/2008 becomes 0/5/2008, which is then transformed to 5-0-2008.
I played around with fill_vitals in WWW::TV::Episode and found that this
problem can be fixed on line 482, changing from:
(?:<li><span>First\sAired:</span>\s*(?:\w+\s*)?(\d+/\d+/\d+|n/a)\s*</li>)?
to
(?:<li><span>First\sAired:</span>\s*(\d+/\d+/\d+|n/a)\s*</li>)?
But because I'm not really sure what that code is for - (?:\w+\s*)? -
I'm not sure if it breaks the regular expression parser for something else.
Perhaps it would be useful to use an HTML parsing module here.