Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
dreanor committed Nov 1, 2018
1 parent 454290c commit 968348d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions MediaGrabber/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private static void DownloadImages(Uri uri, string fileTypes)
{
using (WebClient webClient = new WebClient())
{
webClient.Headers.Add("User-Agent: Other");
var pageSource = webClient.DownloadString(uri);

string directory = uri.AbsolutePath.Substring(uri.AbsolutePath.LastIndexOf("/") + 1);
Expand Down
4 changes: 2 additions & 2 deletions MediaGrabber/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]

0 comments on commit 968348d

Please sign in to comment.