Example #1
0
        public async Task updateInfoFromESOnline()
        {
            if (erogameScapeID > 0)
            {
                var document = await NetworkUtility.GetHtmlDocument("http://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/game.php?game=" + erogameScapeID);

                Title = document.GetElementById("soft-title").GetElementsByTagName("span")[0].InnerText;
                Brand = document.GetElementById("brand").GetElementsByTagName("td")[0].InnerText;
                string saleday = document.GetElementById("sellday").GetElementsByTagName("td")[0].InnerText;
                SaleDay = DateTime.ParseExact(saleday, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
            }
        }
Example #2
0
        public async Task updateInfoFromESOnline()
        {
            if (erogameScapeID > 0)
            {
                var uri = "http://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/game.php?game=" + erogameScapeID;
                if (Properties.Settings.Default.useGoogleCache)
                {
                    uri = "https://webcache.googleusercontent.com/search?q=cache:" + HttpUtility.UrlEncode(uri) + "&strip=1";
                }
                var document = await NetworkUtility.GetHtmlDocument(uri);

                Title = HttpUtility.HtmlDecode(document.GetElementbyId("game_title").InnerText);
                Brand = HttpUtility.HtmlDecode(document.GetElementbyId("brand").Descendants("td").First().InnerText);
                string saleday = HttpUtility.HtmlDecode(document.GetElementbyId("sellday").Descendants("td").First().InnerText);
                SaleDay = DateTime.ParseExact(saleday, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
            }
        }