Esempio n. 1
0
 private async Task <VideoDetails> GetVideoDetails(string ytUrl)
 {
     if (!IsValidUrl(ytUrl))
     {
         return(null);
     }
     try
     {
         return(await clientHelper.GetVideoMetadata(clientHelper.GetVideoID(ytUrl)));
     }
     catch (Exception ex)
     {
         // todo: handle error
     }
     return(null);
 }