[Plugin Controller] Add Cue sheet safety check
If somehow a plugin doesn't load, skip cuesheet should skip it anyway, as we don't want any recursive loops. Signed-off-by: Christopher Snowhill <kode54@gmail.com>lastfm
parent
99f15679a6
commit
70b01a7cf1
|
@ -630,6 +630,10 @@ static NSString *xmlEscapeString(NSString * string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(skip && [classString isEqualToString:@"CueSheetDecoder"]) {
|
||||||
|
classString = @"SilenceDecoder";
|
||||||
|
}
|
||||||
|
|
||||||
Class decoder = NSClassFromString(classString);
|
Class decoder = NSClassFromString(classString);
|
||||||
|
|
||||||
return [[decoder alloc] init];
|
return [[decoder alloc] init];
|
||||||
|
@ -671,6 +675,10 @@ static NSString *xmlEscapeString(NSString * string) {
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(skip && [classString isEqualToString:@"CueSheetMetadataReader"]) {
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
Class metadataReader = NSClassFromString(classString);
|
Class metadataReader = NSClassFromString(classString);
|
||||||
|
|
||||||
cacheData = [metadataReader metadataForURL:url];
|
cacheData = [metadataReader metadataForURL:url];
|
||||||
|
|
Loading…
Reference in New Issue