fix crash on audio-less files
This commit is contained in:
parent
4f9cac78c5
commit
ddb5f38d75
2 changed files with 3 additions and 1 deletions
|
@ -198,6 +198,8 @@ if __name__ == "__main__":
|
||||||
info.audio_samplerate = over.text.Unit(audio["sample_rate"], "Hz")
|
info.audio_samplerate = over.text.Unit(audio["sample_rate"], "Hz")
|
||||||
info.audio_language = audio["tags"]["language"] if "tags" in audio and "language" in audio["tags"] else "und"
|
info.audio_language = audio["tags"]["language"] if "tags" in audio and "language" in audio["tags"] else "und"
|
||||||
info.audio_bitrate = over.text.Unit(audio["bit_rate"], "b/s") if "bit_rate" in audio else "<R>??<.>"
|
info.audio_bitrate = over.text.Unit(audio["bit_rate"], "b/s") if "bit_rate" in audio else "<R>??<.>"
|
||||||
|
else:
|
||||||
|
info.audio_channel_layout = None
|
||||||
|
|
||||||
except:
|
except:
|
||||||
main.print("exception while reading identify_dict, dump follows", main.print.tl.fail)
|
main.print("exception while reading identify_dict, dump follows", main.print.tl.fail)
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
major = 1 # VERSION_MAJOR_IDENTIFIER
|
major = 1 # VERSION_MAJOR_IDENTIFIER
|
||||||
minor = 111 # VERSION_MINOR_IDENTIFIER
|
minor = 111 # VERSION_MINOR_IDENTIFIER
|
||||||
# VERSION_LAST_MM 1.111
|
# VERSION_LAST_MM 1.111
|
||||||
patch = 1 # VERSION_PATCH_IDENTIFIER
|
patch = 2 # VERSION_PATCH_IDENTIFIER
|
||||||
str = ".".join(str(v) for v in (major, minor, patch))
|
str = ".".join(str(v) for v in (major, minor, patch))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue