Example #1
0
 static void T1()
 {
     do
     {
         var collection = new DataAcquisitionLib.GaoQingCollection();
         collection.CollectionMovies(Model.GaoQing.Family.电影);
         collection.CollectionMovies(Model.GaoQing.Family.电视剧);
         Console.WriteLine("休息2个小时...");
         System.Threading.Thread.Sleep(1000 * 60 * 60 * 2);
     } while (true);
 }
Example #2
0
        static void T2()
        {
            BLL.GaoQing.Movie_BLL bll = new BLL.GaoQing.Movie_BLL();
            var collection            = new DataAcquisitionLib.GaoQingCollection();

            collection.CollectionMovieInfo(40390, "fa635b901ee1");

            do
            {
                var list = bll.GetFullHashAndID();
                list.ForEach(m =>
                {
                    collection.CollectionMovieInfo(m.ID, m.Hash);
                });
            } while (true);
        }
Example #3
0
        static void T3()
        {
            BLL.GaoQing.Movie_BLL bll = new BLL.GaoQing.Movie_BLL();
            var collection            = new DataAcquisitionLib.GaoQingCollection();

            do
            {
                int page     = 1;
                int pageSize = 100;
                int maxPage  = 9;
                do
                {
                    var pageObj = bll.GetFullHashAndIDByPage(page, pageSize, null);
                    maxPage = (int)pageObj.TotalPages;
                    var list = pageObj.Items;
                    list.ForEach(m =>
                    {
                        collection.CollectionMovieInfo(m.ID, m.Hash);
                    });
                    page++;
                } while (page <= maxPage);
            } while (true);
        }