fix FEC value for web import

This commit is contained in:
DYefremov
2023-03-03 10:49:06 +03:00
parent 6afd518cfc
commit c9fc3803c7

View File

@@ -750,7 +750,7 @@ class ServicesParser(HTMLParser):
""" Returns converted transponder data. """
sys = get_key_by_value(SYSTEM, sys)
mod = get_key_by_value(MODULATION, mod)
fec = get_key_by_value(FEC, fec)
fec = get_key_by_value(FEC, fec) or "0"
# For negative (West) positions: 3600 - numeric position value!!!
namespace = f"{3600 - pos if pos < 0 else pos:04x}0000"
tr_flag = 1