Skip to content

Commit

Permalink
MyAnimeList: Fix bug where anime titles include HTML entities
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erengy committed Jan 7, 2018
1 parent dce06c7 commit fe8e1a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sync/myanimelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe8e1a0

Please sign in to comment.