more clean-up stuff
This commit is contained in:
parent
e1d54bdf1d
commit
2053a6b16b
@ -1356,7 +1356,8 @@ function update_metadata(meta) {
|
||||
$(el).find(".openwebrx-ysf-down").text(down);
|
||||
|
||||
break;
|
||||
|
||||
} else {
|
||||
$(".openwebrx-meta-panel .openwebrx-meta-autoclear").text("");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,11 +64,13 @@ class MetaParser(object):
|
||||
enrichers = {
|
||||
"DMR": DmrMetaEnricher()
|
||||
}
|
||||
|
||||
def __init__(self, handler):
|
||||
self.handler = handler
|
||||
|
||||
def parse(self, meta):
|
||||
fields = meta.split(";")
|
||||
meta = {v[0] : "".join(v[1:]) for v in map(lambda x: x.split(":"), fields)}
|
||||
meta = {v[0]: "".join(v[1:]) for v in map(lambda x: x.split(":"), fields) if v[0] != ""}
|
||||
|
||||
if "protocol" in meta:
|
||||
protocol = meta["protocol"]
|
||||
|
Loading…
Reference in New Issue
Block a user