Skip to content

Commit

Permalink
remove ass effects end with '}'
Browse files Browse the repository at this point in the history
有些 ass 特效不能清除干净,他们都是以 ‘}’ 字符结尾。详见http://cl.ly/image/0t0C1y381r1f
  • Loading branch information
songzhou21 committed Jul 27, 2014
1 parent fbc386e commit 90a1b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asstosrt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def convert(file, translator=None, no_effect=False, only_first_line=False):
break # Events ended.
elif not line.startswith('Dialogue:'):
continue
elif line.endswith('}'):
continue

dialogue = formater.format(line)
if dialogue['end'] - dialogue['start'] < 0.2:
Expand Down

0 comments on commit 90a1b3f

Please sign in to comment.