1
This commit is contained in:
@@ -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 += @$"
|
||||
索引器:<font color='info'> {jsonObj["release"]!["indexer"]} </font>
|
||||
发布组:<font color='info'> {jsonObj["release"]!["releaseGroup"]}({jsonObj["release"]!["quality"] ?? jsonObj["downloadInfo"]!["quality"]}) </font>
|
||||
|
||||
Reference in New Issue
Block a user