Skip to content

Commit ea8224c

Browse files
committed
Update the domain from ncore.cc to ncore.pro
1 parent 118fb0a commit ea8224c

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PoLaKoSz.Ncore
22

3-
[https://ncore.cc](https://ncore.cc) is the largest hungarian torrent side. This .NET Core 2.1 library helps to access its content
3+
[https://ncore.pro](https://ncore.pro) is the largest hungarian torrent side. This .NET Core 2.1 library helps to access its content
44
(Torrent details, user Hit'n'Runs, Search for Torrent).
55

66
## Install

src/PoLaKoSz.Ncore/EndPoints/LoginEndPoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal class LoginEndPoint : ILoginEndPoint
1919
static LoginEndPoint()
2020
{
2121
_cookiePath = "/";
22-
_cookieDomain = "ncore.cc";
22+
_cookieDomain = "ncore.pro";
2323
}
2424

2525
internal LoginEndPoint(

src/PoLaKoSz.Ncore/NcoreClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public NcoreClient(HttpClientHandler messageHandler)
3232

3333
HttpClient client = new HttpClient(messageHandler)
3434
{
35-
BaseAddress = new Uri("https://ncore.cc/"),
35+
BaseAddress = new Uri("https://ncore.pro/"),
3636
};
3737
client.DefaultRequestHeaders.Add("User-Agent", " Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3982.0 Safari/537.36");
3838

src/PoLaKoSz.Ncore/PoLaKoSz.Ncore.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<PackageProjectUrl>https://github.com/PoLaKoSz/nCore</PackageProjectUrl>
99
<RepositoryUrl>https://github.com/PoLaKoSz/nCore</RepositoryUrl>
1010
<RepositoryType>git</RepositoryType>
11-
<PackageTags>ncore ncore.cc wrapper api scraper netcore netcore2.1</PackageTags>
11+
<PackageTags>ncore ncore.pro wrapper api scraper netcore netcore2.1</PackageTags>
1212
<PackageLicenseUrl>https://github.com/PoLaKoSz/nCore/LICENSE</PackageLicenseUrl>
1313
<PackageId>PoLaKoSz.Ncore</PackageId>
1414
<Product>nCore</Product>
15-
<PackageReleaseNotes>Fix a critical semantic error in the SearchParser. The enty point to the library is the PoLaKoSz.Ncore.NcoreClient class.</PackageReleaseNotes>
16-
<Description>nCore.cc is the largest hungarian torrent side. This .NET Core 2.1 library helps to access its content (Torrent details, user Hit'n'Runs, Search for Torrent).</Description>
17-
<Version>1.1.1</Version>
15+
<PackageReleaseNotes>Update the doman from ncore.cc to ncore.pro. The enty point to the library is the PoLaKoSz.Ncore.NcoreClient class.</PackageReleaseNotes>
16+
<Description>nCore.pro is the largest hungarian torrent side. This .NET Core 2.1 library helps to access its content (Torrent details, user Hit'n'Runs, Search for Torrent).</Description>
17+
<Version>1.1.2</Version>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

tests/Integration/EndPoints/LoginEndPointTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void SetUp()
2222
{
2323
endPoint = new NcoreClient(Web).Login;
2424
}
25-
25+
2626
[Test]
2727
public async Task AuthenticateWithAddsRequiredCookies()
2828
{
@@ -31,14 +31,14 @@ public async Task AuthenticateWithAddsRequiredCookies()
3131

3232
await endPoint.AuthenticateWith(userConfig);
3333

34-
CookieCollection cookies = Web.CookieContainer.GetCookies(new System.Uri("https://ncore.cc"));
34+
CookieCollection cookies = Web.CookieContainer.GetCookies(new System.Uri("https://ncore.pro"));
3535
Assert.AreEqual("php", cookies["PHPSESSID"].Value);
3636
Assert.AreEqual("p4ssw0rd", cookies["pass"].Value);
3737
Assert.AreEqual("PoLáKoSz", cookies["nick"].Value);
3838
Assert.AreEqual("brutecore", cookies["stilus"].Value);
3939
Assert.AreEqual("hu", cookies["nyelv"].Value);
4040
}
41-
41+
4242
[Test]
4343
public void AuthenticateWithThrowsUnauthenticatedExceptionWhenLoginUnsuccessful()
4444
{
@@ -48,13 +48,13 @@ public void AuthenticateWithThrowsUnauthenticatedExceptionWhenLoginUnsuccessful(
4848
UnauthorizedException ex = Assert.ThrowsAsync<UnauthorizedException>(async () =>
4949
await endPoint.AuthenticateWith(userConfig));
5050
}
51-
51+
5252
[Test]
5353
public async Task AuthenticateWithDoesNothingWhenLoginSuccessful()
5454
{
5555
UserConfig userConfig = new UserConfig(null, null, null);
5656
SetServerResponse("authenticated");
57-
57+
5858
await endPoint.AuthenticateWith(userConfig);
5959
}
6060
}

tests/Integration/EndPoints/TorrentEndPointTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public async Task GetParseDownloadUrlCorrectly()
4949

5050
Torrent torrent = await endPoint.Get(-1).ConfigureAwait(false);
5151

52-
Assert.That(torrent.DownloadURL, Is.EqualTo(new Uri("https://ncore.cc/torrents.php?action=download&id=1683491&key=b6d64d585e5615c0721c1b008a7473bc")));
52+
Assert.That(torrent.DownloadURL, Is.EqualTo(new Uri("https://ncore.pro/torrents.php?action=download&id=1683491&key=b6d64d585e5615c0721c1b008a7473bc")));
5353
}
5454

5555
[Test]

0 commit comments

Comments
 (0)