From 5a64604fa9d5411a9930fb6c0f62cf87d749eb76 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sun, 6 Dec 2009 12:37:47 +0000 Subject: [PATCH] Have the directory recursion deliberately ignore Sample directories --- trunk/tvmover.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/tvmover.pl b/trunk/tvmover.pl index 7d8abf4..e268946 100755 --- a/trunk/tvmover.pl +++ b/trunk/tvmover.pl @@ -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 ( -d $completed_filename) { + # Skip any "sample" directories + next if $completed_torrent =~ m/sample/i; + # Attempt to grab the series name from the dir name my ($series) = decode_filename($completed_torrent); next unless $series;