Skip to content

Commit

Permalink
fix bug of srtfile parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JingWeiLyu authored and JingWeiLyu committed Aug 22, 2021
1 parent 66900d8 commit ae8b829
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "subtitle-analyzer"
version = "0.1.13"
version = "0.1.14"
description = ""
authors = ["Phoenix Grey <phoenix.grey0108@gmail.com>"]
repository = "https://github.com/qishe-nlp/subtitle-analyzer"
Expand Down
2 changes: 1 addition & 1 deletion subtitle_analyzer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def subtitle_phrase(srtfile, lang, assfile, google):
"""

__version__ = '0.1.13'
__version__ = '0.1.14'

from .vocab_analyzer import VocabAnalyzer
from .vocab_ass_writer import VocabASSWriter
Expand Down
6 changes: 3 additions & 3 deletions subtitle_analyzer/phrase_ass_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ class PhraseASSWriter:
_local_dir = os.path.dirname(__file__)
_srtfile = os.path.join(_local_dir, 'empty.srt')

def __init__(self, srtfile, cn_srtfile=None):
"""Initialize subtitle object from srtfile
def __init__(self, cn_srtfile=None):
"""Initialize subtitle object from empty srtfile
Args:
srtfile (str): subtitle filename
cn_srtfile (str): Chineses subtitle filename
"""

self._subs = pysubs2.load(self.__class__._srtfile)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_subtitle_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == '0.1.13'
assert __version__ == '0.1.14'

0 comments on commit ae8b829

Please sign in to comment.