Fixed: Updated BTN url to https

closes #4249
This commit is contained in:
Taloth Saldono 2021-01-14 23:30:47 +01:00
parent 881bbb654b
commit 620359dcc6
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
using FluentMigrator;
using Newtonsoft.Json.Linq;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(152)]
public class update_btn_url_to_https : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Execute.Sql("UPDATE Indexers SET Settings = Replace(Settings, 'http://api.broadcasthe.net', 'https://api.broadcasthe.net') WHERE Implementation = 'BroadcastheNet';");
}
}
}

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
public BroadcastheNetSettings()
{
BaseUrl = "http://api.broadcasthe.net/";
BaseUrl = "https://api.broadcasthe.net/";
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
}