From e179efc395ea8f287a9a9acb1b4b1398e92e24ce Mon Sep 17 00:00:00 2001 From: SoneeJohn Date: Sun, 27 Dec 2015 10:57:34 -0400 Subject: [PATCH] Change `streamURLs` to contain NSURLs instead of NSStrings --- YTVimeoExtractor/YTVimeoVideo.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YTVimeoExtractor/YTVimeoVideo.m b/YTVimeoExtractor/YTVimeoVideo.m index beddfbf..01bdfc5 100644 --- a/YTVimeoExtractor/YTVimeoVideo.m +++ b/YTVimeoExtractor/YTVimeoVideo.m @@ -72,11 +72,12 @@ - (void)extractVideoInfoWithCompletionHandler:(void (^)(NSError *error))completi NSInteger quality = [[info valueForKey:@"quality"]integerValue]; NSString *urlString = info[@"url"]; + NSURL *url = [NSURL URLWithString:urlString]; //Only if the file is playable on OS X or iOS natively if([urlString rangeOfString:@".mp4"].location != NSNotFound){ - streamURLs[@(quality)] = urlString; + streamURLs[@(quality)] = url; } }