diff --git a/Spotify/EZBlocker.vbproj b/Spotify/EZBlocker.vbproj
index 83501d27..6715e482 100644
--- a/Spotify/EZBlocker.vbproj
+++ b/Spotify/EZBlocker.vbproj
@@ -13,7 +13,7 @@
EZBlocker
512
WindowsForms
- v4.0
+ v3.5
publish\
@@ -80,7 +80,6 @@
-
diff --git a/Spotify/Form1.vb b/Spotify/Form1.vb
index 382fe02a..2562b373 100644
--- a/Spotify/Form1.vb
+++ b/Spotify/Form1.vb
@@ -72,7 +72,7 @@ Public Class Form1
Private Sub checkUpdate()
Try
Dim latest As String = GetPage("http://www.ericzhang.me/dl/?file=EZBlocker-version.txt", "EZBlocker " & My.Application.Info.Version.ToString & " " & My.Computer.Info.OSFullName) 'Query for latest version
- If Double.Parse(latest) > Double.Parse(My.Application.Info.Version.ToString.Substring(0, 3)) Then
+ If Double.Parse(latest) > Double.Parse(My.Application.Info.Version.ToString.Replace(".", "")) Then
If MessageBox.Show("Your EZBlocker is out of date. Would you like to upgrade?", "EZBlocker", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = vbYes Then
Process.Start(website)
Me.Close()
@@ -125,7 +125,7 @@ Public Class Form1
Private Function Check() As Boolean ' Check to see if an ad is playing and add to block list
If autoAdd Then
Try
- Dim rArtist As String = GetPage("http://ws.spotify.com/search/1/artist?q=" & HttpUtility.UrlEncode(artist), "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0)") 'Query server for artist
+ Dim rArtist As String = GetPage("http://ws.spotify.com/search/1/artist?q=" & artist, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0)") 'Query server for artist
Using reader As XmlReader = XmlReader.Create(New StringReader(rArtist))
reader.ReadToFollowing("opensearch:totalResults") 'Get number of results
If reader.ReadElementContentAsInt() = 0 Then '0 results = ad
diff --git a/Spotify/My Project/AssemblyInfo.vb b/Spotify/My Project/AssemblyInfo.vb
index ebf176de..bd8ff0bf 100644
--- a/Spotify/My Project/AssemblyInfo.vb
+++ b/Spotify/My Project/AssemblyInfo.vb
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
'
-
-
+
+
diff --git a/Spotify/app.config b/Spotify/app.config
index 6b91abde..c345f3c2 100644
--- a/Spotify/app.config
+++ b/Spotify/app.config
@@ -20,4 +20,4 @@
-
+