update usages of nzbdrone.com to sonarr.tv

pull/2/head
Keivan Beigi 10 years ago
parent 0d61b5dc97
commit c4e684fbd3

@ -8,7 +8,7 @@ Setup guides, FAQ, the more information we have on the wiki the better.
## Development ## ## Development ##
### Tools required ### ### Tools required ###
- Visual Studio 2012 - Visual Studio 2013
- HTML/Javascript editor of choice (Sublime Text/Webstorm/etc) - HTML/Javascript editor of choice (Sublime Text/Webstorm/etc)
- npm (node package manager) - npm (node package manager)
- git - git
@ -22,7 +22,7 @@ Setup guides, FAQ, the more information we have on the wiki the better.
5. Compile in Visual Studio 5. Compile in Visual Studio
### Contributing Code ### ### Contributing Code ###
- If you're adding a new, already requested feature, please comment on [Trello](http://trello.nzbdrone.com "Trello") so work is not duplicated (If you want to add something not already on there, please talk to us first) - If you're adding a new, already requested feature, please comment on [Trello](https://trello.sonarr.tv "Trello") so work is not duplicated (If you want to add something not already on there, please talk to us first)
- Rebase from NzbDrone's develop branch, don't merge - Rebase from NzbDrone's develop branch, don't merge
- Make meaningful commits, or squash them - Make meaningful commits, or squash them
- Feel free to make a pull request before work is complete, this will let us see where its at and make comments/suggest improvements - Feel free to make a pull request before work is complete, this will let us see where its at and make comments/suggest improvements

@ -3,8 +3,8 @@
#define AppName "NzbDrone" #define AppName "NzbDrone"
#define AppPublisher "NzbDrone" #define AppPublisher "NzbDrone"
#define AppURL "http://www.nzbdrone.com/" #define AppURL "https://sonarr.tv/"
#define ForumsURL "http://forums.nzbdrone.com/" #define ForumsURL "https://forums.sonarr.tv/"
#define AppExeName "NzbDrone.exe" #define AppExeName "NzbDrone.exe"
#define BuildNumber "2.0" #define BuildNumber "2.0"
#define BuildNumber GetEnv('BUILD_NUMBER') #define BuildNumber GetEnv('BUILD_NUMBER')

@ -9,7 +9,7 @@ namespace NzbDrone.Common.Cloud
public class DroneServicesHttpRequestBuilder : HttpRequestBuilder, IDroneServicesRequestBuilder public class DroneServicesHttpRequestBuilder : HttpRequestBuilder, IDroneServicesRequestBuilder
{ {
private const string ROOT_URL = "http://services.nzbdrone.com/v1/"; private const string ROOT_URL = "https://services.sonarr.tv/v1/";
public DroneServicesHttpRequestBuilder() public DroneServicesHttpRequestBuilder()
: base(ROOT_URL) : base(ROOT_URL)

@ -180,7 +180,6 @@
<Compile Include="Serializer\Json.cs" /> <Compile Include="Serializer\Json.cs" />
<Compile Include="ServiceFactory.cs" /> <Compile Include="ServiceFactory.cs" />
<Compile Include="ServiceProvider.cs" /> <Compile Include="ServiceProvider.cs" />
<Compile Include="Services.cs" />
<Compile Include="Extensions\StringExtensions.cs" /> <Compile Include="Extensions\StringExtensions.cs" />
<Compile Include="TinyIoC.cs" /> <Compile Include="TinyIoC.cs" />
<Compile Include="TPL\LimitedConcurrencyLevelTaskScheduler.cs" /> <Compile Include="TPL\LimitedConcurrencyLevelTaskScheduler.cs" />

@ -2,7 +2,7 @@
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("www.nzbdrone.com")] [assembly: AssemblyCompany("sonarr.tv")]
[assembly: AssemblyProduct("NzbDrone")] [assembly: AssemblyProduct("NzbDrone")]
[assembly: AssemblyCopyright("GNU General Public v3")] [assembly: AssemblyCopyright("GNU General Public v3")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]

@ -16,9 +16,9 @@ namespace NzbDrone.Common.Security
{ {
var request = sender as HttpWebRequest; var request = sender as HttpWebRequest;
if (request != null && if (request != null && sslpolicyerrors != SslPolicyErrors.None &&
request.Address.OriginalString.ContainsIgnoreCase("nzbdrone.com") && (request.Address.OriginalString.ContainsIgnoreCase("nzbdrone.com") || request.Address.OriginalString.ContainsIgnoreCase("sonarr.tv"))
sslpolicyerrors != SslPolicyErrors.None) )
{ {
return false; return false;
} }

@ -1,15 +0,0 @@
using System;
namespace NzbDrone.Common
{
public class Services
{
public static String RootUrl
{
get
{
return "http://services.nzbdrone.com";
}
}
}
}

@ -88,7 +88,7 @@ namespace NzbDrone.Core.Test
public void ParentUriString_should_return_self_if_already_parent() public void ParentUriString_should_return_self_if_already_parent()
{ {
var url = "http://www.nzbdrone.com"; var url = "http://www.sonarr.tv";
var uri = new Uri(url); var uri = new Uri(url);
@ -102,70 +102,70 @@ namespace NzbDrone.Core.Test
public void ParentUriString_should_return_parent_url_when_path_is_passed() public void ParentUriString_should_return_parent_url_when_path_is_passed()
{ {
var url = "http://www.nzbdrone.com/test/"; var url = "http://www.sonarr.tv/test/";
var uri = new Uri(url); var uri = new Uri(url);
var result = uri.ParentUriString(); var result = uri.ParentUriString();
//Resolve //Resolve
result.Should().Be("http://www.nzbdrone.com"); result.Should().Be("http://www.sonarr.tv");
} }
[Test] [Test]
public void ParentUriString_should_return_parent_url_when_multiple_paths_are_passed() public void ParentUriString_should_return_parent_url_when_multiple_paths_are_passed()
{ {
var url = "http://www.nzbdrone.com/test/test2"; var url = "http://www.sonarr.tv/test/test2";
var uri = new Uri(url); var uri = new Uri(url);
var result = uri.ParentUriString(); var result = uri.ParentUriString();
//Resolve //Resolve
result.Should().Be("http://www.nzbdrone.com"); result.Should().Be("http://www.sonarr.tv");
} }
[Test] [Test]
public void ParentUriString_should_return_parent_url_when_url_with_query_string_is_passed() public void ParentUriString_should_return_parent_url_when_url_with_query_string_is_passed()
{ {
var url = "http://www.nzbdrone.com/test.aspx?test=10"; var url = "http://www.sonarr.tv/test.aspx?test=10";
var uri = new Uri(url); var uri = new Uri(url);
var result = uri.ParentUriString(); var result = uri.ParentUriString();
//Resolve //Resolve
result.Should().Be("http://www.nzbdrone.com"); result.Should().Be("http://www.sonarr.tv");
} }
[Test] [Test]
public void ParentUriString_should_return_parent_url_when_url_with_path_and_query_strings_is_passed() public void ParentUriString_should_return_parent_url_when_url_with_path_and_query_strings_is_passed()
{ {
var url = "http://www.nzbdrone.com/tester/test.aspx?test=10"; var url = "http://www.sonarr.tv/tester/test.aspx?test=10";
var uri = new Uri(url); var uri = new Uri(url);
var result = uri.ParentUriString(); var result = uri.ParentUriString();
//Resolve //Resolve
result.Should().Be("http://www.nzbdrone.com"); result.Should().Be("http://www.sonarr.tv");
} }
[Test] [Test]
public void ParentUriString_should_return_parent_url_when_url_with_query_strings_is_passed() public void ParentUriString_should_return_parent_url_when_url_with_query_strings_is_passed()
{ {
var url = "http://www.nzbdrone.com/test.aspx?test=10&test2=5"; var url = "http://www.sonarr.tv/test.aspx?test=10&test2=5";
var uri = new Uri(url); var uri = new Uri(url);
var result = uri.ParentUriString(); var result = uri.ParentUriString();
//Resolve //Resolve
result.Should().Be("http://www.nzbdrone.com"); result.Should().Be("http://www.sonarr.tv");
} }
[Test] [Test]

@ -332,7 +332,7 @@ namespace NzbDrone.Core.Configuration
catch (XmlException ex) catch (XmlException ex)
{ {
throw new InvalidConfigFileException(_configFile + " is invalid, please see the http://wiki.nzbdrone.com for steps to resolve this issue.", ex); throw new InvalidConfigFileException(_configFile + " is invalid, please see the http://wiki.sonarr.tv for steps to resolve this issue.", ex);
} }
} }

Loading…
Cancel
Save