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