From 45961cbc53f49862fc255d743f059d0e42cef079 Mon Sep 17 00:00:00 2001 From: janus Date: Wed, 13 May 2020 10:10:43 +0200 Subject: [PATCH 05/13] mine: change bouquetprefix C and T to hex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit geƤndert: src/zapit/src/scansdt.cpp --- src/zapit/src/scansdt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zapit/src/scansdt.cpp b/src/zapit/src/scansdt.cpp index 682fa6ac6..16fe97db4 100644 --- a/src/zapit/src/scansdt.cpp +++ b/src/zapit/src/scansdt.cpp @@ -537,11 +537,11 @@ bool CSdt::AddToBouquet(std::string &providerName, CZapitChannel *channel) { char pname[100]; if (SAT_POSITION_CABLE(satellitePosition)) - snprintf(pname, 100, "[C%03d.%d] %s", - abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str()); + snprintf(pname, 100, "[C %03X ] %s", + abs((int)satellitePosition), providerName.c_str()); else if (SAT_POSITION_TERR(satellitePosition)) - snprintf(pname, 100, "[T%03d.%d] %s", - abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str()); + snprintf(pname, 100, "[T %03X ] %s", + abs((int)satellitePosition), providerName.c_str()); else snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W', abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str()); -- 2.20.1