summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-06-23 09:52:55 -0400
committermorpheus65535 <[email protected]>2023-06-23 09:52:55 -0400
commitedfbb1a5ca0edb43eb9e88ae83740c10649a8a9b (patch)
tree0176e232ec5183fb1b88fbd0ecc3aedc4e991ad0 /libs
parentba4da6d5a9a2d8b8b6b9f4860a9bcb29e1942f2a (diff)
downloadbazarr-edfbb1a5ca0edb43eb9e88ae83740c10649a8a9b.tar.gz
bazarr-edfbb1a5ca0edb43eb9e88ae83740c10649a8a9b.zip
Reverting b6777bc26ea2faafa4d6a8eee8aa791a8736780a
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/subtitle.py3
-rw-r--r--libs/subzero/language.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/libs/subliminal_patch/subtitle.py b/libs/subliminal_patch/subtitle.py
index 9c8094b86..406baed70 100644
--- a/libs/subliminal_patch/subtitle.py
+++ b/libs/subliminal_patch/subtitle.py
@@ -76,8 +76,7 @@ class Subtitle(Subtitle_):
self.use_original_format = original_format
def __repr__(self):
- r_info = str(self.release_info or self.id).replace("\n", " | ").strip()
- return f"<{self.__class__.__name__}: {r_info} [{self.language}]>"
+ return '<%s %r [%s:%s]>' % (self.__class__.__name__, self.page_link, self.language, self._guessed_encoding)
@property
def text(self):
diff --git a/libs/subzero/language.py b/libs/subzero/language.py
index c7f3c3a2d..199856704 100644
--- a/libs/subzero/language.py
+++ b/libs/subzero/language.py
@@ -112,8 +112,7 @@ class Language(Language_):
bool(self.hi) == bool(other.hi))
def __str__(self):
- info = ";".join(f"{k}={v}" for k, v in vars(self).items() if v)
- return f"<{self.__class__.__name__}: {info}>"
+ return super(Language, self).__str__() + (":forced" if self.forced else "")
@property
def basename(self):