diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-22 17:47:06 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-22 17:47:06 +0300 |
commit | d35f4af1e05434aacc644e4731e730d8bedfdfdb (patch) | |
tree | e51fa40dd40b583c91fc8ef5f818e8bdec13856c /ImageGooglerForm.cs | |
parent | 1f1b664ee2edc43e99437dff1dd840398f8c8cf7 (diff) |
Refactoring
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r-- | ImageGooglerForm.cs | 7 |
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);
|