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
|
* Tran Thanh Bao
|
||||||
* Tryggvi Björgvinsson
|
* Tryggvi Björgvinsson
|
||||||
* Shawn Khan
|
* Shawn Khan
|
||||||
|
* Sergio Durigan Junior
|
||||||
* Will Kahn-Greene
|
* Will Kahn-Greene
|
||||||
|
|
||||||
Special thanks to:
|
Special thanks to:
|
||||||
|
@ -266,6 +266,11 @@ class CommonVideoProcessor(MediaProcessor):
|
|||||||
tmp_thumb,
|
tmp_thumb,
|
||||||
thumb_size[0])
|
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
|
# Push the thumbnail to public storage
|
||||||
_log.debug('Saving thumbnail...')
|
_log.debug('Saving thumbnail...')
|
||||||
store_public(self.entry, 'thumb', tmp_thumb,
|
store_public(self.entry, 'thumb', tmp_thumb,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user