erairaws: add new public tracker. resolves #4116 (#11484)

Also change release size for ShowRSS to 512MB.

Co-authored-by: 6cUbi57z <git@g-de.co.uk>
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
6cUbi57z
2021-04-18 16:56:34 +01:00
committed by GitHub
parent 93b55583bf
commit 42b6aaedc9
4 changed files with 418 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections;
using Jackett.Common.Indexers;
using NUnit.Framework;
using Assert = NUnit.Framework.Assert;
namespace Jackett.Test.Common.Indexers
{
[TestFixture]
public class EraiRawsTests
{
[TestCaseSource(typeof(TitleParserTestData), nameof(TitleParserTestData.TestCases))]
public string TestTitleParsing(string title)
{
var titleParser = new EraiRaws.TitleParser();
return titleParser.Parse(title);
}
}
public class TitleParserTestData
{
public static IEnumerable TestCases
{
get
{
yield return new TestCaseData("[1080p] Tokyo Revengers").Returns("[1080p] Tokyo Revengers");
yield return new TestCaseData("[1080p] Tokyo Revengers 02").Returns("[1080p] Tokyo Revengers E02");
yield return new TestCaseData("[1080p] Mairimashita! Iruma-kun 2nd Season 01").Returns("[1080p] Mairimashita! Iruma-kun S2E01");
yield return new TestCaseData("[540p] Seijo no Maryoku wa Bannou Desu 02 v2 (Multi)").Returns("[540p] Seijo no Maryoku wa Bannou Desu E02 v2 (Multi)");
yield return new TestCaseData("[1080p] Yuukoku no Moriarty Part 2 01 (Multi)").Returns("[1080p] Yuukoku no Moriarty S2E01 (Multi)");
}
}
}
}