From 06378252c0ae53ca84a0a8822bdf0cb6f6a2eb31 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Fri, 11 Oct 2013 05:41:36 -0700 Subject: [PATCH] Fixed adding single contained entry to playlist for cue, dumb, and gme containers --- Plugins/CueSheet/CueSheetContainer.m | 5 +++++ Plugins/Dumb/DumbContainer.m | 5 +++++ Plugins/GME/GameContainer.m | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/Plugins/CueSheet/CueSheetContainer.m b/Plugins/CueSheet/CueSheetContainer.m index 2f279e1c8..5d00b7c3a 100644 --- a/Plugins/CueSheet/CueSheetContainer.m +++ b/Plugins/CueSheet/CueSheetContainer.m @@ -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]]; diff --git a/Plugins/Dumb/DumbContainer.m b/Plugins/Dumb/DumbContainer.m index 5d5f70a55..ba063188d 100755 --- a/Plugins/Dumb/DumbContainer.m +++ b/Plugins/Dumb/DumbContainer.m @@ -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 source = [audioSourceClass audioSourceForURL:url]; diff --git a/Plugins/GME/GameContainer.m b/Plugins/GME/GameContainer.m index 9a22498f8..9105a6d80 100755 --- a/Plugins/GME/GameContainer.m +++ b/Plugins/GME/GameContainer.m @@ -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 source = [audioSourceClass audioSourceForURL:url];