diff --git a/test/test.bcc b/test/test.bcc index 50fcbca..da871c7 100644 --- a/test/test.bcc +++ b/test/test.bcc @@ -1 +1 @@ -{"font_size": 0.4, "font_color": "#FFFFFF", "background_alpha": 0.5, "background_color": "#9C27B0", "Stroke": "none", "body": [{"from": 0.0, "to": 5.36, "location": 2, "content": "字幕001"}, {"from": 6.45, "to": 9.49, "location": 2, "content": "字幕003\n字幕004"}, {"from": 9.49, "to": 17.49, "location": 2, "content": "字幕004"}, {"from": 17.49, "to": 18.36, "location": 2, "content": "字幕005"}, {"from": 18.36, "to": 20.36, "location": 2, "content": "字幕005\n字幕006"}, {"from": 20.36, "to": 22.2, "location": 2, "content": "字幕006"}]} \ No newline at end of file +{"font_size": 0.4, "font_color": "#FFFFFF", "background_alpha": 0.5, "background_color": "#9C27B0", "Stroke": "none", "body": [{"from": 0, "to": 5.36, "location": 2, "content": "字幕001"}, {"from": 6.45, "to": 9.49, "location": 2, "content": "字幕002"}, {"from": 17.49, "to": 20.36, "location": 2, "content": "字幕003"}, {"from": 25.36, "to": 27.2, "location": 2, "content": "字幕004"}]} diff --git a/test/test.srt b/test/test.srt index e6d393b..cc8019f 100644 --- a/test/test.srt +++ b/test/test.srt @@ -2,18 +2,14 @@ 00:00:00,000 --> 00:00:05,360 字幕001 -3 +2 00:00:06,450 --> 00:00:09,490 +字幕002 + +3 +00:00:17,490 --> 00:00:20,360 字幕003 4 -00:00:06,450 --> 00:00:17,490 +00:00:25,360 --> 00:00:27,200 字幕004 - -5 -00:00:17,490 --> 00:00:20,360 -字幕005 - -6 -00:00:18,360 --> 00:00:22,200 -字幕006 \ No newline at end of file diff --git a/test/test_method.py b/test/test_method.py index d7fa7ef..0c3215b 100644 --- a/test/test_method.py +++ b/test/test_method.py @@ -37,7 +37,7 @@ def test_SeeAvailableMethods(self): assert type(method) == list def test_module(self): - names = ["srt2bcc"] + names = ["bcc2srt"] for name in names: pre = name.split("2")[0] aft = name.split("2")[1]