mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 17:43:49 -07:00
New: Added support for automatic update branch redirection
This commit is contained in:
parent
47c109209c
commit
cfa8dcca29
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ namespace NzbDrone.Core.Update
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_logger.Warn("[{0}] isn't a valid branch. Switching back to [master]", _configFileProvider.Branch);
|
_logger.Warn("Branch [{0}] is being redirected to [{1}]]", _configFileProvider.Branch, latestAvailable.Branch);
|
||||||
var config = _configFileProvider.GetConfigDictionary();
|
var config = _configFileProvider.GetConfigDictionary();
|
||||||
config["Branch"] = _configFileProvider.Branch;
|
config["Branch"] = latestAvailable.Branch;
|
||||||
_configFileProvider.SaveConfigDictionary(config);
|
_configFileProvider.SaveConfigDictionary(config);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue