From 2f2ee79a50a35d54e2c326dc3956123acc5ca3e2 Mon Sep 17 00:00:00 2001 From: Waldek Date: Thu, 26 Sep 2019 12:12:30 +0200 Subject: [PATCH] Update monitor.py Put the name of Source ID which is generate from subscriber_ids.json and local_subscribers_ids.json (local file with ID and Name) --- monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index ec57a21..443fce6 100644 --- a/monitor.py +++ b/monitor.py @@ -556,11 +556,11 @@ def process_message(_bmessage): dur=str(int(float(duration.strip()))) if row[10] not in my_list: if len(row) < 13: - hline=""+row[0][:10]+""+row[0][11:16]+""+row[7][2:]+""+row[8][2:]+""+row[9]+""+row[11]+" ("+row[10]+")"+dur+""+row[5]+""+row[4]+"" + hline=""+row[0][:10]+""+row[0][11:16]+""+row[7][2:]+""+row[8][2:]+""+row[9]+""+row[11]+" ("+row[10]+")"+dur+""+row[6]+""+row[4]+"" my_list.append(row[10]) n += 1 else: - hline=""+row[0][:10]+""+row[0][11:16]+""+row[7][2:]+""+row[8][2:]+""+row[9]+""+row[11]+" ("+row[10]+")"+row[12]+""+dur+""+row[5]+""+row[4]+"" + hline=""+row[0][:10]+""+row[0][11:16]+""+row[7][2:]+""+row[8][2:]+""+row[9]+""+row[11]+" ("+row[10]+")"+row[12]+""+dur+""+row[6]+""+row[4]+"" my_list.append(row[10]) n += 1 f.write(hline+"\n")