Merge pull request #86 from srynot4sale/pr-84
gh-84 Do not attempt to process an invalid file
This commit is contained in:
commit
47bd57d40d
|
@ -175,6 +175,10 @@ class FileSystem(object):
|
||||||
if('allowDuplicate' in kwargs):
|
if('allowDuplicate' in kwargs):
|
||||||
allow_duplicate = kwargs['allowDuplicate']
|
allow_duplicate = kwargs['allowDuplicate']
|
||||||
|
|
||||||
|
if(not media.is_valid()):
|
||||||
|
print '%s is not a valid media file. Skipping...' % _file
|
||||||
|
return
|
||||||
|
|
||||||
metadata = media.get_metadata()
|
metadata = media.get_metadata()
|
||||||
|
|
||||||
directory_name = self.get_folder_path(metadata)
|
directory_name = self.get_folder_path(metadata)
|
||||||
|
|
Loading…
Reference in New Issue