two more replacements
This commit is contained in:
@@ -95,6 +95,10 @@ string GetLyrics(string artist, string song)
|
|||||||
result.replace(i, 4, "<");
|
result.replace(i, 4, "<");
|
||||||
for (int i = result.find(">"); i != string::npos; i = result.find(">"))
|
for (int i = result.find(">"); i != string::npos; i = result.find(">"))
|
||||||
result.replace(i, 4, ">");
|
result.replace(i, 4, ">");
|
||||||
|
for (int i = result.find("<lyric>"); i != string::npos; i = result.find("<lyric>"))
|
||||||
|
result.replace(i, 7, "");
|
||||||
|
for (int i = result.find("</lyric>"); i != string::npos; i = result.find("</lyric>"))
|
||||||
|
result.replace(i, 8, "");
|
||||||
|
|
||||||
std::ofstream output(fullpath.c_str());
|
std::ofstream output(fullpath.c_str());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user