diff --git a/asstosrt/__init__.py b/asstosrt/__init__.py index 1b6b0ad..3fc5e17 100644 --- a/asstosrt/__init__.py +++ b/asstosrt/__init__.py @@ -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 @@ -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: diff --git a/batch.py b/batch.py old mode 100644 new mode 100755