Skip to content

Commit

Permalink
Update nc_parse.groovy
Browse files Browse the repository at this point in the history
Do not parse measurement with WalrusPhone as device_manufacturer
  • Loading branch information
nicolas-f authored Sep 18, 2023
1 parent df602c9 commit 7d69486
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ static Integer processFile(Connection connection, File zipFile,Map trackData = [
if(Long.valueOf(meta.getProperty("record_utc")) > System.currentTimeMillis() + (15*60*1000)) {
throw new InvalidParameterException("Wrong time, superior than server time \"" + epochToRFCTime(Long.valueOf(meta.getProperty("record_utc"))) + "\"")
}

if(["WalrusPhone"].contains(meta.get("device_manufacturer"))) {
throw new InvalidParameterException("Detect wrong device_manufacturer")
}
def noisecaptureVersion = Integer.valueOf(meta.getProperty("version_number"));
def microphone_identifier = meta.getOrDefault("microphone_identifier", "")
def microphone_settings = meta.getOrDefault("microphone_settings", "")
Expand Down

0 comments on commit 7d69486

Please sign in to comment.