Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-13 13:23:03 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-13 13:23:03 +0300
commit435b1d6a36693ba321d017b305c09f251995f0be (patch)
treeed8a8c8d11f12eb782101f12606fbcf73ee4598e /ImageGooglerForm.cs
parent09226d2df54a48f50b2ae34ac543e5079458ec96 (diff)
Google Image search fix
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r--ImageGooglerForm.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/ImageGooglerForm.cs b/ImageGooglerForm.cs
index c4035f22..edbbca01 100644
--- a/ImageGooglerForm.cs
+++ b/ImageGooglerForm.cs
@@ -46,9 +46,16 @@ namespace com.clusterrr.hakchi_gui
reader.Close();
response.Close();
var urls = new List<string>();
- string search = @"imgurl=(.*?)&";
+
+ string search = @"\""ou\""\:\""(?<url>.+?)\""";
MatchCollection matches = Regex.Matches(responseFromServer, search);
+ foreach (Match match in matches)
+ {
+ urls.Add(match.Groups[1].Value);
+ }
+ search = @"imgurl=(.*?)&";
+ matches = Regex.Matches(responseFromServer, search);
foreach (Match match in matches)
{
urls.Add(match.Groups[1].Value);