final test. Add name to cat to look for dir

This commit is contained in:
clinton-hall 2013-02-13 16:58:51 -08:00
commit a079d890ba

View file

@ -121,6 +121,10 @@ if DirBase[1] == Name:
Category = DirBase2[1] Category = DirBase2[1]
elif DirBase[1] == Movie_Cat or DirBase == TV_Cat: elif DirBase[1] == Movie_Cat or DirBase == TV_Cat:
if os.path.isdir(os.path.join(Directory, Name)):
print "INFO: Found torrent directory %s in category directory %s" % (os.path.join(Directory, Name), Directory)
Directory = os.path.join(Directory, Name)
else:
print "INFO: The directory passed is the root directory for category %s" % (DirBase[1]) print "INFO: The directory passed is the root directory for category %s" % (DirBase[1])
print "WARNING: You should change settings to download torrents to their own directory" print "WARNING: You should change settings to download torrents to their own directory"
print "INFO: We will try and determine which files to process, individually" print "INFO: We will try and determine which files to process, individually"