Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check that a track's path exists before adding it

Web tracks don't have paths...
  • Loading branch information...
commit 20249043beea7b62a84340f1808512db3e77f6b9 1 parent e10c1dd
@jdelStrother authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 Album.m
View
7 Album.m
@@ -131,8 +131,11 @@ +(NSString*)pathOfTrack:(NSDictionary*)track
-(NSArray*)tracks
{
NSMutableArray* trackPaths = [NSMutableArray array];
- nsenumerat(tracks, track)
- [trackPaths addObject:[Album pathOfTrack:track]];
+ nsenumerat(tracks, track) {
+ NSString* path = [Album pathOfTrack:track];
+ if (path)
+ [trackPaths addObject:path];
+ }
return [[trackPaths copy] autorelease];
}
Please sign in to comment.
Something went wrong with that request. Please try again.