             })
     }
 }
-
-extension Future where Value == iTunes.SearchResults.Item {
-    func getAlbumArtwork() -> Future<UIImage> {
-        return chained(with: { item -> Future<UIImage> in
-            return item.artworkUrl100.getImage()
-        })
-    }
-}

    
    private func getLastFMArtwork() -> Future<UIImage> {
        return chained(with: { playcut -> Future<UIImage> in
            return playcut
                .getLastFMAlbum()
                .chained(with: { album -> Future<UIImage> in
                    guard let albumArt = album.image.last else {
                        throw LastFM.Errors.noAlbumArt
                    }

                    return albumArt.url.getImage()
                })
        })
    }
    

    }
}

extension Future where Value == iTunes.SearchResults.Item {
    func getAlbumArtwork() -> Future<UIImage> {
        return chained(with: { item -> Future<UIImage> in
            return item.artworkUrl100.getImage()
        })
    }
}

extension Future where Value == LastFM.Album {
    func getAlbumArtwork() -> Future<UIImage> {
        return chained(with: { album -> Future<UIImage> in
            guard let albumArt = album.image.last else {
                throw LastFM.Errors.noAlbumArt
            }
            
            return albumArt.url.getImage()
        })
    }
}
