Fixed bug in the scan settings view when no extra tag is to be parsed
This commit is contained in:
@@ -78,6 +78,7 @@ namespace lms::core::stringUtils::tests
|
|||||||
};
|
};
|
||||||
|
|
||||||
TestCase tests[]{
|
TestCase tests[]{
|
||||||
|
{ "", "", { "" } },
|
||||||
{ "abc", "", { "abc" } },
|
{ "abc", "", { "abc" } },
|
||||||
{ "abc", "-", { "abc" } },
|
{ "abc", "-", { "abc" } },
|
||||||
{ "abc", "b", { "a", "c" } },
|
{ "abc", "b", { "a", "c" } },
|
||||||
|
|||||||
@@ -59,7 +59,11 @@ namespace lms::db
|
|||||||
|
|
||||||
std::vector<std::string_view> ScanSettings::getExtraTagsToScan() const
|
std::vector<std::string_view> ScanSettings::getExtraTagsToScan() const
|
||||||
{
|
{
|
||||||
return core::stringUtils::splitString(_extraTagsToScan, ';');
|
std::vector<std::string_view> tags{ core::stringUtils::splitString(_extraTagsToScan, ';') };
|
||||||
|
if (tags.size() == 1 && tags.front().empty())
|
||||||
|
tags.clear();
|
||||||
|
|
||||||
|
return tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> ScanSettings::getArtistTagDelimiters() const
|
std::vector<std::string> ScanSettings::getArtistTagDelimiters() const
|
||||||
|
|||||||
Reference in New Issue
Block a user