Notifications: Fix so it supports external artwork, and also fix a crash where invalid embedded artwork would cause it to crash

CQTexperiment
Christopher Snowhill 2021-08-07 15:09:36 -07:00
parent 981827309c
commit fc70e0e8b4
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ typedef NS_ENUM(NSInteger, TrackStatus) { TrackPlaying, TrackPaused, TrackStoppe
content.categoryIdentifier = @"play";
if ([defaults boolForKey:@"notifications.show-album-art"] &&
[pe albumArtInternal]) {
[pe albumArt]) {
NSError *error = nil;
NSFileManager *fileManager = [NSFileManager defaultManager];
NSURL *tmpSubFolderURL = [[NSURL fileURLWithPath:NSTemporaryDirectory()]