diff --git a/src/core/sdk/IIndexerSource.h b/src/core/sdk/IIndexerSource.h index f35a8bd26..2cbebd215 100644 --- a/src/core/sdk/IIndexerSource.h +++ b/src/core/sdk/IIndexerSource.h @@ -72,7 +72,7 @@ namespace musik { namespace core { namespace sdk { template static bool parseExternalId(const String& prefix, const String& externalId, String& fn, int& track) { if (externalId.find(String(prefix + "://")) == 0) { - String trimmed = externalId.substr(6); + String trimmed = externalId.substr(prefix.size() + 3); auto slash = trimmed.find("/"); if (slash != String::npos) { try {