Skip to content

Commit

Permalink
修改特效识别字符串
Browse files Browse the repository at this point in the history
  • Loading branch information
songzhou21 committed Jul 28, 2014
1 parent 90a1b3f commit 4d88213
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions asstosrt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __unicode__(self):
def _preprocess_line(line):
"""Remove line endings and comments."""
line = line.strip()
if line.startswith(';'):
if line.startswith(';') | line.endswith('{\p0}'):
return ''
else:
return line
Expand Down Expand Up @@ -117,8 +117,6 @@ 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
Empty file modified batch.py
100644 → 100755
Empty file.

0 comments on commit 4d88213

Please sign in to comment.