Ticket #341: 341.diff

File 341.diff, 597 bytes (added by wazza, 5 years ago)
  • NSFileManager-Extensions.m

     
    119119        if([name isEqualToString:@"Cover Art"]) 
    120120                return NO; 
    121121         
    122         return ([allExtensions containsObject:[path pathExtension]] || [self isDirectory:path]); 
     122        BOOL isDir = NO; 
     123        return ([allExtensions containsObject:[path pathExtension]] || ([self fileExistsAtPath:path isDirectory:&isDir] && isDir)); 
    123124} 
    124125 
    125126+ (NSString *)previewArtPathForTV:(NSString *)show season:(unsigned int)seasonNum