Example #1
0
        public override DownloadObject GetDownloadObject(int selectedIndex)
        {
            string url = "http://api.play-backend.iprima.cz/api/v1/products/id-" + epiListObj.result[0].result[selectedIndex].id + "/play/";
            string dlJson;

            using (WebClient wc = new WebClient())
            {
                wc.Encoding = System.Text.Encoding.UTF8;
                dlJson      = wc.DownloadString(url);
            }
            JavaScriptSerializer jss         = new JavaScriptSerializer();
            PrimaJson            episodeInfo = jss.Deserialize <PrimaJson>(dlJson);
            CUNetworkAssist      cuna        = new CUNetworkAssist();
            string m3u8 = cuna.GetHighestM3U8Address(episodeInfo.streamInfos[0].url);

            return(new DownloadObject(m3u8, GetSubtitles(), Country.Czech, DownloadMethod.HLS));
        }
Example #2
0
        public override DownloadObject GetDownloadObject(int selectedIndex)
        {
            CUNetworkAssist cuA = new CUNetworkAssist();

            return(new DownloadObject(cuA.GetHighestM3U8Address(episodes.show.episodes[selectedIndex].videoRenditions.videoCloud.hlsUrl), GetSubtitles(), Country.NewZealand, DownloadMethod.HLS));
        }