Episode: Fixed Parsing Backslash in Name

This commit is contained in:
Moss 2022-12-23 00:38:09 -05:00
parent 98e8e89c90
commit 229327bf37
No known key found for this signature in database
GPG Key ID: F539D4A506C954F9
1 changed files with 7 additions and 2 deletions

View File

@ -102,7 +102,7 @@ namespace dropout_dl {
char c = str[i];
// Skip these
if (c == '?' || c == ':') {
if (c == '?' || c == ':' || c == '\\') {
continue;
}
// Replace these with dashes
@ -254,7 +254,12 @@ namespace dropout_dl {
int j;
for (j = 0; meta_data[i + j] != '"' && i + j < meta_data.size(); j++);
for (j = 0; meta_data[i + j] != '"' && i + j < meta_data.size(); j++) {
// skip checking for quotes if prefaced by a forward slash
if (meta_data[i + j] == '\\') {
j++;
}
}
return meta_data.substr(i, j);
}