public void SearchVideos() { if (!string.IsNullOrWhiteSpace("Search")) { if (SelectedPage == "Redtube") { SwitchWebsite = 0; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetRedTubeVideos(Videos, Search); } else if (SelectedPage == "Pornhub") { SwitchWebsite = 3; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetPornHubVideos(Videos, Search); } } }
public void ChangeCategoryList() { Videos = new List <VideoListAdminDTO>(); if (SwitchWebsite == 1) { SpiderRep.GetXhamsterVideos(Videos, SelectedWebCategory); } else if (SwitchWebsite == 0) { SpiderRep.GetRedTubeVideos(Videos, SelectedWebCategory); } else if (SwitchWebsite == 2) { SpiderRep.GetDrTuberVideos(Videos, SelectedWebCategory); } else if (SwitchWebsite == 3) { SpiderRep.GetPornHubVideos(Videos, SelectedWebCategory); } }
public void SwitchToRedTube() { SwitchWebsite = 0; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetRedTubeVideos(Videos, SelectedWebCategory); }