I have a YouTube downloader that needs to show the current URL that user is on in order to download the video. It updates the url for other sites e.g: Apple.com, Google.com, Facebook.com and Cnn.com etc... But it does not do that for YouTube
This is my code btw.
Can someone help me?
This is my code btw.
Can someone help me?
Code:
- (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame{
// Only report feedback for the main frame.
if (frame == [sender mainFrame]){
[progresspageindi startAnimation:progresspageindi];
[webPageLoadingIndicator startAnimation:webPageLoadingIndicator];
NSString *url = [[[[frame provisionalDataSource] request] URL] absoluteString];
//Update URL
[urlTextField setStringValue:url];
}
}