From 9af7f42494c371f3a79d90a4c2948592ab970b86 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Tue, 7 Feb 2017 15:44:53 +0300 Subject: Fixes by HaTaX --- ImageGooglerForm.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ImageGooglerForm.cs') diff --git a/ImageGooglerForm.cs b/ImageGooglerForm.cs index a8818a4b..77f0dc48 100644 --- a/ImageGooglerForm.cs +++ b/ImageGooglerForm.cs @@ -55,14 +55,17 @@ namespace com.clusterrr.hakchi_gui MatchCollection matches = Regex.Matches(responseFromServer, search); foreach (Match match in matches) { - urls.Add(match.Groups[1].Value); + urls.Add(HttpUtility.UrlDecode(match.Groups[1].Value.Replace("\\u00", "%"))); } + // For some reason Google returns different data for dirrefent users (IPs?) + // There is alternative method search = @"imgurl=(.*?)&"; matches = Regex.Matches(responseFromServer, search); foreach (Match match in matches) { - urls.Add(match.Groups[1].Value); + // Not sure about it. + urls.Add(HttpUtility.UrlDecode(match.Groups[1].Value.Replace("\\u00", "%"))); } return urls.ToArray(); -- cgit v1.2.3