From 35a3511ee52f3d73fe0f6ccd9bd2c466661f7cc8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Lindstr=C3=B6m?= <hugolm84@gmail.com>
Date: Wed, 20 Feb 2013 16:36:36 +0100
Subject: [PATCH] SpotifyParse fix

---
 src/libtomahawk/utils/SpotifyParser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libtomahawk/utils/SpotifyParser.cpp b/src/libtomahawk/utils/SpotifyParser.cpp
index 4219d804a..2076fb8a1 100644
--- a/src/libtomahawk/utils/SpotifyParser.cpp
+++ b/src/libtomahawk/utils/SpotifyParser.cpp
@@ -81,7 +81,7 @@ SpotifyParser::lookupUrl( const QString& rawLink )
     QString link = rawLink;
     if ( link.contains( "open.spotify.com/" ) ) // convert to a URI
     {
-        link.replace( "http://open.spotify.com/", "" );
+        link.replace( "http://", "" ).replace( "open.spotify.com/", "" );
         link.replace( "/", ":" );
         link = "spotify:" + link;
     }