From 6844627723019f2aafdd3da33a18088ff0f3a649 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Tue, 2 May 2017 13:33:17 +0200 Subject: [PATCH] Name adjustements --- Discord Media Loader.Application/Classes/JobScheduler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Discord Media Loader.Application/Classes/JobScheduler.cs b/Discord Media Loader.Application/Classes/JobScheduler.cs index d27f047..c784a67 100644 --- a/Discord Media Loader.Application/Classes/JobScheduler.cs +++ b/Discord Media Loader.Application/Classes/JobScheduler.cs @@ -225,7 +225,7 @@ namespace DML.Application.Classes var extensionRequired = !fileName.EndsWith("%name%"); fileName = - fileName.Replace("%guild%", message.Server.Name) + fileName.Replace("%guild%", message.Server.Name.Replace(":","").Replace("/","").Replace("\\","")) .Replace("%channel%", message.Channel.Name) .Replace("%timestamp%", SweetUtils.DateTimeToUnixTimeStamp(message.Timestamp).ToString()) .Replace("%name%", a.Filename)