From d45214627a3a887122fd0df67ddd5010a473c810 Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 21 Sep 2019 23:50:46 +0200 Subject: [PATCH] Update poc.py Fixing brokes line-ends --- includes/decoders/poc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/decoders/poc.py b/includes/decoders/poc.py index 5389041..6ab9aa0 100644 --- a/includes/decoders/poc.py +++ b/includes/decoders/poc.py @@ -123,10 +123,10 @@ def decode(freq, decoded): logging.debug("POCSAG Bitrate: %s", bitrate) if "Alpha:" in decoded: #check if there is a text message - poc_text = decoded.split('Alpha: ')[1].strip().replace('','').replace('','').repl$ + poc_text = decoded.split('Alpha: ')[1].strip().replace('','').replace('','').replace('','').replace('','').strip() if globalVars.config.getint("POC","geo_enable"): try: - logging.debug("Using %s to find geo-tag in %s", globalVars.config.get("POC","geo_format"),$ + logging.debug("Using %s to find geo-tag in %s", globalVars.config.get("POC","geo_format"),poc_text) m = re.search(globalVars.config.get("POC","geo_format"),poc_text) if m: logging.debug("Found geo-tag in message, parsing...")