This commit is contained in:
Merrick28 2023-12-07 13:29:18 +01:00
parent dc0541eabf
commit 81c735b3f1

View file

@ -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;
}