Ejemplo n.º 1
0
 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);
     }
 }