From fab2384be85b699e47fdb90408ce0ecd28d6a689 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 14 Jun 2020 21:32:48 -0700 Subject: [PATCH] Fixed externalId parsing bug. --- src/core/sdk/IIndexerSource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {