diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-07 15:44:53 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-07 15:44:53 +0300 |
commit | 9af7f42494c371f3a79d90a4c2948592ab970b86 (patch) | |
tree | a10a7357a88b888681f37a36a827a836acaa7827 /ImageGooglerForm.cs | |
parent | 6acdf173afa655042b4dba4bbb840cb422cad69e (diff) |
Fixes by HaTaX
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r-- | ImageGooglerForm.cs | 7 |
1 files changed, 5 insertions, 2 deletions
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();
|