aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-12-21 15:21:09 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-12-21 15:23:39 +0000
commitea7e692dfb2057ef27fd755f236356ccf0df9872 (patch)
tree7acdafaf20a10c796e50acb1356262fe1df65a65
parentdaee6a2921d42c9d9d87c86da3f1f8fa9e8d911e (diff)
downloadsrtfilter-main.tar
srtfilter-main.tar.gz
srtfilter-main.zip
Reduce redundancyHEADmain
-rw-r--r--pyproject.toml2
-rw-r--r--src/srtfilter/parse.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 4a69910..b175e02 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "srtfilter"
-version = "0.2.0"
+version = "0.2.1"
authors = [
{ name="Arjun Satarkar", email="me@arjunsatarkar.net" },
]
diff --git a/src/srtfilter/parse.py b/src/srtfilter/parse.py
index c5a0e24..cbfb5ea 100644
--- a/src/srtfilter/parse.py
+++ b/src/srtfilter/parse.py
@@ -70,7 +70,7 @@ class Timecode:
self.millisecond = int(match["millisecond"])
def __repr__(self):
- return f"Timecode('{self.hour:02}:{self.minute:02}:{self.second:02},{self.millisecond:03}')"
+ return f"Timecode('{str(self)}')"
def __str__(self):
return f"{self.hour:02}:{self.minute:02}:{self.second:02},{self.millisecond:03}"