diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index a2c99f08f8bfb47bc3a6bc6c32252c3d7af20341..8b6fc26f180f1f6cac56268ac9e57e12f67ad289 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -70,11 +70,11 @@ def processDir (dirName, nzbName=None, recurse=False): else: path, dirs = ek.ek(os.path.split, dirName) #Script Post Processing if not nzbName is None and not nzbName.endswith('.nzb') and os.path.isfile(os.path.join(dirName, nzbName)): #For single torrent file without Dir - files = [os.path.join(dirName, nzbName)] dirs = [] - else: - files = ek.ek(os.listdir, dirName) + files = [os.path.join(dirName, nzbName)] + else: dirs = [dirs] + files = [] videoFiles = filter(helpers.isMediaFile, files)