Exemple #1
0
        private bool IsVideoUrl(string uri)
        {
            try
            {
                // TODO: this is a quick and dirty way of checking for a Youtube URL. Improve this.
                return(ValidationUtils.IsUrl(uri) && uri.ToLower().Contains("youtube") && uri.ToLower().Contains("/watch"));
            }
            catch (Exception ex)
            {
                LogClient.Error("Could not verify if video URI is a URL. Exception: {0}", ex.Message);
            }

            return(false);
        }