mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
New: NzbDrone service to automatically report errors and episode parse issues.
This commit is contained in:
parent
ea86ce2fcb
commit
174f765ec9
140 changed files with 10774 additions and 1694 deletions
|
@ -61,13 +61,13 @@ namespace NzbDrone.Core.Providers
|
|||
return updateList;
|
||||
}
|
||||
|
||||
public virtual UpdatePackage GetAvilableUpdate()
|
||||
public virtual UpdatePackage GetAvilableUpdate(Version currentVersion)
|
||||
{
|
||||
var latestAvailable = GetAvailablePackages().OrderByDescending(c => c.Version).FirstOrDefault();
|
||||
|
||||
if (latestAvailable != null && latestAvailable.Version > _enviromentProvider.Version)
|
||||
if (latestAvailable != null && latestAvailable.Version > currentVersion)
|
||||
{
|
||||
logger.Debug("An update is available ({0}) => ({1})", _enviromentProvider.Version, latestAvailable.Version);
|
||||
logger.Debug("An update is available ({0}) => ({1})", currentVersion, latestAvailable.Version);
|
||||
return latestAvailable;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue