Exemplo n.º 1
0
        protected override void ParseCookies(string SetCookie)
        {
            if (SetCookie == null)
            {
                return;
            }
            List <string> Cookies = new List <string>();
            var           values  = SetCookie.Split(new char[] { ',', ';' }).ToList();

            foreach (var item in values)
            {
                if (item.IndexOf('=') < 0)
                {
                    continue;
                }
                string key   = item.Split('=')[0];
                string value = item.Split('=')[1];
                if (key == "__cfduid" || key == "PHPSESSID" || key == "existmag")
                {
                    Cookies.Add(key + "=" + value);
                }
            }
            string cookie = string.Join(";", Cookies);

            if (VedioType == VedioType.欧美)
            {
                JvedioServers.BusEurope.Cookie = cookie;
            }
            else
            {
                JvedioServers.Bus.Cookie = cookie;
            }
            JvedioServers.Save();
        }
Exemplo n.º 2
0
        protected override void ParseCookies(string SetCookie)
        {
            if (SetCookie == null)
            {
                return;
            }
            List <string> Cookies = new List <string>();
            var           values  = SetCookie.Split(new char[] { ',', ';' }).ToList();

            foreach (var item in values)
            {
                if (item.IndexOf('=') < 0)
                {
                    continue;
                }
                string key   = item.Split('=')[0];
                string value = item.Split('=')[1];
                if (key == "__cfduid" || key == "is_loyal")
                {
                    Cookies.Add(key + "=" + value);
                }
            }
            string cookie = string.Join(";", Cookies);

            JvedioServers.Jav321.Cookie = cookie;
            JvedioServers.Save();
        }
Exemplo n.º 3
0
        public void Reset()
        {
            //读取配置文件
            ScanPath = new ObservableCollection <string>();
            foreach (var item in ReadScanPathFromConfig(DataBase))
            {
                ScanPath.Add(item);
            }
            if (ScanPath.Count == 0)
            {
                ScanPath = null;
            }
            GlobalVariable.InitVariable();
            Servers = new ObservableCollection <Server>();

            Type type = JvedioServers.GetType();

            foreach (var item in type.GetProperties())
            {
                System.Reflection.PropertyInfo propertyInfo = type.GetProperty(item.Name);
                Server server = (Server)propertyInfo.GetValue(JvedioServers);
                if (server.Url != "")
                {
                    Servers.Add(server);
                }
            }
        }
Exemplo n.º 4
0
        protected override void ParseCookies(string SetCookie)
        {
            if (SetCookie == null)
            {
                return;
            }
            if (JvedioServers.FC2.Cookie != "")
            {
                return;
            }
            List <string> Cookies = new List <string>();
            var           values  = SetCookie.Split(new char[] { ',', ';' }).ToList();

            foreach (var item in values)
            {
                if (item.IndexOf('=') < 0)
                {
                    continue;
                }
                string key   = item.Split('=')[0];
                string value = item.Split('=')[1];
                if (key == "CONTENTS_FC2_PHPSESSID" || key == "contents_mode" || key == "contents_func_mode")
                {
                    Cookies.Add(key + "=" + value);
                }
            }
            string cookie = string.Join(";", Cookies);

            JvedioServers.FC2.Cookie = cookie;
            JvedioServers.Save();
        }
Exemplo n.º 5
0
        protected override void ParseCookies(string SetCookie)
        {
            if (string.IsNullOrEmpty(SetCookie))
            {
                return;
            }
            List <string> Cookies = new List <string>();
            var           values  = SetCookie.Split(new char[] { ',', ';' }).ToList();

            foreach (var item in values)
            {
                if (item.IndexOf('=') < 0)
                {
                    continue;
                }
                string key   = item.Split('=')[0];
                string value = item.Split('=')[1];
                if (key == "__cfduid" || key == "__qca")
                {
                    Cookies.Add(key + "=" + value);
                }
            }
            Cookies.Add("over18=18");
            string cookie = string.Join(";", Cookies);

            JvedioServers.Library.Cookie = cookie;
            JvedioServers.Save();
        }