dont fail with audio files
This commit is contained in:
parent
376a103309
commit
ede101e112
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ def encode(filename, prefix, profile, info=None, extract_frames=True):
|
|||
cache = os.path.join(prefix, os.path.join(*utils.hash_prefix(oshash)))
|
||||
if info.get('video') and extract_frames:
|
||||
frames = get_frames(filename, prefix, info)
|
||||
else:
|
||||
frames = []
|
||||
if info.get('video') or info.get('audio'):
|
||||
media_f = os.path.join(cache, profile)
|
||||
if not os.path.exists(media_f) \
|
||||
|
|
Loading…
Reference in a new issue