Notifications: Fix so it supports external artwork, and also fix a crash where invalid embedded artwork would cause it to crash
parent
981827309c
commit
fc70e0e8b4
|
@ -189,7 +189,7 @@ typedef NS_ENUM(NSInteger, TrackStatus) { TrackPlaying, TrackPaused, TrackStoppe
|
||||||
content.categoryIdentifier = @"play";
|
content.categoryIdentifier = @"play";
|
||||||
|
|
||||||
if ([defaults boolForKey:@"notifications.show-album-art"] &&
|
if ([defaults boolForKey:@"notifications.show-album-art"] &&
|
||||||
[pe albumArtInternal]) {
|
[pe albumArt]) {
|
||||||
NSError *error = nil;
|
NSError *error = nil;
|
||||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||||
NSURL *tmpSubFolderURL = [[NSURL fileURLWithPath:NSTemporaryDirectory()]
|
NSURL *tmpSubFolderURL = [[NSURL fileURLWithPath:NSTemporaryDirectory()]
|
||||||
|
|
Loading…
Reference in New Issue