mutability / dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices
528 stars 137 forks source link

Don't try to request DB entries for non-icao addresses #66

Closed mutability closed 5 years ago

mutability commented 9 years ago

A non-icao address (with ~ at the start) ends up trying to request ~.json which always fails. We should catch this earlier.

toverfield commented 9 years ago

I patched this in planeObject.js with the marked line. It seems to work.

+++   if (this.icao[0] !== '~')
            getAircraftData(this.icao).done(function(data) {
                if ("r" in data) {
                        this.registration = data.r;
                }