Improve handling of buggy WOTA spot

This commit is contained in:
Ian Renton
2025-11-30 11:30:15 +00:00
parent 9d130712d8
commit e86d6b8c28

View File

@@ -47,7 +47,8 @@ class WOTA(HTTPSpotProvider):
freq_mode = desc_split[0].replace("Frequencies/modes:", "").strip()
freq_mode_split = re.split(r'[\-\s]+', freq_mode)
freq_hz = float(freq_mode_split[0]) * 1000000
mode = freq_mode_split[1].upper()
if len(freq_mode_split) > 1:
mode = freq_mode_split[1].upper()
comment = None
if len(desc_split) > 1: