@@ -859,7 +859,7 @@ class Media(models.Model):
|
|||||||
'''
|
'''
|
||||||
fetch the first key with a value from metadata
|
fetch the first key with a value from metadata
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if arg_dict is None:
|
if arg_dict is None:
|
||||||
arg_dict = self.loaded_metadata
|
arg_dict = self.loaded_metadata
|
||||||
assert isinstance(arg_dict, dict), type(arg_dict)
|
assert isinstance(arg_dict, dict), type(arg_dict)
|
||||||
@@ -938,7 +938,7 @@ class Media(models.Model):
|
|||||||
return str(fmt.get('id'))
|
return str(fmt.get('id'))
|
||||||
return False
|
return False
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_display_format(self, format_str):
|
def get_display_format(self, format_str):
|
||||||
'''
|
'''
|
||||||
Returns a tuple used in the format component of the output filename. This
|
Returns a tuple used in the format component of the output filename. This
|
||||||
@@ -1223,7 +1223,7 @@ class Media(models.Model):
|
|||||||
metadata = self.index_metadata()
|
metadata = self.index_metadata()
|
||||||
if self.skip:
|
if self.skip:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
response = metadata
|
response = metadata
|
||||||
if getattr(settings, 'SHRINK_NEW_MEDIA_METADATA', False):
|
if getattr(settings, 'SHRINK_NEW_MEDIA_METADATA', False):
|
||||||
response = filter_response(metadata, True)
|
response = filter_response(metadata, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user