Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekmo committed Apr 15, 2018
2 parents 4372e65 + 93ac4bf commit acaf5d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion telegram_upload/video.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import struct
import subprocess
import tempfile
import os

from hachoir.metadata import extractMetadata
from hachoir.parser import createParser
Expand Down Expand Up @@ -32,5 +33,5 @@ def get_video_thumb(file, output=None, width=90):
'-vframes', '1',
output,
], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
if not p.returncode:
if not p.returncode and os.path.lexists(file):
return output

0 comments on commit acaf5d5

Please sign in to comment.