Skip to content

Commit

Permalink
🔨 chore(pyproject.toml): remove loguru dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Jan 18, 2024
1 parent 48990cc commit fc1a323
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 45 deletions.
41 changes: 2 additions & 39 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ authors = [
{ name = "KimmyXYC", email = "[email protected]" }
]
dependencies = [
"pathlib<2.0.0,>=1.0.1",
"loguru<1.0.0,>=0.6.0",
"pysrt<2.0.0,>=1.1.2",
"pyvtt<1.0.0,>=0.0.4",
"chardet<6.0.0,>=5.1.0",
Expand Down
5 changes: 1 addition & 4 deletions src/subtitle_utils/convert/bcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from io import TextIOBase
from typing import Union, IO

from loguru import logger

from ..parse import VttParser, BccParser, SrtParse
from ..schema import Convert

Expand Down Expand Up @@ -255,8 +253,7 @@ def vtt2bcc(self, content: Union[str, IO, TextIOBase], threshold=0.1, word=True,
}
)
start = sec
except Exception as e:
logger.trace(e)
except Exception:
final_text = sub.text.split("\n")[-1]
if caption_list and caption_list[-1]["content"] == final_text:
caption_list[-1].update(
Expand Down

0 comments on commit fc1a323

Please sign in to comment.