From 626a8a295089f688817fcde63dfc71aa123b62e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Fri, 10 Oct 2025 18:39:39 +0800 Subject: [PATCH] 1 --- src/WebApi/Controllers/NotifyController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/WebApi/Controllers/NotifyController.cs b/src/WebApi/Controllers/NotifyController.cs index 4b4288d..9e1fa32 100644 --- a/src/WebApi/Controllers/NotifyController.cs +++ b/src/WebApi/Controllers/NotifyController.cs @@ -85,7 +85,12 @@ public class NotifyController : BaseController if (jsonObj["release"] != null) { - var gb = jsonObj["release"]!.ToString(); + var gb = jsonObj["release"]!["size"]!.ToString(); + + gb = decimal.TryParse(gb, out var size) + ? (size / 1024M / 1024M / 1024M).ToString("0.##") + : "0"; + notify += @$" 索引器: {jsonObj["release"]!["indexer"]} 发布组: {jsonObj["release"]!["releaseGroup"]}({jsonObj["release"]!["quality"] ?? jsonObj["downloadInfo"]!["quality"]})