mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 23:39:41 +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>
|
template <typename String=std::string>
|
||||||
static bool parseExternalId(const String& prefix, const String& externalId, String& fn, int& track) {
|
static bool parseExternalId(const String& prefix, const String& externalId, String& fn, int& track) {
|
||||||
if (externalId.find(String(prefix + "://")) == 0) {
|
if (externalId.find(String(prefix + "://")) == 0) {
|
||||||
String trimmed = externalId.substr(6);
|
String trimmed = externalId.substr(prefix.size() + 3);
|
||||||
auto slash = trimmed.find("/");
|
auto slash = trimmed.find("/");
|
||||||
if (slash != String::npos) {
|
if (slash != String::npos) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user