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-02-22 17:47:06 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-02-22 17:47:06 +0300
commitd35f4af1e05434aacc644e4731e730d8bedfdfdb (patch)
treee51fa40dd40b583c91fc8ef5f818e8bdec13856c /ImageGooglerForm.cs
parent1f1b664ee2edc43e99437dff1dd840398f8c8cf7 (diff)
Refactoring
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r--ImageGooglerForm.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/ImageGooglerForm.cs b/ImageGooglerForm.cs
index 48e2f8b3..bba4760f 100644
--- a/ImageGooglerForm.cs
+++ b/ImageGooglerForm.cs
@@ -32,12 +32,7 @@ namespace com.clusterrr.hakchi_gui
public static string[] GetImageUrls(NesMiniApplication app)
{
string query = app.Name ?? "";
- if (app is NesGame)
- query += " nes|famicom box art";
- else if (app is FdsGame)
- query += " fds box art";
- else
- query += " game (box|cover) art";
+ query += " " + app.GoogleSuffix + " (box|cover) art";
var url = string.Format("https://www.google.com/search?q={0}&source=lnms&tbm=isch", HttpUtility.UrlEncode(query));
Debug.WriteLine("Web request: " + url);
var request = WebRequest.Create(url);