Skip to content

Commit

Permalink
HTML decode pixiv descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
goodtrailer committed May 23, 2021
1 parent 80fe530 commit 7d827f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DailyDesktop.Core.Providers.Pixiv/PixivProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public WallpaperInfo GetWallpaperInfo()
string authorUri = $"https://www.pixiv.net/users/{authorIdMatch.Value}";

Match descriptionMatch = Regex.Match(imagePageHtml, DESCRIPTION_PATTERN);
string description = descriptionMatch.Value;
string description = WebUtility.HtmlDecode(descriptionMatch.Value);

// Download illustration from image URI and return its local path,
// which is necessary because pixiv blocks requests if the Referer
Expand Down

0 comments on commit 7d827f9

Please sign in to comment.