From 603c3df1b6d72b56d0398148f2c9ba4b2d51bfc6 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 8 Dec 2020 00:00:21 +0100 Subject: [PATCH] fix fst4(w) filenames --- owrx/wsjt.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/owrx/wsjt.py b/owrx/wsjt.py index 737beb7..9070f9d 100644 --- a/owrx/wsjt.py +++ b/owrx/wsjt.py @@ -95,7 +95,9 @@ class Fst4Profile(WsjtProfile): return self.interval def getFileTimestampFormat(self): - return "%y%m%d_%H%M%S" + if self.interval < 60: + return "%y%m%d_%H%M%S" + return "%y%m%d_%H%M" def decoder_commandline(self, file): return ["jt9", "--fst4", "-p", str(self.interval), "-d", str(self.decoding_depth("fst4")), file] @@ -117,7 +119,9 @@ class Fst4wProfile(WsjtProfile): return self.interval def getFileTimestampFormat(self): - return "%y%m%d_%H%M%S" + if self.interval < 60: + return "%y%m%d_%H%M%S" + return "%y%m%d_%H%M" def decoder_commandline(self, file): return ["jt9", "--fst4w", "-p", str(self.interval), "-d", str(self.decoding_depth("fst4w")), file]