restore demodulation of digital voice modes

This commit is contained in:
Jakob Ketterl
2021-08-26 15:58:02 +02:00
parent 5032f4b66d
commit aecb79a4d4
4 changed files with 71 additions and 12 deletions

View File

@@ -171,7 +171,9 @@ class MetaParser(Parser):
}
self.currentMetaData = None
def parse(self, raw: str):
def parse(self, raw: memoryview):
raw = raw.tobytes().decode("utf-8").rstrip("\n")
for meta in raw.split("\n"):
fields = meta.split(";")
meta = {v[0]: ":".join(v[1:]) for v in map(lambda x: x.split(":"), fields) if v[0] != ""}