Browse Source

give up on episodes that fail too much

themage
theMage 4 years ago
parent
commit
0aa3ee18f5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      lib/CinePantufas/Core.pm

+ 7 - 0
lib/CinePantufas/Core.pm

@ -359,6 +359,13 @@ sub __queue_new {
359 359
        next EPISODE;
360 360
      }
361 361
    }
362
363
    $episode->{failed}++;
364
    if ( $episode->{failed} >= 10 ) {
365
      $episode->{status} = 'failed';
366
      print STDERR "giving up on $episode->{show} - $episode->{number}\n";
367
    }
368
    $epidb{$k} = to_json($episode,{utf8=>1});
362 369
  }
363 370
364 371
  print STDERR "Queued $queued new episodes\n"