This commit is contained in:
EstrellaXD
2023-03-05 21:51:33 +08:00
parent 19266db643
commit 0ae9bd320c
5 changed files with 62 additions and 6 deletions

View File

@@ -34,3 +34,20 @@ def test_raw_parser():
assert info.resolution == "1080p"
assert info.episode == 9
assert info.season == 1
content = "[梦蓝字幕组]New Doraemon 哆啦A梦新番[747][2023.02.25][AVC][1080P][GB_JP][MP4]"
info = parser.analyse(content)
assert info.group == "梦蓝字幕组"
assert info.title_zh == "哆啦A梦新番"
assert info.title_en == "New Doraemon"
assert info.resolution == "1080P"
assert info.episode == 747
assert info.season == 1
content = "[织梦字幕组][尼尔:机械纪元 NieR Automata Ver1.1a][02集][1080P][AVC][简日双语]"
info = parser.analyse(content)
assert info.group == "织梦字幕组"
assert info.title_zh == "尼尔:机械纪元 NieR Automata Ver1.1a"
assert info.resolution == "1080P"
assert info.episode == 2
assert info.season == 1