Episode: Removed Backslashs from Episode Names

This commit is contained in:
Moss 2022-12-25 00:40:41 -05:00
parent 009d9fef1a
commit d7a3f53f03
No known key found for this signature in database
GPG Key ID: F539D4A506C954F9
1 changed files with 14 additions and 1 deletions

View File

@ -90,9 +90,22 @@ namespace dropout_dl {
return out; return out;
} }
std::string remove_escaped_characters(const std::string& str) {
std::string out;
for (int i = 0; i < str.size(); i++) {
if (str[i] == '\\') {
i++;
}
out += str[i];
}
return out;
}
std::string format_name_string(const std::string& str) { std::string format_name_string(const std::string& str) {
return replace_html_character_codes(remove_leading_and_following_whitespace(str)); return remove_escaped_characters(replace_html_character_codes(remove_leading_and_following_whitespace(str)));
} }
std::string format_filename(const std::string& str) { std::string format_filename(const std::string& str) {