/// <summary> /// Gets the url /// </summary> /// <returns></returns> public override DownloadObject GetDownloadObject(int selectedIndex) { string jsonMP4; using (WebClient wc = new WebClient()) { //Last bit not actually needed but whatever, it uses android on the app jsonMP4 = wc.DownloadString(jsonMP4Url + episodesS3.resposta.items.item[selectedIndex].id + "&profile=pc"); } JavaScriptSerializer jss = new JavaScriptSerializer(); dlJSON = jss.Deserialize <Super3Json>(jsonMP4); return(new DownloadObject(dlJSON.media.url, GetSubtitles(), Country.Spain, DownloadMethod.HTTP)); }
public override void CleanEpisodes() { episodesS3 = null; dlJSON = null; }