From a65e0adb6c01a7669a1a0459c3712046ddf7c91a Mon Sep 17 00:00:00 2001 From: Serraniel Date: Thu, 12 Dec 2019 18:53:23 +0100 Subject: [PATCH] #32 added placeholder for username and userid in target filename --- Discord Media Loader.Application/Classes/JobScheduler.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Discord Media Loader.Application/Classes/JobScheduler.cs b/Discord Media Loader.Application/Classes/JobScheduler.cs index 6a88229..3af4e48 100644 --- a/Discord Media Loader.Application/Classes/JobScheduler.cs +++ b/Discord Media Loader.Application/Classes/JobScheduler.cs @@ -247,8 +247,10 @@ namespace DML.AppCore.Classes .Replace("%channel%", channelName) .Replace("%timestamp%", message.CreatedAt.UtcDateTime.ToUnixTimeStamp().ToString()) .Replace("%name%", a.Filename) - .Replace("%id%", a.Id.ToString()); - + .Replace("%id%", a.Id.ToString()) + .Replace("%userid%", message.Author.Id.ToString()) + .Replace("%username%", message.Author.Username); + if (extensionRequired) fileName += Path.GetExtension(a.Filename);