internal static string GenerateFileName(this YouTube.Downloadable link, bool ignoreExtensions = true) { return(Settings.VideoFileName.Replace("%T", link.Parent.Title).Replace("%A", link.Parent.Author) .Replace("%E", ignoreExtensions ? string.Empty : link.Extension).ToValidPath()); }
internal static string GetUrlExtended(this YouTube.Downloadable link) { return(link.GetUrl(link.GenerateFileName())); }