diff --git a/NzbDrone.Core/Datastore/Migrations/Migration20121227.cs b/NzbDrone.Core/Datastore/Migrations/Migration20121227.cs new file mode 100644 index 000000000..0265f49fa --- /dev/null +++ b/NzbDrone.Core/Datastore/Migrations/Migration20121227.cs @@ -0,0 +1,16 @@ +using System; +using System.Data; +using Migrator.Framework; +using NzbDrone.Common; + +namespace NzbDrone.Core.Datastore.Migrations +{ + [Migration(20121227)] + public class Migration20121227 : NzbDroneMigration + { + protected override void MainDbUpgrade() + { + Database.ExecuteNonQuery("UPDATE Config SET [Value] = 'http://update.nzbdrone.com/v1/' WHERE [Key] = 'UpdateUrl'"); + } + } +} \ No newline at end of file diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index f6ec7f277..1204df089 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -226,6 +226,7 @@ + diff --git a/NzbDrone.Core/Providers/UpdateProvider.cs b/NzbDrone.Core/Providers/UpdateProvider.cs index a42fffa6c..9dbf5843e 100644 --- a/NzbDrone.Core/Providers/UpdateProvider.cs +++ b/NzbDrone.Core/Providers/UpdateProvider.cs @@ -23,7 +23,7 @@ namespace NzbDrone.Core.Providers private static readonly Logger logger = LogManager.GetCurrentClassLogger(); private static readonly Regex parseRegex = new Regex(@"(?:\>)(?NzbDrone.+?(?\d+\.\d+\.\d+\.\d+).+?)(?:\<\/A\>)", RegexOptions.IgnoreCase); - public const string DEFAULT_UPDATE_URL = @"http://update.nzbdrone.com/_release/"; + public const string DEFAULT_UPDATE_URL = @"http://update.nzbdrone.com/v1/"; public UpdateProvider(HttpProvider httpProvider, ConfigProvider configProvider, diff --git a/NzbDrone.Web/Content/NzbDrone.css b/NzbDrone.Web/Content/NzbDrone.css index dcf674f09..b2cb908a9 100644 --- a/NzbDrone.Web/Content/NzbDrone.css +++ b/NzbDrone.Web/Content/NzbDrone.css @@ -321,4 +321,16 @@ i[class*="icon-"]:not(.gridAction):hover { #free-space-small { display: inline-block; } +} + +#upgrade-now { + background-color: #FCF8E3; + text-align: center; + padding: 5px; + +} + +#upgrade-now h3 { + color: #c09853; + font-weight: bold; } \ No newline at end of file diff --git a/NzbDrone.Web/Views/Shared/_Layout.cshtml b/NzbDrone.Web/Views/Shared/_Layout.cshtml index ecd94320d..b2c70029f 100644 --- a/NzbDrone.Web/Views/Shared/_Layout.cshtml +++ b/NzbDrone.Web/Views/Shared/_Layout.cshtml @@ -39,6 +39,13 @@
  • + +
    +

    + You are running an old version of NzbDrone. Please upgrade to latest version and enjoy a brand new UI and tons of new features and enhancements + www.nzbdrone.com +

    +