public void getAllPage() {
		// TODO Auto-generated method stub
		
		for(int i=0;i<pagenum;i ++){
			System.out.println("begin deal the "+i+" th page in tv");
			
			StringBuffer index = new StringBuffer(
					getpage.getPage(baseurl.toString()+i, getpage.GET));
			
			//System.out.println(index.substring(13,index.length()-1));
			
			JSONObject json = (JSONObject) JSON.parse(index.substring(13,index.length()-1));
			
			JSONArray movies = json.getJSONArray("movies");
			System.out.println("this page costtime:  "+json.getIntValue("costtime") );
			System.out.println("this page has "+movies.size()+"  movies");
			
			for(int j=0;j<movies.size();j ++){
				//get all tvs
				JSONObject movie = movies.getJSONObject(j);
				JSONArray vids = movie.getJSONArray("video");
				
				//get all vid in the tv
				System.out.println("this tv has "+vids.size()+"  video");
				for(int z=0;z<vids.size();z ++){
					JSONObject vid = vids.getJSONObject(z);
					//System.out.println(vid.toJSONString());
					vidList.add(new StringBuffer(vid.getString("vid")));
					
				}
			}
		}
	}