Commit 2f3a72de authored by Victor Gama's avatar Victor Gama Committed by Carola Nitz

Replace stringByAddingPercentEscapesUsingEncoding (Fix #111)

Signed-off-by: default avatarCarola Nitz <nitz.carola@googlemail.com>
parent 69b1d58b
......@@ -91,7 +91,7 @@
_duration = dictionary[@"duration"];
NSString *subtitleURLString = dictionary[@"pathSubtitle"];
if ([subtitleURLString isEqualToString:@"(null)"]) subtitleURLString = nil;
subtitleURLString = [subtitleURLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
subtitleURLString = [subtitleURLString stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLHostAllowedCharacterSet];
_subtitleURL = subtitleURLString.length ? [NSURL URLWithString:subtitleURLString] : nil;
_URL = [NSURL URLWithString:dictionary[@"pathfile"]];
_container = NO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment