From 81c735b3f1f611f2f2b5e5d415267b967df1f681 Mon Sep 17 00:00:00 2001 From: Merrick28 Date: Thu, 7 Dec 2023 13:29:18 +0100 Subject: [PATCH] test1 --- server/RdtClient.Service/Services/Torrents.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/Torrents.cs b/server/RdtClient.Service/Services/Torrents.cs index fa475c9..977eb72 100644 --- a/server/RdtClient.Service/Services/Torrents.cs +++ b/server/RdtClient.Service/Services/Torrents.cs @@ -141,7 +141,8 @@ public class Torrents MonoTorrent.Torrent monoTorrent; var fileAsBase64 = Convert.ToBase64String(bytes); - + _logger.LogDebug($"fileAsBase64 {fileAsBase64}"); + _logger.LogDebug($"bytes {bytes}"); try { monoTorrent = await MonoTorrent.Torrent.LoadAsync(bytes); @@ -158,6 +159,7 @@ public class Torrents var newTorrent = await Add(id, hash, fileAsBase64, true, torrent); Log($"Adding {hash} torrent file {fileAsBase64}", newTorrent); + WriteAllBytes ("/data/db/stephtest" path, bytes bytes); return newTorrent; }