split metadata into lines (if more than one was received)
This commit is contained in:
		| @@ -155,7 +155,8 @@ class MetaParser(Parser): | |||||||
|             "NXDN": RadioIDEnricher("nxdn", self), |             "NXDN": RadioIDEnricher("nxdn", self), | ||||||
|         } |         } | ||||||
|  |  | ||||||
|     def parse(self, meta): |     def parse(self, raw: str): | ||||||
|  |         for meta in raw.split("\n"): | ||||||
|             fields = meta.split(";") |             fields = meta.split(";") | ||||||
|             meta = {v[0]: ":".join(v[1:]) for v in map(lambda x: x.split(":"), fields) if v[0] != ""} |             meta = {v[0]: ":".join(v[1:]) for v in map(lambda x: x.split(":"), fields) if v[0] != ""} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jakob Ketterl
					Jakob Ketterl