Merge pull request #86 from srynot4sale/pr-84

gh-84 Do not attempt to process an invalid file
This commit is contained in:
Jaisen Mathai 2016-02-14 00:57:59 -08:00
commit 47bd57d40d
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)