X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fwww-eztv.git;a=blobdiff_plain;f=lib%2FWWW%2FEZTV%2FEpisode.pm;h=db8cfb7f15fbea343e6245f138ed53efa6170010;hp=fa2da23ea41ab9546d3fd948d62113012d455a25;hb=0c136ed3095264fd92280b8ce840fcbc719be34a;hpb=70fdbac1e0fae8b661eaf75867fd9f436ba0547f diff --git a/lib/WWW/EZTV/Episode.pm b/lib/WWW/EZTV/Episode.pm index fa2da23..db8cfb7 100644 --- a/lib/WWW/EZTV/Episode.pm +++ b/lib/WWW/EZTV/Episode.pm @@ -50,19 +50,19 @@ sub _parse { ((?\d+p)\s+)? (?.*?) ) - (?: + (?: \s+ - \((? - \d+ + \((? + \d+ [^\)]+ - )\) + )\) )? \s*$/xi; return { name => $+{name} || $title, chapter => $+{chapter}, - number => $+{number} +0, + number => ($+{number}||0) +0, season => ($+{season}||0) +0, total => ($+{total}||0) +0, version => $+{version} || '',