Exemplo n.º 1
0
        private async Task <bool> GetRealUrl(VideoDetail vd)
        {
            try
            {
                var        url  = GetEncodeUrl(vd.SourceId);
                HttpEngine he   = new HttpEngine();
                var        data = await he.Get(url);

                var reader = new StreamReader(data.AsStreamForRead());
                var str    = reader.ReadToEnd();
                var objc   = Newtonsoft.Json.Linq.JObject.Parse(str);
                var keystr = objc["data"].ToString();
                var destr  = Utils.ACAESDecode(keystr, "qwer3as2jin4fdsa");
                GetPlayUrlNotEncode(destr);
            }
            catch (Exception ex)
            {
                return(false);
            }
            return(true);
        }