M Sonar/API Client/BRSonicAPISong.h => Sonar/API Client/BRSonicAPISong.h +1 -1
@@ 19,7 19,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong) NSString *coverArt;
@property (nonatomic, strong) NSString *contentType;
@property (nonatomic, strong) NSString *suffix;
-@property (nonatomic, strong) NSString *bitRate;
+@property (nonatomic, assign) NSInteger bitRate;
@property (nonatomic, strong) NSString *path;
@property (nonatomic, strong) NSString *albumId;
@property (nonatomic, strong) NSString *artistId;
M Sonar/API Client/BRSonicAPISong.m => Sonar/API Client/BRSonicAPISong.m +1 -1
@@ 21,7 21,7 @@
self.coverArt = [[element attributeForName:@"coverArt"] stringValue];
self.contentType = [[element attributeForName:@"contentType"] stringValue];
self.suffix = [[element attributeForName:@"suffix"] stringValue];
- self.bitRate = [[element attributeForName:@"bitRate"] stringValue];
+ self.bitRate = [[[element attributeForName:@"bitRate"] stringValue] integerValue];
self.path = [[element attributeForName:@"path"] stringValue];
self.albumId = [[element attributeForName:@"albumId"] stringValue];
self.artistId = [[element attributeForName:@"artistId"] stringValue];
M Sonar/MediaDB/Song.h => Sonar/MediaDB/Song.h +1 -1
@@ 21,7 21,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong) NSURL *coverArtURL;
@property (nonatomic, strong) NSString *contentType;
@property (nonatomic, strong) NSString *suffix;
-@property (nonatomic, strong) NSString *bitRate;
+@property (nonatomic, assign) NSInteger bitRate;
@property (nonatomic, strong) NSString *path;
@property (nonatomic, strong) NSURL *streamURL;
M Sonar/Player/PlayerWindowController.m => Sonar/Player/PlayerWindowController.m +1 -1
@@ 609,7 609,7 @@ typedef enum : NSUInteger {
} else if ([[tableColumn identifier] isEqualToString:@"artist"]) {
return song.artist;
} else if ([[tableColumn identifier] isEqualToString:@"bitRate"]) {
- return song.bitRate;
+ return @(song.bitRate);
} else if ([[tableColumn identifier] isEqualToString:@"contentType"]) {
return song.contentType;
} else if ([[tableColumn identifier] isEqualToString:@"starred"]) {