Merge branch 'clinton-hall/dev-CH'

Made some minor code corrections.
This commit is contained in:
echel0n 2014-04-11 23:04:58 -07:00
commit e82abc3b01
8 changed files with 24 additions and 13 deletions

View file

@ -151,6 +151,9 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
if not inputCategory in nzbtomedia.NOFLATTEN: #don't flatten hp in case multi cd albums, and we need to copy this back later.
flatten(outputDestination)
if os.name == 'nt': # remove Read Only flag from files in Windows.
remove_read_only(outputDestination)
# Now check if video files exist in destination:
if nzbtomedia.CFG["SickBeard","NzbDrone", "CouchPotato"].issubsection(inputCategory):
for dirpath, dirnames, filenames in os.walk(outputDestination):