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:
parent
f7f38fb047
commit
f4703ae9cd
1
AUTHORS
1
AUTHORS
@ -82,6 +82,7 @@ Thank you!
|
||||
* Tran Thanh Bao
|
||||
* Tryggvi Björgvinsson
|
||||
* Shawn Khan
|
||||
* Sergio Durigan Junior
|
||||
* Will Kahn-Greene
|
||||
|
||||
Special thanks to:
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user