From fe8e1a0a4a29cd05ec9c1c28ac1651d1084ec154 Mon Sep 17 00:00:00 2001 From: Eren Okka Date: Sun, 7 Jan 2018 12:00:33 +0300 Subject: [PATCH] MyAnimeList: Fix bug where anime titles include HTML entities Caused by a recent change on MAL servers. The endpoint we use is not a part of the official API, so that's to be expected. --- src/sync/myanimelist.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sync/myanimelist.cpp b/src/sync/myanimelist.cpp index f42d5731a..b79b4ef79 100644 --- a/src/sync/myanimelist.cpp +++ b/src/sync/myanimelist.cpp @@ -318,6 +318,7 @@ void Service::GetMetadataById(Response& response, HttpResponse& http_response) { bool title_is_truncated = false; + title = DecodeText(title); if (EndsWith(title, L")") && title.length() > 7) title = title.substr(0, title.length() - 7); if (EndsWith(title, L"...") && title.length() > 3) {