Merge pull request #37 from JimmyAppelt/master

Added AlbumResource Check
This commit is contained in:
Jonas Dellinger 2015-09-19 15:21:06 +02:00
commit cd4eddf288

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;