From 710942ac785f00a62915441ab39acbece3b936f7 Mon Sep 17 00:00:00 2001 From: emeric Date: Fri, 26 Jan 2024 23:06:02 +0100 Subject: [PATCH] bumped some internal size limits for names.fixes #408 --- src/libs/database/include/database/Artist.hpp | 2 +- src/libs/database/include/database/Release.hpp | 2 +- src/libs/database/include/database/Track.hpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libs/database/include/database/Artist.hpp b/src/libs/database/include/database/Artist.hpp index c7e9d7bb..f70fec40 100644 --- a/src/libs/database/include/database/Artist.hpp +++ b/src/libs/database/include/database/Artist.hpp @@ -121,7 +121,7 @@ namespace Database } private: - static constexpr std::size_t _maxNameLength{ 128 }; + static constexpr std::size_t _maxNameLength{ 256 }; friend class Session; // Create diff --git a/src/libs/database/include/database/Release.hpp b/src/libs/database/include/database/Release.hpp index 738497f8..40c9d80a 100644 --- a/src/libs/database/include/database/Release.hpp +++ b/src/libs/database/include/database/Release.hpp @@ -188,7 +188,7 @@ namespace Database Wt::WDate getDate(bool original) const; std::optional getYear(bool original) const; - static constexpr std::size_t _maxNameLength{ 128 }; + static constexpr std::size_t _maxNameLength{ 256 }; std::string _name; std::string _MBID; diff --git a/src/libs/database/include/database/Track.hpp b/src/libs/database/include/database/Track.hpp index 2583e64c..4237f528 100644 --- a/src/libs/database/include/database/Track.hpp +++ b/src/libs/database/include/database/Track.hpp @@ -225,9 +225,9 @@ namespace Database { Track(const std::filesystem::path& p); static pointer create(Session& session, const std::filesystem::path& p); - static constexpr std::size_t _maxNameLength{ 128 }; - static constexpr std::size_t _maxCopyrightLength{ 128 }; - static constexpr std::size_t _maxCopyrightURLLength{ 128 }; + static constexpr std::size_t _maxNameLength{ 256 }; + static constexpr std::size_t _maxCopyrightLength{ 256 }; + static constexpr std::size_t _maxCopyrightURLLength{ 256 }; int _scanVersion{}; std::optional _trackNumber{};