Skip Menu |

This queue is for tickets about the WWW-TV CPAN distribution.

Report information
The Basics
Id: 42284
Status: resolved
Priority: 0/
Queue: WWW-TV

People
Owner: tigris [...] cpan.org
Requestors: frequency [...] cpan.org
Cc:
AdminCc:

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



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.
Thanks for the report. The \w\s was in there for some episodes that never aired, and hence have words in there instead of a date. This is fixed in 0.12. Thanks for the report! regards, Danial