From 64f4086370aec8422e20950466cd928260ac89f6 Mon Sep 17 00:00:00 2001 From: Keroosha Date: Thu, 13 Apr 2023 04:02:26 +0300 Subject: [PATCH] remove trash --- Keroosha.SilencerBot/Processing.fs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Keroosha.SilencerBot/Processing.fs b/Keroosha.SilencerBot/Processing.fs index 995f89e..4e7e499 100644 --- a/Keroosha.SilencerBot/Processing.fs +++ b/Keroosha.SilencerBot/Processing.fs @@ -19,18 +19,6 @@ let inline private (>>=) a b = (a, b) |> async.Bind let getContext (x: UserJob) = x.Context |> JsonSerializer.Deserialize let serializeContext (x: JsonJobContext) = x |> JsonSerializer.Serialize let downloadUrl token path = $"https://api.telegram.org/file/bot{token}/{path}" -let packAudio name stream = - { - InputMediaAudio.Media = InputFile.File(name, stream) - Thumb = None - Caption = None - ParseMode = None - CaptionEntities = None - Duration = None - Performer = None - Title = Some name - Type = "Audio" - } |> InputMedia.Audio let failJob (x: UserJob, ctx: JsonJobContext) (errMessage: String) = { x with @@ -115,7 +103,7 @@ let processUploading (job: UserJob, botConfig: Funogram.Types.BotConfig, config: async { let ctx = getContext job let cleanName = Path.GetFileNameWithoutExtension ctx.savePath - let withoutVocalsPath = Path.Combine(Path.GetDirectoryName ctx.savePath, $"{cleanName}_Instrumental.wav") + let withoutVocalsPath = Path.Combine(Path.GetDirectoryName ctx.savePath, $"{cleanName}_Instruments.wav") use f = File.OpenRead withoutVocalsPath Logging.logger.Information $"Uploading results for {job.Id} job"