From 208bf19acea094e29898c4984d0894536e23d000 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 12 Oct 2013 19:46:25 -0700 Subject: [PATCH] Fixed track length/fade times in the event that someone has files with multiple values for those fields --- Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm index c065cb4fe..2206d8b0b 100644 --- a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm +++ b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm @@ -195,7 +195,8 @@ struct psf_info_meta_state static int parse_time_crap(NSString * value) { - NSArray *components = [value componentsSeparatedByString:@":"]; + NSArray *crapFix = [value componentsSeparatedByString:@"\n"]; + NSArray *components = [[crapFix objectAtIndex:0] componentsSeparatedByString:@":"]; float totalSeconds = 0; float multiplier = 1000;