From a1cb313ddfee5619284537432bc7394e074a43a4 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 8 Jul 2022 02:07:59 +0200 Subject: [PATCH] fix keyerror --- music_assistant/helpers/tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/helpers/tags.py b/music_assistant/helpers/tags.py index d16572bc..cb6230b2 100644 --- a/music_assistant/helpers/tags.py +++ b/music_assistant/helpers/tags.py @@ -162,7 +162,7 @@ class AudioTags: ) or 16, format=raw["format"]["format_name"], - bit_rate=int(raw["format"]["bit_rate"]), + bit_rate=int(raw["format"].get("bit_rate", 320)), duration=float(raw["format"]["duration"]), tags=tags, has_cover_image=has_cover_image, -- 2.34.1