gh-84 Do not attempt to process an invalid file

This commit is contained in:
Aaron Barnes 2016-02-14 21:27:06 +13:00
parent 91a7622967
commit 63ead49bcb
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ class FileSystem(object):
if('allowDuplicate' in kwargs):
allow_duplicate = kwargs['allowDuplicate']
if(not media.is_valid()):
print '%s is not a valid media file. Skipping...' % _file
return
metadata = media.get_metadata()
directory_name = self.get_folder_path(metadata)