From f484dd004ca47cdf68c0cf29435558e454e199e4 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 15 Jul 2020 09:18:58 +0200 Subject: [PATCH] Add Huawei P20 and P20 Pro #399 Signed-off-by: Michael Mayer --- internal/entity/camera.go | 10 ++++++++++ internal/meta/sanitize.go | 2 ++ 2 files changed, 12 insertions(+) diff --git a/internal/entity/camera.go b/internal/entity/camera.go index a8ab1b7c6..edbddda8a 100644 --- a/internal/entity/camera.go +++ b/internal/entity/camera.go @@ -37,6 +37,16 @@ var CameraMakes = map[string]string{ } var CameraModels = map[string]string{ + "EML-AL00": "P20", + "EML-L09": "P20", + "EML-L09C": "P20", + "EML-L29": "P20", + "EML-L29C": "P20", + "CLT-AL00": "P20 Pro", + "CLT-AL01": "P20 Pro", + "CLT-TL01": "P20 Pro", + "CLT-L09": "P20 Pro", + "CLT-L29": "P20 Pro", "ELE-L29": "P30", "ELE-AL00": "P30", "ELE-L04": "P30", diff --git a/internal/meta/sanitize.go b/internal/meta/sanitize.go index cde4a0ab4..648db1d8a 100644 --- a/internal/meta/sanitize.go +++ b/internal/meta/sanitize.go @@ -17,6 +17,7 @@ var UnwantedDescriptions = map[string]bool{ "nor": true, "dav": true, "mde": true, + "mde_soft": true, "edf": true, "btfmdn": true, "btf": true, @@ -25,6 +26,7 @@ var UnwantedDescriptions = map[string]bool{ "oznor": true, "rpt": true, "burst": true, + "sdr_HDRB": true, } var LowerCaseRegexp = regexp.MustCompile("[a-z0-9_\\-]+")