two more replacements

master
unknown 18 years ago
parent ca00d9f8ef
commit b6f631fcfb
  1. 4
      src/lyrics.cpp

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

Loading…
Cancel
Save