Have the directory recursion deliberately ignore Sample directories

This commit is contained in:
2009-12-06 12:37:47 +00:00
parent a07db800f7
commit 5a64604fa9

View File

@@ -97,6 +97,9 @@ sub process_completed_directory {
# If the entry is a directory and is named after an episode, attempt to scan it # If the entry is a directory and is named after an episode, attempt to scan it
if ( -d $completed_filename) { if ( -d $completed_filename) {
# Skip any "sample" directories
next if $completed_torrent =~ m/sample/i;
# Attempt to grab the series name from the dir name # Attempt to grab the series name from the dir name
my ($series) = decode_filename($completed_torrent); my ($series) = decode_filename($completed_torrent);
next unless $series; next unless $series;