Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions Controllers/DevController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public class DevController : Controller
{
public JsonResult UpdateSize()
{
if (HttpContext.Connection.RemoteIpAddress.ToString() != "127.0.0.1")
return Json(new { badip = true });

#region getSizeInfo
long getSizeInfo(string sizeName)
{
Expand Down Expand Up @@ -67,9 +64,6 @@ long getSizeInfo(string sizeName)

public JsonResult ResetCheckTime()
{
if (HttpContext.Connection.RemoteIpAddress.ToString() != "127.0.0.1")
return Json(new { badip = true });

foreach (var item in FileDB.masterDb.ToArray())
{
using (var fdb = FileDB.OpenWrite(item.Key))
Expand All @@ -89,9 +83,6 @@ public JsonResult ResetCheckTime()

public JsonResult UpdateDetails()
{
if (HttpContext.Connection.RemoteIpAddress.ToString() != "127.0.0.1")
return Json(new { badip = true });

foreach (var item in FileDB.masterDb.ToArray())
{
using (var fdb = FileDB.OpenWrite(item.Key))
Expand All @@ -115,9 +106,6 @@ public JsonResult UpdateDetails()

public JsonResult UpdateSearchName()
{
if (HttpContext.Connection.RemoteIpAddress.ToString() != "127.0.0.1")
return Json(new { badip = true });

foreach (var item in FileDB.masterDb.ToArray())
{
using (var fdb = FileDB.OpenWrite(item.Key))
Expand Down
2 changes: 1 addition & 1 deletion Engine/FileDB/FileDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ long getSizeInfo(string sizeName)

#region videotype
t.videotype = "sdr";
if (Regex.IsMatch(titlelower, "(\\[| )hdr( |\\]|,|$)") || Regex.IsMatch(titlelower, "(10-bit|10 bit|10-бит|10 бит)"))
if ((Regex.IsMatch(titlelower, "(\\[| )hdr?(10\\+?)( |\\]|,|$)") || Regex.IsMatch(titlelower, "(10-bit|10 bit|10-бит|10 бит)")) && !Regex.IsMatch(titlelower, "(\\[| )sdr( |\\]|,|$)"))
{
t.videotype = "hdr";
}
Expand Down