Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
* Length field formatted as time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilalh committed Jul 6, 2013
1 parent 0a73c6e commit 6413ac3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Version 1.7 Beta (Sat 06 Jul 2013)
* Renaming Tracks using a user specified list of names
* Allow searching for a album using an URL
* Support rarer languages such as English (Official) and English (Localized)
* Length field formatted as time
* Length field formatted as time.
* ISRC field

### Improvements ###
Expand Down
3 changes: 1 addition & 2 deletions Classes/Main/MainController.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ - (IBAction)onClick:(id)sender

- (NSString *)stringFromSeconds:(NSInteger)oseconds
{
oseconds = oseconds / 100;
if (oseconds<60){
return([NSString stringWithFormat:@"00:%02zd",oseconds]);
}
Expand Down Expand Up @@ -299,7 +298,7 @@ - (id) tableView:(NSTableView *)aTableView
return @"";

}else if ([[aTableColumn identifier] isEqualToString:@"length"]){
return [self stringFromSeconds:node.tags.length];
return [self stringFromSeconds:[node.tags.length integerValue]];
}else if ([[aTableColumn identifier] isEqualToString:@"size"]){
return [self stringFromFileSize:[[node size] integerValue]];
}
Expand Down

0 comments on commit 6413ac3

Please sign in to comment.