mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 00:19:20 +00:00
Fixed externalId parsing bug.
This commit is contained in:
parent
2a75d4fa6f
commit
fab2384be8
@ -72,7 +72,7 @@ namespace musik { namespace core { namespace sdk {
|
||||
template <typename String=std::string>
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user