Fixed adding single contained entry to playlist for cue, dumb, and gme containers

CQTexperiment
Chris Moeller 2013-10-11 05:41:36 -07:00
parent d98b5549d1
commit 06378252c0
3 changed files with 15 additions and 0 deletions

View File

@ -29,6 +29,11 @@
return [NSArray array];
}
if ([url fragment]) {
// input url already has fragment defined - no need to expand further
return [NSMutableArray arrayWithObject:url];
}
NSMutableArray *tracks = [NSMutableArray array];
CueSheet *cuesheet = [CueSheet cueSheetWithFile:[url path]];

View File

@ -42,6 +42,11 @@ int scanCallback(void *data, int startOrder, long length)
+ (NSArray *)urlsForContainerURL:(NSURL *)url
{
if ([url fragment]) {
// input url already has fragment defined - no need to expand further
return [NSMutableArray arrayWithObject:url];
}
id audioSourceClass = NSClassFromString(@"AudioSource");
id<CogSource> source = [audioSourceClass audioSourceForURL:url];

View File

@ -29,6 +29,11 @@
//This really should be source...
+ (NSArray *)urlsForContainerURL:(NSURL *)url
{
if ([url fragment]) {
// input url already has fragment defined - no need to expand further
return [NSMutableArray arrayWithObject:url];
}
id audioSourceClass = NSClassFromString(@"AudioSource");
id<CogSource> source = [audioSourceClass audioSourceForURL:url];