Jelajahi Sumber

show total number of disc in library title; show your ip in bottom of library page

HOME 2 tahun lalu
induk
melakukan
95f64bb74e
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      FNZCM/FNZCM.ConHost/Ver2/Program2.cs

+ 2 - 1
FNZCM/FNZCM.ConHost/Ver2/Program2.cs

@@ -242,7 +242,7 @@ namespace FNZCM.ConHost.Ver2
                     if (_isLoading) sb.Append("<h4 style=position:fixed;right:0px;top:0px;margin:0>Still Loading...</h4>");
 
                     sb.Append($"<h2>{ConfigFile.Instance.Title}</h2>");
-                    sb.Append("<h3>Libraries</h3>");
+                    sb.Append($"<h3>Libraries (Total number of disc: {Libraries.Sum(p=>p.Value.Discs.Count)})</h3>");
 
                     sb.Append("<ul>");
                     foreach (var library in Libraries.OrderBy(p => p.Key))
@@ -256,6 +256,7 @@ namespace FNZCM.ConHost.Ver2
                     sb.Append("</ul>");
 
                     sb.Append("<a href=/scan/>Reload</a>");
+                    sb.Append($"<div>Your IP: {context?.Request?.RemoteEndPoint?.Address.ToString() ?? "Unknown"}</div>");
 
                     context.Response.WriteText(sb.ToString());
                 }