Example #1
0
 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());
 }
Example #2
0
 internal static string GetUrlExtended(this YouTube.Downloadable link)
 {
     return(link.GetUrl(link.GenerateFileName()));
 }