Fixed adding single contained entry to playlist for cue, dumb, and gme containers
parent
d98b5549d1
commit
06378252c0
|
@ -29,6 +29,11 @@
|
||||||
return [NSArray array];
|
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];
|
NSMutableArray *tracks = [NSMutableArray array];
|
||||||
|
|
||||||
CueSheet *cuesheet = [CueSheet cueSheetWithFile:[url path]];
|
CueSheet *cuesheet = [CueSheet cueSheetWithFile:[url path]];
|
||||||
|
|
|
@ -42,6 +42,11 @@ int scanCallback(void *data, int startOrder, long length)
|
||||||
|
|
||||||
+ (NSArray *)urlsForContainerURL:(NSURL *)url
|
+ (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 audioSourceClass = NSClassFromString(@"AudioSource");
|
||||||
id<CogSource> source = [audioSourceClass audioSourceForURL:url];
|
id<CogSource> source = [audioSourceClass audioSourceForURL:url];
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
//This really should be source...
|
//This really should be source...
|
||||||
+ (NSArray *)urlsForContainerURL:(NSURL *)url
|
+ (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 audioSourceClass = NSClassFromString(@"AudioSource");
|
||||||
id<CogSource> source = [audioSourceClass audioSourceForURL:url];
|
id<CogSource> source = [audioSourceClass audioSourceForURL:url];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue