@ -41,21 +41,28 @@ namespace NzbDrone.Core.Test.ParserTests
result . FullSeason . Should ( ) . BeFalse ( ) ;
result . FullSeason . Should ( ) . BeFalse ( ) ;
}
}
[TestCase("[Lilith-Raws] 在 地 下 城 尋 求 邂 逅 是 否 搞 錯 了 什 麼 / Anime - Series Title S04 - 12 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] ", " Anime - Series Title ", " Lilith - Raws ", 4, 12)]
[TestCase("[Lilith-Raws] 在 地 下 城 尋 求 邂 逅 是 否 搞 錯 了 什 麼 / Anime - Series Title S04 - 12 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] ", " Anime - Series Title S4 ", " Lilith - Raws ", 12)]
[TestCase("[Lilith-Raws] 魔 王 學 院 的 不 適 任 者 / Anime - Series Title S02 - 01 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] ", " Anime - Series Title ", " Lilith - Raws ", 2, 1)]
[TestCase("[Lilith-Raws] 魔 王 學 院 的 不 適 任 者 / Anime - Series Title S02 - 01 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] ", " Anime - Series Title S2 ", " Lilith - Raws ", 1)]
[TestCase("[Lilith-Raws] 不 要 欺 負 我 , 長 瀞 同 學 / Anime - Series Title S02 - 01 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] ", " Anime - Series Title ", " Lilith - Raws ", 2, 1)]
[TestCase("[Lilith-Raws x WitEx.io] 盾 之 勇 者 成 名 录 / Anime - Series Title S02 - 03 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] [ 557.3 MB ] ", " Anime - Series Title S2 ", " Lilith - Raws x WitEx . io ", 3)]
[TestCase("[SweetSub&LoliHouse] 来 自 深 渊 烈 日 黄 金 乡 / Anime - Series Title S2 - 07 [ WebRip 1080 p HEVC - 10 bit AAC ] [ 简 繁 日 内 封 字 幕 ] ", " Anime - Series Title ", " SweetSub & LoliHouse ", 2, 7)]
[TestCase("[SweetSub&LoliHouse] 来 自 深 渊 烈 日 黄 金 乡 / Anime - Series Title S2 - 07 [ WebRip 1080 p HEVC - 10 bit AAC ] [ 简 繁 日 内 封 字 幕 ] ", " Anime - Series Title S2 ", " SweetSub & LoliHouse ", 7)]
[TestCase("[LoliHouse] Love Live ! 虹 咲 学 园 学 园 偶 像 同 好 会 第 二 季 / Anime - Series Title S2 - 10 [ WebRip 1080 p HEVC - 10 bit AAC ] [ 简 繁 内 封 字 幕 ] ", " Anime - Series Title ", " LoliHouse ", 2, 10)]
[TestCase("[LoliHouse] Love Live ! 虹 咲 学 园 学 园 偶 像 同 好 会 第 二 季 / Anime - Series Title S2 - 10 [ WebRip 1080 p HEVC - 10 bit AAC ] [ 简 繁 内 封 字 幕 ] ", " Anime - Series Title S2 ", " LoliHouse ", 10)]
[TestCase("[澄空学园&雪飘工作室&LoliHouse] 辉 夜 大 小 姐 想 让 我 告 白 第 三 季 / Anime - Series Title S3 - 06 [ WebRip 1080 p HEVC - 10 bit AAC ] [ 简 繁 内 封 字 幕 ] ", " Anime - Series Title ", " 澄 空 学 园 & 雪 飘 工 作 室 & LoliHouse ", 3, 6)]
[TestCase("[澄空学园&雪飘工作室&LoliHouse] 辉 夜 大 小 姐 想 让 我 告 白 第 三 季 / Anime - Series Title S3 - 06 [ WebRip 1080 p HEVC - 10 bit AAC ] [ 简 繁 内 封 字 幕 ] ", " Anime - Series Title S3 ", " 澄 空 学 园 & 雪 飘 工 作 室 & LoliHouse ", 6)]
public void should_parse_chinese_anime_season_episode_releases ( string postTitle , string title , string subgroup , int seasonNumber , int episodeNumber )
[TestCase("[诸神字幕组] [ 致 不 灭 的 你 第 二 季 ] [ Anime - Series Title S2 ] [ 10 ] [ 简 繁 日 语 字 幕 ] [ 1080 P ] [ MKV HEVC ] ", " Anime - Series Title S2 ", " 诸 神 字 幕 组 ", 10)]
[TestCase("[NC-Raws] 魔 王 学 院 的 不 适 任 者 ~ 史 上 最 强 的 魔 王 始 祖 , 转 生 就 读 子 孙 们 的 学 校 ~ 第 二 季 / Anime - Series Title S2 - 01 ( Baha 1920 x1080 AVC AAC MP4 ) ", " Anime - Series Title S2 ", " NC - Raws ", 1)]
[TestCase("[Lilith-Raws] Anime - Series Title S02 - 11 [ Baha ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ CHT ] [ MP4 ] . mp4 ", " Anime - Series Title S2 ", " Lilith - Raws ", 11)]
[TestCase("[天月搬运组] 不 要 欺 负 我 , 长 瀞 同 学 2 nd Attack / Anime - Series Title S02 - 01 [ 1080 P ] [ 简 繁 日 外 挂 ] ", " Anime - Series Title S2 ", " 天 月 搬 运 组 ", 1)]
[TestCase("[Skymoon-Raws] 怕 痛 的 我 , 把 防 御 力 点 满 就 对 了 第 二 季 / Anime - Series Title S02 - 01 [ ViuTV ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ 繁 体 外 挂 ] [ MP4 + ASS ] ( 正 式 版 本 ) ", " Anime - Series Title S2 ", " Skymoon - Raws ", 1)]
[TestCase("[Skymoon-Raws] Anime - Series Title S02 - 01 [ ViuTV ] [ CHT ] [ WEB - DL ] [ 1080 p ] [ AVC AAC ] [ MP4 + ASS ] ", " Anime - Series Title S2 ", " Skymoon - Raws ", 1)]
[TestCase("[orion origin] Anime - Series Title S02 [ 07 ] [ 1080 p ] [ H264 AAC ] [ CHS ] [ ENG & JPN stidio ] ", " Anime - Series Title S2 ", " orion origin ", 7)]
[TestCase("[UHA-WINGS] [ Anime - Series Title S02 ] [ 01 ] [ x264 1080 p ] [ CHT ] . mp4 ", " Anime - Series Title S2 ", " UHA - WINGS ", 1)]
public void should_parse_chinese_anime_season_episode_releases ( string postTitle , string title , string subgroup , int absoluteEpisodeNumber )
{
{
postTitle = XmlCleaner . ReplaceUnicode ( postTitle ) ;
postTitle = XmlCleaner . ReplaceUnicode ( postTitle ) ;
var result = Parser . Parser . ParseTitle ( postTitle ) ;
var result = Parser . Parser . ParseTitle ( postTitle ) ;
result . Should ( ) . NotBeNull ( ) ;
result . Should ( ) . NotBeNull ( ) ;
result . ReleaseGroup . Should ( ) . Be ( subgroup ) ;
result . ReleaseGroup . Should ( ) . Be ( subgroup ) ;
result . SeasonNumber . Should ( ) . Be ( seasonNumber ) ;
result . AbsoluteEpisodeNumbers . Single ( ) . Should ( ) . Be ( absoluteEpisodeNumber ) ;
result . EpisodeNumbers . Single ( ) . Should ( ) . Be ( episodeNumber ) ;
result . SeriesTitle . Should ( ) . Be ( title ) ;
result . SeriesTitle . Should ( ) . Be ( title ) ;
result . FullSeason . Should ( ) . BeFalse ( ) ;
result . FullSeason . Should ( ) . BeFalse ( ) ;
}
}
@ -83,6 +90,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("[YMDR] [ 慕 留 人 - 火 影 忍 者 新 時 代 - ] [ Anime Series Title - ] [ 2017 ] [ 88 - 91 ] [ 1080 p ] [ AVC ] [ JAP ] [ BIG5 ] [ MP4 - AAC ] [ 繁 中 ] ", " Anime Series Title ", " YMDR ", new[] { 88, 89, 90, 91 })]
[TestCase("[YMDR] [ 慕 留 人 - 火 影 忍 者 新 時 代 - ] [ Anime Series Title - ] [ 2017 ] [ 88 - 91 ] [ 1080 p ] [ AVC ] [ JAP ] [ BIG5 ] [ MP4 - AAC ] [ 繁 中 ] ", " Anime Series Title ", " YMDR ", new[] { 88, 89, 90, 91 })]
[TestCase("[诸神字幕组] [ 战 栗 杀 机 ] [ ANIME SERIES TITLE ] [ 01 - 24 完 ] [ 简 日 双 语 字 幕 ] [ 720 P ] [ MP4 ] ", " ANIME SERIES TITLE ", " 诸 神 字 幕 组 ", new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 })]
[TestCase("[诸神字幕组] [ 战 栗 杀 机 ] [ ANIME SERIES TITLE ] [ 01 - 24 完 ] [ 简 日 双 语 字 幕 ] [ 720 P ] [ MP4 ] ", " ANIME SERIES TITLE ", " 诸 神 字 幕 组 ", new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 })]
// [TestCase("[orion origin] Anime-Series Title S02 [01-07] [1080p] [H264 AAC] [CHS] [ENG& JPN stidio]", "Anime-Series Title S2", "orion origin", new[] { 1, 2, 3, 4, 5, 6, 7 })]
// [TestCase("【漫貓&愛戀字幕組】[五等分的新娘/五等分的花嫁/五等分の花嫁][Anime Series Title][01_03][BIG5][720P][HEVC]", "Anime Series Title", "漫貓&愛戀字幕組", new[] { 1, 2, 3 })]
// [TestCase("【漫貓&愛戀字幕組】[五等分的新娘/五等分的花嫁/五等分の花嫁][Anime Series Title][01_03][BIG5][720P][HEVC]", "Anime Series Title", "漫貓&愛戀字幕組", new[] { 1, 2, 3 })]
public void should_parse_chinese_multiepisode_releases ( string postTitle , string title , string subgroup , int [ ] absoluteEpisodeNumbers )
public void should_parse_chinese_multiepisode_releases ( string postTitle , string title , string subgroup , int [ ] absoluteEpisodeNumbers )
{
{