two more replacements

This commit is contained in:
unknown
2008-08-16 01:12:32 +02:00
parent ca00d9f8ef
commit b6f631fcfb

View File

@@ -95,6 +95,10 @@ string GetLyrics(string artist, string song)
result.replace(i, 4, "<"); result.replace(i, 4, "<");
for (int i = result.find("&gt;"); i != string::npos; i = result.find("&gt;")) for (int i = result.find("&gt;"); i != string::npos; i = result.find("&gt;"))
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());