Skip to content

Commit e0bccb6

Browse files
committed
ignore --require_cutlist if the file was requested via --infile. closes #2967, though not by the patch since it was against the wrong svn.
1 parent 936d0c7 commit e0bccb6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nuvexport/mythtv/recordings.pm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ package mythtv::recordings;
6262
# Load into an object
6363
$file = $Myth->new_recording(@$file);
6464
# Skip shows without cutlists?
65-
next if (arg('require_cutlist') && !$file->{'has_cutlist'});
65+
if (arg('require_cutlist') && !$file->{'has_cutlist'}) {
66+
if (arg('infile')) {
67+
print STDERR "WARNING: Overriding --require_cutlist because file was requested with --infile.\n";
68+
}
69+
else {
70+
next;
71+
}
72+
}
6673
# Skip files that aren't local (until file info is stored in the db)
6774
next unless ($file->{'local_path'} && -e $file->{'local_path'});
6875
# Defaults

0 commit comments

Comments
 (0)