From 203f834f659461284867f537aa7341639b5b8929 Mon Sep 17 00:00:00 2001 From: Yevhen Odynets Date: Mon, 3 Mar 2025 09:28:41 +0200 Subject: [PATCH 1/2] upadted to 1.24.0; fixed stb and spiddped doubles in precene --- .idea/golinter.xml | 1 + .idea/inspectionProfiles/Project_Default.xml | 10 -- cmd/main.go | 6 +- config/default.yaml | 7 +- config/scope/console.yaml | 4 + config/scope/metal-archives.yaml | 2 + config/scope/prescene.yaml | 18 +- config/scope/rutracker.yaml | 3 +- config/scope/stb.yaml | 29 ++++ go.mod | 55 +++--- go.sum | 169 ++++++++++-------- helper/parser/html.go | 10 +- helper/sugar/console.go | 19 ++ helper/sugar/env.go | 11 ++ helper/sugar/fs.go | 63 +++++++ helper/sugar/string.go | 8 + helper/thither/thither.go | 28 +++ internal/bootstrap.go | 21 ++- internal/flag.go | 8 +- internal/logging/logging.go | 23 +++ internal/mail/mail.go | 172 +++++++++++++++++++ pkg/handler/console.go | 26 +++ pkg/handler/handler.go | 16 +- pkg/handler/info.go | 36 ++++ pkg/handler/metal-archives.go | 5 + pkg/handler/prescene.go | 2 +- pkg/handler/rutracker.go | 2 +- pkg/handler/stb.go | 36 ++++ pkg/repository/prescene.go | 160 +++++++++-------- pkg/repository/repository.go | 6 +- pkg/repository/stb.go | 154 +++++++++++++++++ pkg/repository/table/external_sources.go | 48 +++++- pkg/service/info.go | 7 + pkg/service/metal-archives.go | 1 + pkg/service/service.go | 8 +- pkg/service/stb.go | 19 ++ types/constant/constants.go | 18 +- types/constant/flag.go | 6 + types/interface/interfaces.go | 13 +- types/model/external_sources.go | 2 +- types/resource/metal-archive.go | 45 +++++ 41 files changed, 1058 insertions(+), 219 deletions(-) delete mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 config/scope/console.yaml create mode 100644 config/scope/metal-archives.yaml create mode 100644 config/scope/stb.yaml create mode 100644 helper/sugar/console.go create mode 100644 helper/sugar/env.go create mode 100644 helper/sugar/fs.go create mode 100644 helper/sugar/string.go create mode 100644 helper/thither/thither.go create mode 100644 internal/logging/logging.go create mode 100644 internal/mail/mail.go create mode 100644 pkg/handler/console.go create mode 100644 pkg/handler/info.go create mode 100644 pkg/handler/metal-archives.go create mode 100644 pkg/handler/stb.go create mode 100644 pkg/repository/stb.go create mode 100644 pkg/service/info.go create mode 100644 pkg/service/metal-archives.go create mode 100644 pkg/service/stb.go create mode 100644 types/resource/metal-archive.go diff --git a/.idea/golinter.xml b/.idea/golinter.xml index 4734c3b..2c04dd9 100644 --- a/.idea/golinter.xml +++ b/.idea/golinter.xml @@ -1,6 +1,7 @@ +