gh-84 Do not attempt to process an invalid file
This commit is contained in:
parent
91a7622967
commit
63ead49bcb
|
@ -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