Zachary Kotlarek пре 7 година
родитељ
комит
c2325e6524
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      rss.pl

+ 1 - 1
rss.pl

@@ -219,7 +219,7 @@ while (my $file = readdir($fh)) {
 			if (exists($episodes{$time}->{'size'}) && $episodes{$time}->{'size'}) {
 				(undef(), undef(), undef(), undef(), undef(), undef(), undef(), my $size) = stat($path);
 				my $ratio = 1;
-				if ($episodes{$time}->{'size'} =~ /^\d$/) {
+				if ($episodes{$time}->{'size'} =~ /^\d+$/) {
 					$ratio = ($size / $episodes{$time}->{'size'});
 				} elsif ($DEBUG) {
 					warn('Invalid episode size: ' . $episodes{$time}->{'size'});