mirror of https://github.com/Jackett/Jackett
indexers: show real publish date when build has debug set (#14128)
This commit is contained in:
parent
cfa154be16
commit
bbeca179d9
|
@ -196,7 +196,7 @@ namespace Jackett.Common.Indexers
|
||||||
|
|
||||||
// fix publish date
|
// fix publish date
|
||||||
// some trackers do not keep their clocks up to date and can be ~20 minutes out!
|
// some trackers do not keep their clocks up to date and can be ~20 minutes out!
|
||||||
if (r.PublishDate > DateTime.Now)
|
if (!EnvironmentUtil.IsDebug && r.PublishDate > DateTime.Now)
|
||||||
r.PublishDate = DateTime.Now;
|
r.PublishDate = DateTime.Now;
|
||||||
|
|
||||||
// generate magnet link from info hash (not allowed for private sites)
|
// generate magnet link from info hash (not allowed for private sites)
|
||||||
|
|
|
@ -27,5 +27,17 @@ namespace Jackett.Common.Utils
|
||||||
|
|
||||||
public static bool IsWindows => Environment.OSVersion.Platform == PlatformID.Win32NT;
|
public static bool IsWindows => Environment.OSVersion.Platform == PlatformID.Win32NT;
|
||||||
|
|
||||||
|
public static bool IsDebug
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue