[Play Counts] Now correctly reports last seen time
Correctly reports last seen time, instead of reporting the first seen time twice. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
1c36869e57
commit
a0a5106e51
|
@ -539,7 +539,7 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path) {
|
|||
dateFormatter.timeStyle = NSDateFormatterShortStyle;
|
||||
|
||||
if(pc.count) {
|
||||
return [NSString stringWithFormat:@"%@: %@\n%@: %@", NSLocalizedStringFromTableInBundle(@"TimeFirstSeen", nil, [NSBundle bundleForClass:[self class]], @""), [dateFormatter stringFromDate:pc.firstSeen], NSLocalizedStringFromTableInBundle(@"TimeLastPlayed", nil, [NSBundle bundleForClass:[self class]], @""), [dateFormatter stringFromDate:pc.firstSeen]];
|
||||
return [NSString stringWithFormat:@"%@: %@\n%@: %@", NSLocalizedStringFromTableInBundle(@"TimeFirstSeen", nil, [NSBundle bundleForClass:[self class]], @""), [dateFormatter stringFromDate:pc.firstSeen], NSLocalizedStringFromTableInBundle(@"TimeLastPlayed", nil, [NSBundle bundleForClass:[self class]], @""), [dateFormatter stringFromDate:pc.lastPlayed]];
|
||||
} else {
|
||||
return [NSString stringWithFormat:@"%@: %@", NSLocalizedStringFromTableInBundle(@"TimeFirstSeen", nil, [NSBundle bundleForClass:[self class]], @""), [dateFormatter stringFromDate:pc.firstSeen]];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue