Permalink
Browse files

Removed ugly URL to path hack

  • Loading branch information...
1 parent 0735010 commit 64f7a7e42507e79027cae1fd14d8dd7f1cc0c6b2 @kallepersson kallepersson committed Feb 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 AppDelegate.m
View
@@ -60,8 +60,7 @@ - (void)loadMusic:(NSURL *) fileURL {
music = [m initWithContentsOfURL:fileURL byReference:YES];
double maxValue = [music duration];
- NSString * trackFilePath = [fileURL absoluteString];
- trackFilePath = [trackFilePath stringByReplacingOccurrencesOfString:@"file://localhost" withString:@""];
+ NSString * trackFilePath = [fileURL path];
NSArray *metadataArray = [metadataRetriever getMetadataForFile:trackFilePath];
[currentTrackLabel setStringValue:[NSString stringWithFormat:@"%@\n%@",[metadataArray objectAtIndex:1],[metadataArray objectAtIndex:0]]];

0 comments on commit 64f7a7e

Please sign in to comment.