Skip to content

Commit

Permalink
NowPlaying: Fix codepage for Lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Jul 27, 2020
1 parent c87b8c1 commit d03f16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/NowPlaying/Lyrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ bool Lyrics::GetFromLetras(const std::wstring& artist, const std::wstring& title
std::wstring url = L"https://www.letras.mus.br/winamp.php?musica=" + title;
url += L"&artista=";
url += artist;
data = Internet::DownloadUrl(url, CP_ACP);
data = Internet::DownloadUrl(url, CP_UTF8);
if (!data.empty())
{
std::wstring::size_type pos = data.find(L"\"letra-cnt\"");
Expand Down

0 comments on commit d03f16c

Please sign in to comment.