diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-04-15 20:03:40 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-04-15 20:03:40 +0300 |
commit | 90b1573694b82da2046476afd9517027d6381a8d (patch) | |
tree | fcf97a4e03f0be16b80ff62b93706f03b5c3a165 /ImageGooglerForm.cs | |
parent | 9daec8b17aba72115ffd4a92a3af5b404fb3a78b (diff) |
Some fixes
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r-- | ImageGooglerForm.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ImageGooglerForm.cs b/ImageGooglerForm.cs index bba4760f..92fc2507 100644 --- a/ImageGooglerForm.cs +++ b/ImageGooglerForm.cs @@ -24,7 +24,8 @@ namespace com.clusterrr.hakchi_gui public ImageGooglerForm(NesMiniApplication app)
{
InitializeComponent();
- Text = "Google Images - " + app.Name ?? "";
+ if (!string.IsNullOrEmpty(app.Name))
+ Text += " - " + app.Name;
searchThread = new Thread(SearchThread);
searchThread.Start(app);
}
@@ -32,7 +33,7 @@ namespace com.clusterrr.hakchi_gui public static string[] GetImageUrls(NesMiniApplication app)
{
string query = app.Name ?? "";
- query += " " + app.GoogleSuffix + " (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);
|