Don't fail transcoding if we fail to generate a thumbnail.
This patch by Sergio Durigan Junior. Thank you, Sergio!
This commit is contained in:
@@ -266,6 +266,11 @@ class CommonVideoProcessor(MediaProcessor):
|
||||
tmp_thumb,
|
||||
thumb_size[0])
|
||||
|
||||
# Checking if the thumbnail was correctly created. If it was not,
|
||||
# then just give up.
|
||||
if not os.path.exists (tmp_thumb):
|
||||
return
|
||||
|
||||
# Push the thumbnail to public storage
|
||||
_log.debug('Saving thumbnail...')
|
||||
store_public(self.entry, 'thumb', tmp_thumb,
|
||||
|
||||
Reference in New Issue
Block a user