Exemplo n.º 1
0
        public static void EncodeUrl(this VideosSource vs)
        {
            if (vs == null)
            {
                return;
            }
            List <string> urls = new List <string>();

            foreach (var url in vs.AcUrl)
            {
                var ep = Utils.ACAESENCODE(url.SidData.Sid + "_" + url.SidData.FileId + "_" + url.SidData.Token, "zx26mfbsuebv72ja");
                ep = Uri.EscapeDataString(ep);
                var str = url.url + "&ep=" + ep + "&hd=2&oip=" + url.SidData.Oip + "&sid=" + url.SidData.Sid + "&token=" + url.SidData.Token + "&ctype=87&ev=1&did=" + DetailsPage.did;
                urls.Add(str);
            }
            vs.RealUrl = urls;

            for (int i = 0; i < urls.Count; i++)
            {
                vs.AcUrl[i].url = urls[i];
            }
        }