From 9f50ec4dad29fde4e60288e64f4923c129524cc1 Mon Sep 17 00:00:00 2001 From: dpolasky Date: Fri, 21 Apr 2023 15:28:25 -0400 Subject: [PATCH] fix bug introduced in 0f80898 for xtag masses --- Makefile | 2 +- lib/qua/iso.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8be1f0f6..588099df 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ VERSION = $(shell date +%Y%m%d) BUILD = $(shell date +%Y%m%d%H%M) TAG = v5.0.0 -RC = RC24 +RC = RC25 LDFLAGS = -ldflags "-w -s -extldflags -static -X main.version=${TAG} -X main.build=${BUILD}" diff --git a/lib/qua/iso.go b/lib/qua/iso.go index c59ec716..4d966b57 100644 --- a/lib/qua/iso.go +++ b/lib/qua/iso.go @@ -159,7 +159,7 @@ func prepareLabelStructureWithMS2(dir, format, brand, plex string, tol float64, } } - if brand != "sclip" && i.Mz.DecodedStream[j] > 137 { + if brand != "sclip" && brand != "xtag" && i.Mz.DecodedStream[j] > 137 { break } else if i.Mz.DecodedStream[j] > 450 { break @@ -312,7 +312,7 @@ func prepareLabelStructureWithMS3(dir, format, brand, plex string, tol float64, } } - if brand != "sclip" && i.Mz.DecodedStream[j] > 137 { + if brand != "sclip" && brand != "xtag" && i.Mz.DecodedStream[j] > 137 { break } else if i.Mz.DecodedStream[j] > 450 { break