public MSYoutubeEntry GetAsync(YoutubeUrl youtubeUrl, Uri uri, MSYoutubeLoading loading) { var feed = new MSYoutubeEntry { YoutubeUrl = youtubeUrl, NextPageUri = new Uri(uri + ((String.IsNullOrEmpty(uri.Query)) ? "?" : "&") + "start-index=1&max-results=40") }; _GetAsync(uri, feed, loading); return(feed); }
private void Browser_LoadCompleted(object sender, NavigationEventArgs e) { Url.Text = e.Uri.ToString(); MixpanelTrack("Navigated", new { Url = e.Uri.ToString(), Guid = _settings.ApplicationConfiguration.Guid }); _youtubeUrl = YoutubeUrl.Create(e.Uri); var doc = Browser.Document as IHTMLDocument3;; if (doc == null) { return; } var html = doc.documentElement.outerHTML; _youtubeEntry = YoutubeEntry.Create(e.Uri, html); Loading(); }