Added AlbumResource Check

This commit is contained in:
Jimmy Appelt 2015-09-18 02:55:41 +02:00
parent d8e3238f09
commit 7f8f085f42

View File

@ -28,7 +28,7 @@ namespace SpotifyAPI.Local.Models
/// <returns>A String, which is the URL to the Albumart</returns> /// <returns>A String, which is the URL to the Albumart</returns>
public String GetAlbumArtUrl(AlbumArtSize size) public String GetAlbumArtUrl(AlbumArtSize size)
{ {
if (AlbumResource.Uri == null || AlbumResource.Uri.Contains("local")) if (AlbumResource.Uri == null || AlbumResource.Uri.Contains("local") || AlbumResource.Uri.Contains("spotify:album:0000000000000000000000"))
return ""; return "";
int albumsize = 0; int albumsize = 0;