We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff143df commit 3774f3eCopy full SHA for 3774f3e
1 file changed
pythonbits/bb.py
@@ -956,7 +956,8 @@ def _render_mediainfo_path(self):
956
# get first file over 1 MiB
957
for dp, dns, fns in os.walk(self['path']):
958
for fn in fns:
959
- if guess_type(fn)[0].startswith('audio'):
+ g = guess_type(fn)[0]
960
+ if g and g.startswith('audio'):
961
return os.path.join(dp, fn) # return full path
962
raise Exception('No media file found')
963
0 commit comments