mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Do not parse METARs that are obvious html based error messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
97b6131104
commit
20131d0b8e
@@ -127,6 +127,8 @@ namespace BlackCore
|
||||
{
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
const QString line = lineReader.readLine();
|
||||
// some check for obvious errors
|
||||
if (line.contains("<html")) { continue; }
|
||||
const CMetar metar = m_metarDecoder.decode(line);
|
||||
if (metar != CMetar()) { metars.push_back(metar); }
|
||||
else { invalidLines++; }
|
||||
|
||||
Reference in New Issue
Block a user