Commit 2ce64152 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Add missing sanity check

parent ba9b544c
......@@ -323,7 +323,7 @@
NSString *cacheDir = searchPaths[0];
cacheDir = [cacheDir stringByAppendingFormat:@"/%@", [[NSBundle mainBundle] bundleIdentifier]];
if (artist.length == 0 || albumname.length == 0) {
if ((artist.length == 0 || albumname.length == 0) && title != nil && title.length > 0) {
/* Use generated hash to find art */
artworkURL = [cacheDir stringByAppendingFormat:@"/art/arturl/%@/art.jpg", [self _md5FromString:title]];
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment