CUE Sheet input: Fix for regular cue sheets, and for existing URLs for embed supported tracks

CQTexperiment
Christopher Snowhill 2022-01-19 22:06:36 -08:00
parent 3bb57c7ca5
commit 244f896318
1 changed files with 4 additions and 5 deletions

View File

@ -97,7 +97,7 @@
//Kind of a hackish way of accessing outside classes.
source = [NSClassFromString(@"AudioSource") audioSourceForURL:trackUrl];
if (![source open:url]) {
if (![source open:trackUrl]) {
ALog(@"Could not open cuesheet source");
return NO;
}
@ -145,10 +145,9 @@
}
}
else {
NSURL *trackUrl = (embedded) ? baseURL : [track url];
//Kind of a hackish way of accessing outside classes.
source = [NSClassFromString(@"AudioSource") audioSourceForURL:trackUrl];
// Fix for embedded cuesheet handler parsing non-embedded files,
// or files that are already in the playlist without a fragment
source = [NSClassFromString(@"AudioSource") audioSourceForURL:url];
if (![source open:url]) {
ALog(@"Could not open cuesheet source");