示例#1
0
        public List <Page> GetPageList(string chapterUrl)
        {
            List <Dictionary <string, string> > results = new List <Dictionary <string, string> >();

            if (CommonSettings.AppMode == AppMode.BETA || CommonSettings.AppMode == AppMode.PROD)
            {
                try
                {
                    results = new BotCrawler <List <Dictionary <string, string> > >(site).Invoke(scriptClassName, "GetPageList", new object[] { chapterUrl });
                }
                catch { }
            }

            if (results.Count == 0)
            {
                results = new MethodInvoker <List <Dictionary <string, string> > >().Invoke(scriptClassName, "GetPageList", new object[] { chapterUrl });
            }

            return(DictionaryToList.ToPageList(site, results));
        }
示例#2
0
        public List <Manga> GetMangaList(int pageIndex)
        {
            List <Dictionary <string, string> > results = new List <Dictionary <string, string> >();

            if (CommonSettings.AppMode == AppMode.BETA || CommonSettings.AppMode == AppMode.PROD)
            {
                try
                {
                    results = new BotCrawler <List <Dictionary <string, string> > >(site).Invoke(scriptClassName, "GetMangaList", new object[] { pageIndex });
                }
                catch { }
            }

            if (results.Count == 0)
            {
                results = new MethodInvoker <List <Dictionary <string, string> > >().Invoke(scriptClassName, "GetMangaList", new object[] { pageIndex });
            }

            return(DictionaryToList.ToMangaList(domain, site, results));
        }