Fixed dzil errors and warns...
[cascardo/www-eztv.git] / lib / WWW / EZTV / Episode.pm
index fa2da23..7333a2f 100644 (file)
@@ -1,4 +1,5 @@
 package WWW::EZTV::Episode;
+
 use Moose;
 with 'WWW::EZTV::UA';
 
@@ -50,19 +51,19 @@ sub _parse {
         ((?<quality>\d+p)\s+)?
         (?<team>.*?)
       )
-      (?: 
+      (?:
         \s+
-        \((?<size> 
-          \d+ 
+        \((?<size>
+          \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} || '',