From 7eddc9ea8deae0b26552136e02a4cbcf6168b01d Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 19 Feb 2017 01:17:30 +0100 Subject: [PATCH] Update poc.py Trying to remove the ``-tags in some variations; needs to be verified! --- 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 0e6b47b..46be042 100644 --- a/includes/decoders/poc.py +++ b/includes/decoders/poc.py @@ -74,7 +74,7 @@ def isAllowed(poc_id): # def decode(freq, decoded): """ - Export POCSAG Information from Multimon-NG RAW String and call alarmHandler.processAlarmHandler() + Export POCSAG information from Multimon-NG string and call alarmHandler.processAlarmHandler() @type freq: string @param freq: frequency of the SDR Stick @@ -111,7 +111,7 @@ 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().rstrip('').strip() + poc_text = decoded.split('Alpha: ')[1].strip().replace('','').replace('','').replace('','').replace('','').strip() else: poc_text = ""