                         })
                     }
                     if type == "image" && !content.hasSuffix("play_music_headphones_logo.png") {
-                        if let imageURL = NSURL(string: content) {
-                            NSLog("\(content)")
-                            session.dataTaskWithURL(imageURL) { (data, response, error) -> Void in
-                                if let data = data {
-                                    self.albumImageData = data
-                                    let image = UIImage(data: data)
-                                    dispatch_async(dispatch_get_main_queue(), { () -> Void in
-                                        self.hasImage = true
-                                        self.previewView.image = image
-                                        self.updateRemaining()
-                                    })
-                                }
-                                }.resume()
+                        if let imageURLComponents = NSURLComponents(string: content) {
+                            imageURLComponents.scheme = "https"
+                            if let imageURL = imageURLComponents.URL {
+                                session.dataTaskWithURL(imageURL) { (data, response, error) -> Void in
+                                    if let data = data {
+                                        self.albumImageData = data
+                                        let image = UIImage(data: data)
+                                        dispatch_async(dispatch_get_main_queue(), { () -> Void in
+                                            self.hasImage = true
+                                            self.previewView.image = image
+                                            self.updateRemaining()
+                                        })
+                                    }
+                                    }.resume()
+                            }
                         }
                     }
                 }

    }

    func loadGoogleMusicInfo() {
        if !contentText.hasPrefix("https://play.google.com/music/m/") {
            return
        }
        guard let musicURL = NSURL(string: encodeGoogleMusicURL(self.contentText)) else {

        let range = string.rangeOfString("=")
        if range.location != NSNotFound {
            if let query = string.substringFromIndex(range.location + 1).stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet()) {
                return string.substringToIndex(range.location + 1) + query + "&hl=en"
            }
        }
        return string as String
