public async override Task PreRender() { if (!Context.IsPostBack) { SpiderRep.GetPornHubVideos(Videos, string.Empty); } if (SwitchWebsite == 0) { ImageName = "../../Content/img/admin/redtube.png"; } else if (SwitchWebsite == 1) { ImageName = "../../Content/img/admin/xhamster.png"; } else if (SwitchWebsite == 2) { ImageName = "../../Content/img/admin/drtuber.png"; } else if (SwitchWebsite == 3) { ImageName = "../../Content/img/admin/pornhub.png"; } await base.PreRender(); }
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 async Task OpenModal(VideoListAdminDTO vid) { Video.Duration = vid.Duration; Video.HD = vid.HD; Video.Img = vid.Img; Video.Preview = vid.Preview; Video.Title = vid.Title; Video.Title_en = vid.Title_en; Video.Url = vid.Url; Video.Id = vid.Id; if (SelectedWebCategory == "gay") { Video.AllowMain = false; Video.CheckBoxEnabled = false; } if (Video.DatabaseCategories.Count() == 0) { Video.DatabaseCategories = await AdminRep.GetCategoriesAsync(); } if (SwitchWebsite == 0) { SpiderRep.GetCategoriesRedTube(Video); } else if (SwitchWebsite == 1) { SpiderRep.GetCategoriesXhamster(Video); } else if (SwitchWebsite == 2) { SpiderRep.GetCategoriesDrTuber(Video); } else if (SwitchWebsite == 3) { SpiderRep.GetCategoriesPornHub(Video); } }
public void SwitchToDrTuber() { SwitchWebsite = 2; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetDrTuberVideos(Videos, SelectedWebCategory); }
public void SwitchToXhamster() { SwitchWebsite = 1; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetXhamsterVideos(Videos, SelectedWebCategory); }
public void SwitchToPornHub() { SwitchWebsite = 3; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetPornHubVideos(Videos, SelectedWebCategory); }
public void SwitchToRedTube() { SwitchWebsite = 0; Videos = new List <VideoListAdminDTO>(); SpiderRep.GetRedTubeVideos(Videos, SelectedWebCategory); }