From e0ff25d5be6d32e41bec583282e208d3940f7a36 Mon Sep 17 00:00:00 2001 From: Keivan Beigi <me@keivan.io> Date: Tue, 3 Jan 2017 18:37:46 -0800 Subject: [PATCH] New: switched nyaa to HTTPS --- .../Files/Indexers/Nyaa/Nyaa.xml | 20 +++++++++---------- .../IndexerTests/NyaaTests/NyaaFixture.cs | 4 ++-- .../Indexers/Nyaa/NyaaSettings.cs | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/NzbDrone.Core.Test/Files/Indexers/Nyaa/Nyaa.xml b/src/NzbDrone.Core.Test/Files/Indexers/Nyaa/Nyaa.xml index f13a4347c..734a9d547 100644 --- a/src/NzbDrone.Core.Test/Files/Indexers/Nyaa/Nyaa.xml +++ b/src/NzbDrone.Core.Test/Files/Indexers/Nyaa/Nyaa.xml @@ -1,38 +1,38 @@ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>NyaaTorrents</title> - <link>http://www.nyaa.se/</link> - <atom:link href="http://www.nyaa.se/?page=rss" rel="self" type="application/rss+xml" /> + <link>https://www.nyaa.se/</link> + <atom:link href="https://www.nyaa.se/?page=rss" rel="self" type="application/rss+xml" /> <description></description> <item> <title>[TSRaws] Futsuu no Joshikousei ga [Locodol] Yattemita. #07 (TBS).ts</title> <category>Raw Anime</category> - <link>http://www.nyaa.se/?page=download&tid=587750</link> - <guid>http://www.nyaa.se/?page=view&tid=587750</guid> + <link>https://www.nyaa.se/?page=download&tid=587750</link> + <guid>https://www.nyaa.se/?page=view&tid=587750</guid> <description><![CDATA[1 seeder(s), 2 leecher(s), 0 download(s) - 2.35 GiB]]></description> <pubDate>Thu, 14 Aug 2014 18:10:36 +0000</pubDate> </item> <item> <title>[JIGGYSUB] KOI KOI 7 EP07 [R2DVD 420P H264 AC3]</title> <category>English-translated Anime</category> - <link>http://www.nyaa.se/?page=download&tid=587749</link> - <guid>http://www.nyaa.se/?page=view&tid=587749</guid> + <link>https://www.nyaa.se/?page=download&tid=587749</link> + <guid>https://www.nyaa.se/?page=view&tid=587749</guid> <description><![CDATA[1 seeder(s), 2 leecher(s), 25 download(s) - 1.36 GiB]]></description> <pubDate>Thu, 14 Aug 2014 18:05:22 +0000</pubDate> </item> <item> <title>[Ohys-Raws] RAIL WARS! - 07 (TBS 1280x720 x264 AAC).mp4</title> <category>Raw Anime</category> - <link>http://www.nyaa.se/?page=download&tid=587748</link> - <guid>http://www.nyaa.se/?page=view&tid=587748</guid> + <link>https://www.nyaa.se/?page=download&tid=587748</link> + <guid>https://www.nyaa.se/?page=view&tid=587748</guid> <description><![CDATA[2 seeder(s), 111 leecher(s), 243 download(s) - 424.2 MiB]]></description> <pubDate>Thu, 14 Aug 2014 18:02:57 +0000</pubDate> </item> <item> <title>[Arabasma.com] Naruto Shippuuden - 372 [Arabic Sub] [MQ].mp4</title> <category>Non-English-translated Anime</category> - <link>http://www.nyaa.se/?page=download&tid=587747</link> - <guid>http://www.nyaa.se/?page=view&tid=587747</guid> + <link>https://www.nyaa.se/?page=download&tid=587747</link> + <guid>https://www.nyaa.se/?page=view&tid=587747</guid> <description><![CDATA[1 seeder(s), 0 leecher(s), 23 download(s) - 69.5 MiB]]></description> <pubDate>Thu, 14 Aug 2014 18:01:36 +0000</pubDate> </item> diff --git a/src/NzbDrone.Core.Test/IndexerTests/NyaaTests/NyaaFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/NyaaTests/NyaaFixture.cs index ba670d632..3ceb43a55 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/NyaaTests/NyaaFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/NyaaTests/NyaaFixture.cs @@ -42,8 +42,8 @@ namespace NzbDrone.Core.Test.IndexerTests.NyaaTests torrentInfo.Title.Should().Be("[TSRaws] Futsuu no Joshikousei ga [Locodol] Yattemita. #07 (TBS).ts"); torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent); - torrentInfo.DownloadUrl.Should().Be("http://www.nyaa.se/?page=download&tid=587750"); - torrentInfo.InfoUrl.Should().Be("http://www.nyaa.se/?page=view&tid=587750"); + torrentInfo.DownloadUrl.Should().Be("https://www.nyaa.se/?page=download&tid=587750"); + torrentInfo.InfoUrl.Should().Be("https://www.nyaa.se/?page=view&tid=587750"); torrentInfo.CommentUrl.Should().BeNullOrEmpty(); torrentInfo.Indexer.Should().Be(Subject.Definition.Name); torrentInfo.PublishDate.Should().Be(DateTime.Parse("2014/08/14 18:10:36")); diff --git a/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs b/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs index 024021027..4632aeb08 100644 --- a/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs +++ b/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs @@ -20,7 +20,7 @@ namespace NzbDrone.Core.Indexers.Nyaa public NyaaSettings() { - BaseUrl = "http://www.nyaa.se"; + BaseUrl = "https://www.nyaa.se"; AdditionalParameters = "&cats=1_37&filter=1"; }