Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion LBYouTubeView/LBYouTubeExtractor.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ -(NSURL*)extractYouTubeURLFromFile:(NSString *)html error:(NSError *__autoreleas

// Check the signature:
if ([sigs count] > 0) {
sigCheckingResult = [sigs objectAtIndex:index];
unsigned int idx = MIN(index,sigs.count-1);
sigCheckingResult = [sigs objectAtIndex:idx];
NSString* encrSyg = [string substringWithRange:sigCheckingResult.range];

sig_regex = [[NSRegularExpression alloc] initWithPattern:@"(?<=sig\\\\\": \\\\\")[^\"]*?(?=\\\\\")" options:NSRegularExpressionCaseInsensitive error:nil];
Expand Down