rudimentary filename format filtering

This commit is contained in:
Adam R Grey 2023-12-06 13:48:15 -05:00
parent 4e2b15ecec
commit 799eac006a

View File

@ -28,6 +28,11 @@
{
ext = probableFilename.Substring(probableFilename.LastIndexOf('.'));
}
foreach(char c in "'\":\\?/")
{
title = title.Replace(c, ' ');
}
Console.WriteLine($"{title}, {attachmentLink}");
var downloadPath = Path.Combine(feed.OutputDir, title + ext);