Skip to content

Commit

Permalink
Don't delete pvr entries in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wiehe authored and notnac committed Feb 6, 2019
1 parent fd1628a commit 8e8f619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_iplayer
Original file line number Diff line number Diff line change
Expand Up @@ -8498,8 +8498,8 @@ sub run {
$failcount = main::download_matches( $hist, main::find_matches( $hist, @search_args ) );
}
# If this is a one-off queue entry then delete the PVR entry upon successful recording(s)
if ( $name =~ /^ONCE_/ ) {
$pvr->del( $name ) if not $failcount;
if ( $name =~ /^ONCE_/ && ! $failcount && ! $opt->{test} ) {
$pvr->del( $name );
}
if ( $failcount ) {
main::logger "WARNING: PVR Run: '$name': $failcount download failure(s)\n";
Expand Down

0 comments on commit 8e8f619

Please sign in to comment.